RE: [PHP] Making php execute php

2001-07-18 Thread scott [gts]
It's failing becuase $abc is not valid PHP code, but is HTML. to get eval to work correctly, only pass it valid PHP code. This will print "Hello World"; $abc = ' print "$Message"; '; $Message="Hello World" ; eval ($abc) ; If you want to output HTML, enclose it within a print "" statement, or

RE: [PHP] set var in PHP

2001-07-18 Thread scott [gts]
u $TITLE = "some title here"; > -Original Message- > From: jessica lee tishmack [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 18, 2001 11:28 AM > To: php > Subject: [PHP] set var in PHP > > > In html, I can do > > > > How do I do this in PHP? > > Thanks, > Jessica > >

[PHP] What PHP function to use to clean up PGP encoded text under Outlook Express?

2001-07-18 Thread Scott Brown
I've got PHP a routine that encodes some sensitive information using PGP and then emails this from my linux server to a few separate people People using Outlook (full version) see a perfectly formatted message when it gets decoded. People using Outlook Express see the message with the \n not

[PHP] A good PHP auto-reply system

2001-07-19 Thread scott [gts]
Can anyone reccomend a good PHP (or perl) Web-based email auto-reply thingy. I work at a company that hosts websites and provides POP email accounts, and i'd like to allow our clients to come to our website, log into a "clients" section and have more control over their service... I'd like to all

RE: [PHP] Email Software

2001-07-19 Thread scott [gts]
...and also a really sleazy way to annoy people. > -Original Message- > From: Christian Reiniger [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 3:35 PM > To: Wee Chua; PHP (E-mail) > Subject: Re: [PHP] Email Software > > > On Wednesday 18 July 2001 14:50, Wee Chua wrote: > >

[PHP] php newbie - browser email address

2001-07-24 Thread Scott Dudley
i there a way in php to obtain the email address set in the client's browser? i have no intention of "spamming" those who visit my site but thought it a novel approach to keeping track of hits. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] php stand alone

2001-07-24 Thread scott [gts]
but remember, if you put your cron/admin scripts into a directory on a publicly accessable webserver, you run the risk of having anonymous websurfers run your scripts at inopportune moments. > -Original Message- > From: Gunther E. Biernat [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 2

Re: [PHP]Question about escaping a character

2001-07-24 Thread Bob Scott
Run the string through stripslashes() before you write it to the file... http://www.php.net/manual/en/function.stripslashes.php Cheers -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Tue, 24 Jul 2001, Chris Cocuzzo wrote

Re: [PHP] Determining File Size

2001-07-24 Thread Bob Scott
;= 0) { $show_filesize = $file_size . " bytes"; } else { $show_filesize = "0 bytes"; } echo "File $my_file is $show_filesize "; Have fun! -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Tue, 2

RE: [PHP] Revision Tracking - program concept

2001-07-30 Thread scott [gts]
you are severely re-inventing the wheel. Look for CVS or RCS programs on the net. you'll save yourself a ton of work. > -Original Message- > From: Dave Freeman [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 30, 2001 6:27 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Revision Tracking - p

RE: [PHP] MS SQL datetime format problem

2001-07-30 Thread scott [gts]
*how* are you putting it in? > -Original Message- > From: Brian Weisenthal [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 30, 2001 1:01 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] MS SQL datetime format problem > > > Hi, > > I am having trouble setting a datetime in

RE: [PHP] Good Tutorial

2001-07-31 Thread scott [gts]
The red WROX book, "Professional PHP Programming" is really good. > -Original Message- > From: Steve Wright [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 31, 2001 11:12 AM > To: PHP List > Subject: [PHP] Good Tutorial > > > > Hey, > > I have done a few tutorials, but they aren't ve

RE: [PHP] Re: What tools do you use to develop PHP?

2001-07-31 Thread scott [gts]
TextPad is my personal favourite, but i've also tried ConTEXT and PHP Coder and liked them a lot, so i'd recommend that you check out all three of them. TextPad: http://textpad.com/ PHP Coder: http://synedit.sourceforge.net/ ConTEXT: http://www.fixedsys.com/context/ > -Original Message-

RE: [PHP] Attitude of B van Ouwerkerk

2001-07-31 Thread scott [gts]
there's a fine line between being terse and being nasty. please don't misinterpret this, but i think that we could all benefit from being less sensitive of the style each of us express ourselves in... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

RE: [PHP] fopen not opening url

2001-07-31 Thread scott [gts]
i wish i could help you out, but i tried your code (below) and it worked perfectly... i'm running PHP Version 4.0.4pl1 on a Windows 2000 box. perhaps it isn't the fopen() that's failins. $x = fopen("http://p.moreover.com/cgi-local/page?c=Music%20business%20news&o=xml","r";) or die("Canno

RE: [PHP] Failure Configuring 4.0.6 on SuSE 7.1

2001-07-31 Thread scott [gts]
it seems that your 'lex' is in a non-standard place, and cannot be found in your PATH. make sure you have 'lex' on your machine, find out where, then open up the Makefile and change it's path to lex to the correct one. > -Original Message- > From: Chris Anderson [mailto:null@YAST_ASK] >

RE: [PHP] Question on Commercial Offerings

2001-07-31 Thread scott [gts]
and not to mention that almost any form of script protection or source-code encryption can be broken with minimal effort... you'd probably be wasting valuble time trying to protect your scripts that you could better spend improving and maintaining the code. IMO: it's better to spend your time wor

RE: [PHP] Re: HELP!! What wrong with this code...

2001-07-31 Thread scott [gts]
or, if you're going to be dealing with a lot of data that has lots of quotes in it, you could take the safe route and just exit out of PHP mode lots of times, it's easier than escaping every single " php; code; here; ?> Your feedback has been sent to -Original Message- > From: Inércia S

RE: [PHP] RE: php_oci8.dll

2001-07-31 Thread scott [gts]
try using: extension_dir = c:\php\extensions that's what i use on my Win32 machine with an identical install as Liviu. > -Original Message- > From: Liviu Popescu2 [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 31, 2001 11:12 AM > To: [EMAIL PROTECTED] > Subject: [PHP] RE: php_oci8.dll

RE: [PHP] FAQ - was "Attitude of B van Ouwerkerk"

2001-07-31 Thread scott [gts]
- i use it everyday, but not too many newbies seem to know about it) > -Original Message- > From: mike cullerton [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Attitude of B van Ouwerkerk > > on 7/31/01 12:37 PM, scott [gts] at [EMAIL PROTECTED] wrote: > > > there

[PHP] issues with __sleep() and __wakeup()

2001-07-31 Thread scott [gts]
why this happens? Here's my object: class Scott { var $svar = array(); // free-form hash for whatever data function Scott( ) { return $this; } function __sleep() { } function __wakeup() { $this->svar['sleep'] = "I am waking up";

[PHP] references

2001-07-31 Thread scott [gts]
i've been reading over the docs on references, and i can't see anyway to pass around functions as references. i know how to do this easily with perl, but i cannot seem to find the correct syntax for creating a reference to a function in PHP. what i'd like to do is something like this: // X is no

[PHP] references... found it

2001-07-31 Thread scott [gts]
im sorry, but i was trying to do that the hard way. i figured out how to execute a function name in a variable. $x ="test"; print "Hello: $x\n\n"; $x(); function test() { print "yee haw"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

RE: [PHP] Re: issues with __sleep() and __wakeup()

2001-08-01 Thread scott [gts]
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 01, 2001 3:52 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: issues with __sleep() and __wakeup() > > > > class Scott { > > var $svar = array(); //

RE: [PHP] Attitude of B van Ouwerkerk

2001-08-01 Thread scott [gts]
so now it's shifted from his attitude to your seeming inability to cope with "words related to sexual intercourse"? we all need to calm down and relax. > -Original Message- > From: Alexander Wagner [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Attitude of B van Ouwerkerk > > B. van Ou

RE: [PHP] Visual Login

2001-08-01 Thread scott [gts]
if you go this route, you would, however, have to check for valid-login users on every page that you want to have security on. > -Original Message- > From: Ben Bleything [mailto:[EMAIL PROTECTED]] > Subject: RE: [PHP] Visual Login > > One way would be to use a database (of any type) to s

RE: [PHP] Example high-profile PHP sites

2001-08-01 Thread scott [gts]
www.audiogalaxy.com is almost entirely PHP > -Original Message- > From: CC Zona [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 01, 2001 4:57 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Example high-profile PHP sites > > > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (

RE: [PHP] writing while reading

2001-08-01 Thread scott [gts]
try only locking the file on a write, *not* on a read. you are going to have many times more reads than writes, even on the busiest day what you need to have is a blocking-lock your writes and not bother with locks for reading. the way you have it setup now, there's no locking for writes, s

RE: [PHP] PHP and push buttons

2001-08-01 Thread scott [gts]
if i understand your question correctly, this should help... name the buttons different things then, even thought the form is posted to one place, you can determine which button the user pressed by checking the value of $action; > -Original Message- > From: Don [mailto:[EMAIL PROTE

RE: [PHP] Re: issues with __sleep() and __wakeup()

2001-08-01 Thread scott [gts]
ROTECTED]] > Sent: Wednesday, August 01, 2001 3:52 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: issues with __sleep() and __wakeup() > > > > class Scott { > > var $svar = array(); // free-form hash for whatever data > > function Scott(

RE: [PHP] Re: FAQ

2001-08-01 Thread scott [gts]
and adding a little explanation of the http://php.net/function syntax for searching the php.net site would be a big help too. > -Original Message- > From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 01, 2001 11:32 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] R

RE: [PHP] SQL syntax error in PHP script. dunno what's wrong

2001-08-01 Thread scott [gts]
*always always always* quote everything in SQL statements. you run the risk of letting people insert arbitrary SQL statements into your script if you dont quote values. if you're using MySQL, try mysql_escape_string http://php.net/manual/en/function.mysql-escape-string.php or you could roll you

RE: [PHP] env var

2001-08-01 Thread scott [gts]
a lot of people send the reply to the list and Cc: a copy to the sender so you end up getting two copies. > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 01, 2001 12:41 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] env var > > > thanks

RE: [PHP] Re: Hmmm?

2001-08-01 Thread scott [gts]
oh man... it gives me such a headache when i have to try and make sense of scripts with no indentation (or arbitrary indentation)... it's always fun dealing with things like this :-) if ($this){ print " hi ";} else {print " bye ";

RE: [PHP] Testing if Scripting has been disabled

2001-08-01 Thread scott [gts]
"Scripting" is a rather large word... do you mean javascript? > -Original Message- > From: Don [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 01, 2001 12:58 PM > To: php list > Subject: [PHP] Testing if Scripting has been disabled > > > Is there a method to test if Scripting has

RE: [PHP] SQL syntax error in PHP script. dunno what's wrong

2001-08-01 Thread scott [gts]
no offense to you sam, but please dont ever simply place single quotes around values. you have to escape the values *themselves*. what if someone submitted the form field title as: $title = "'; DELETE FROM seminar; " if you didn't escape the single quotes in there, it would get interpreted as a

RE: [PHP] Testing if Scripting has been disabled

2001-08-01 Thread scott [gts]
m: Don [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Testing if Scripting has been disabled > > Well, yes, but if I disable scripting in I.E., won't PHP scripts not work as > well? > > - Original Message - > From: "scott [gts]" <[EMAIL P

RE: [PHP] Installing PHP probs

2001-08-01 Thread scott [gts]
it's a piece of cake for windows... two steps: 1) download the .EXE and double-click on it or download the .ZIP and unzip it somewhere (usually C:\php) 2) configure & restart your webserver if you download the .EXE it'll configure any non-apache server for you. if you use apache, you'll have

RE: [PHP] How can I make a Loading... screen?

2001-08-01 Thread scott [gts]
use javascript. put this at the top of your big document: var waitwin = window.open( ... ); and this at the end: waitwin.close(); you might have to double-check the syntax, as i dont really use javascript too often, but that should work fine. > -Original Message- > From: Michael Champ

RE: [PHP] Re: How can I make a Loading... screen?

2001-08-01 Thread scott [gts]
make the same window say "Loading"? not unless you used DHTML to create an IFRAME or DIV or some similar HMTL element (i havent kept up on DHTML, so i dont know exactly what you'd need to use). set it to be the entire size of the browser width and height = 100%, then, at the bottom of the page,

RE: [PHP] PHP INSTALL (please, im too young to die!!!)

2001-08-01 Thread scott [gts]
get the windows ZIP > -Original Message- > From: Kyle Smith [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 01, 2001 11:04 PM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP INSTALL (please, im too young to die!!!) > > > ok i really need to get this sorted quickly so could somebody pl

RE: [PHP] Installing PHP probs

2001-08-01 Thread scott [gts]
you dont have to have a server running. just use the CGI binary. ...and if you're using windows - why not just use apache... it's free, easier to install/configure than PWS (yech!) and it has *MUCH* better documentation and support than microsoft can ever offer. :-) > -Original Message--

RE: [PHP] Replacing template variables with values?

2001-08-02 Thread scott [gts]
try using single quotes : preg_replace("/\$(\w+)/e", '${$1}', $template); > -Original Message- > From: Ryan Fischer [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 01, 2001 6:37 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Replacing template variables with values? > > > Hello! :)

RE: [PHP] How to Compare dates?

2001-08-02 Thread scott [gts]
it also appears that you're checking for the same thing over and over and over '0' is the same as "0" and 00 is the same as 0 and "00" is the same as '00' try checking for either 0 or "-00-00" > -Original Message- > From: Tim [mailto:[EMAIL PROTE

RE: [PHP] Q: Hiding Folder Directories from public while still...

2001-08-02 Thread scott [gts]
if you're using apache, there's a *much* easier/secure way of doing this. setup an .htaccess file to restrict access to certain username/passwords. check out both: man htaccess man htpasswd > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 02,

RE: [PHP] Oh and one more thing

2001-08-02 Thread scott [gts]
it's a little bit complicated, but here goes. 1) format your harddrive 2) take out your motherboard and spraypaint it bright orange. 3) dance around the desk three times holding the motherboard above your head chanting "mail mail, give me mail" "date date, give me date" "o

RE: [PHP] How to Compare dates?

2001-08-03 Thread scott [gts]
or, if the field is a MySQL DATE field, try comparing to "-00-00", since that's what a blank date defaults to. > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 02, 2001 10:34 AM > To: Jack Sasportas > Cc: php > Subject: Re: [PHP] How to

RE: [PHP] <----- BEING AN ASS CLICK HERE NOT ABOVE!!!!!

2001-08-03 Thread scott [gts]
and since you're running Win32, i'd *highly* suggest running apache to a service... so that you dont have to spawn a console window everytime you want to use your webserver. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 02, 2001 5:5

RE: [PHP] Spot the difference?

2001-08-03 Thread scott [gts]
ASP is basically like PHP, only it uses a VB-based language instead of perl/c-based one. which means it sucks - vb is evil. > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Spot the difference? > > isnt this fact a good enough reason to believe it

[PHP] File Uploads

2001-08-06 Thread Scott Kalbach
iated. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] regexps

2001-08-08 Thread scott [gts]
here are two regexps that might do what you want "\w" matches alphanum (1-9a-zA-z) IMO, the best way to check for non-alphanum chars is to check for "\W" (upper case is negation of alphanum, which will match only non-alphanum). if (preg_match('/^\w+$/', $data)) { print "entirely alpha

[PHP] I need everyones opinon!

2001-08-08 Thread Scott Mebberson
Hi Guys, When naming classes and function's within the class(and even functions(probably more so?)) do you use a common string infront of everything? For example HM_function_name() The reason I am asking is because what if you want to easily intergrate a class/function with lots of other classes

[PHP] testing..

2001-08-09 Thread Scott Fletcher
Testing! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Copy function usage ?

2001-08-09 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 look in httpd.conf to get the user name, then chown the directory to that user ex. chown apache:apache ./dir/ chmod 755 ./dir/ and make sure that you change permissions to all files that you write into the directory to be read-write only (not exec

[PHP] RedHat 7.1

2001-08-09 Thread Scott Pathel
t are not to be found. Any Ideas? Thanks for any help Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] RedHat 7.1

2001-08-09 Thread Scott Pathel
t are not to be found. Any Ideas? Thanks for any help Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] PHP in corporate settings?

2001-08-09 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 a big reason i use PHP as much as i do is becuase of the excellent documentation and ease of finding it all... > -Original Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 09, 2001 1:02 PM > To: Rasmus Lerdor

RE: [PHP] new one is it ??

2001-08-13 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 what about something like this ? (just configure apache to have PHP handle *.ida files) > -Original Message- > From: Tim [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] new one is it ?? > > > Boy that looks familiar...my (apache) logs a

RE: [PHP] The secrecy of PHP code

2001-08-13 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 they are kinda safe if the webserver is the only way that your files can be viewed if people can log into the machine, they could just view the plaintext of your PHP script. hint: security thru obscurity is not secure. > -Original Message-

RE: [PHP] Having trouble with PHP exec function calling CGI program

2001-08-13 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 it could be that the webserver chroot()'s to some "secure" path, and thus your script cannot find `date`. perhaps all you have to do is to copy the binaries that you need into the "safe" directory (if you can first find out where the server is chro

RE: [PHP] new one is it ??

2001-08-13 Thread Scott Brown
think it's appropriate to lash back against an infected machine (though a quick "why dont you patch your @#(*)( machines" to the network owner has been known to occur on occasion when I get hit by many many servers within a given netblock). > -Original Message- > From:

RE: [PHP] new one is it ??

2001-08-13 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you could, of course, throw a few sleep() stmnts in there to get the script to output a few bytes every few seconds and keep the connection active... :-) > -Original Message- > From: Scott Brown [mailto:[EMAIL PROTECTED]] > Su

RE: [PHP] UPDATE syntax

2001-08-13 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 try this syntax: UPDATE table SET col=value, col2=value2 ... WHERE ID=$id; > -Original Message- > From: Gerard Samuel [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 13, 2001 3:20 PM > To: PHP > Subject: [PHP] UPDATE syntax > > > I hav

RE: [PHP] large external script to include in many pages

2001-08-13 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 here docs also work good for big blocks of text (although interpolation will occur, which you might not want) $mytext = < -Original Message- > From:

[PHP] `pwd` - what does this mean?

2001-08-14 Thread Scott Mebberson
Hi Guys, I actually know what it means. Well, I think it means the current directory? Anyway... what exactly is it and where can I find some more information about it? I couldn't find much on php.net - also, is there any other ones(whatever it is) like this? Thanks. Scott. -- PHP Ge

[PHP] Re: `pwd` - what does this mean?

2001-08-14 Thread Scott Mebberson
I typed it on my server (SunOS 5.7) and it said, it returns the current working directory. So this is a unix command executed from PHP? Is there any other useful unix commands which can be executed from PHP? Does anybody have a list? "Scott Mebberson" <[EMAIL PROTECTED]>

Re: [PHP] `pwd` - what does this mean?

2001-08-14 Thread Scott Mebberson
Thanks for your reply but what does this (man -k "" | grep "(1)") do? Thanks "Don Read" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On 15-Aug-2001 Scott Mebberson wrote: > > Hi Guys, > >

RE: [PHP] need real expert (geting outer files) *english/german*

2001-08-15 Thread scott [gts]
> -Original Message- > From: Chris Hayes [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] need real expert (geting outer files) > > hi Patrick, > your question is not entirely clear. > > > I try to get a URL like: www.server.com?var=xyz > > i would recommend www.server.com/x.php?var=xy

RE: [PHP] build button with php

2001-08-15 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just output the proper HTML codes. > -Original Message- > From: nafiseh saberi [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 15, 2001 3:12 PM > To: [EMAIL PROTECTED] > Subject: [PHP] build button with php > > > > hi. > I want to

RE: [PHP] PNG support...

2001-08-20 Thread scott [gts]
looks like some GD options were changed between builds. check phpinfo() to find out how PHP was compiled, and what version GD it's using. > -Original Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 10:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] P

RE: [PHP] header() not working.

2001-08-21 Thread scott [gts]
header() works. it's the text that header() is printing that's causing problems. what are you outputting via header() ? > -Original Message- > From: Jay Paulson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 21, 2001 3:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP] header() not work

RE: [PHP] Re: Mem and variables

2001-08-22 Thread scott [gts]
amen. :-) > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Re: Mem and variables > > At any rate -- The right way to worry about perforance is to figure out > where your code is spending 90% of its time, and to optimize that. I'm > betting it ain'

RE: [PHP] The future of PHP

2001-08-23 Thread scott [gts]
:-) for the type of sites that i develop (non-mission-critical, non-financial), i find PHP's simplicity and elegance more than offsets a lack of things like strong typing and a harshly BDSM compiler (and whatever else Java/JSP has that PHP doesn't) for most websites out there, Java is probably o

[PHP] Array's in classes

2001-08-23 Thread Scott Mebberson
er it returns "Array" ? Does anybody have any idea of why this is happening? Thanks Scott. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] getting values inside PHP from outside script

2001-08-26 Thread Scott Mebberson
results. The results are returned in a comma delimited format. Any ideas? use http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=.csv to see the results. thanks Scott. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [PHP] getting values inside PHP from outside script

2001-08-26 Thread Scott Mebberson
quot;, > file("http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=. > csv"))) > > /* Chris Lambert, CTO - [EMAIL PROTECTED] > WhiteCrown Networks - More Than White Hats > Web Application Security - www.whitecrown.net > */ > > - O

[PHP] new socket() function in PHP which is > 4.0.6

2001-08-27 Thread Scott Mebberson
Hi Guys, I am trying to setup a socket relay server. Has anyone tried this? Thanks Scott. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

RE: [PHP] Last Modified question..

2001-08-28 Thread scott [gts]
did you try stat()'ing the file? as long as you have read permission to the file, you should be able to run a stat() on the file with no problems > -Original Message- > From: Jay Paulson [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Last Modified question.. > > I have a problem... I want

RE: [PHP] is_numeric for php3

2001-08-28 Thread scott [gts]
i think he's asking for a numeric test, not an integer test. your example looks like it should fail "3.50" (for example), even though "3.50" is a perfectly valid numeric value. personally, i think you should just use regexps. ;-) i tried to write a little is_num() type function, but i kept gett

RE: [PHP] Link Checker

2001-08-28 Thread scott [gts]
although it's a bit klunky (and not entirely correct) to do things this way, but a simple fopen(); will tell you if the URL is retrievable or not. (although i dont think that fopen() handles redirects or any of those esoteric HTTP features) but if you want to make sure that a link is there, with

RE: [PHP] Check if a word is in my string.

2001-08-28 Thread scott [gts]
use regexps. that's what their specialty is ;-) // case insensitive if ( preg_match("/$text/i", $string) ) { print "$text is in $string"; } // case sensitive if ( preg_match("/$text/", $string) ) { print "$text is in $string"; } > -Original Message- > From: daniel james

RE: [PHP] is_numeric for php3

2001-08-28 Thread scott [gts]
a few months to fully understand them and get over regexp-heebie-jeebies of my own. > -Original Message- > From: daniel james [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 28, 2001 6:42 PM > To: scott [gts]; php > Subject: RE: [PHP] is_numeric for php3 > > &g

RE: [PHP] is_numeric for php3

2001-08-28 Thread scott [gts]
my understanding is that numeric is a broad term for number values (any value with only numbers and a decimal point) like 1, 5.6, 332, 0.5532, for example. integers are a sub-set of numerics, so any integer is a numeric value, but any numeric value is not necessarily an integer. $num=123 is an

Re: [PHP] Image manipulation

2001-08-31 Thread Bob Scott
= $img_dir . "/t_" . basename($userfile) . ".gif"; $s = system ("/usr/X11R6/bin/convert -geometry 100x100 $userfile $dest_file"); will create a 100x100 pixel thumbnail image called t_my_face.jpg.gif in /usr/local/www/htdocs/images ImageMagick can be found

[PHP] Content management

2001-09-07 Thread Scott Parks
system from a layout perspective, even functionality. I want to deliver something they can really use. Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] Have y'all seen this?

2001-09-14 Thread scott [gts]
it's also a joke, in case anyone happens to take is seriously :-) > -Original Message- > From: Jon Farmer [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 14, 2001 10:01 AM > To: Thomas Deliduka; PHP List > Subject: Re: [PHP] Have y'all seen this? > > > > This is a pretty funny art

[PHP] coding practices

2001-09-15 Thread Scott Parks
es to work. Do you use spread sheets, a project program, etc? Or just screen captures to the clients? Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrato

[PHP] Disk Usage

2001-09-22 Thread Scott Poarch
ood script? -- Scott Poarch http://www.globalhost.com - - - - - - - - - - - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Disk Usage

2001-09-22 Thread Scott Poarch
Thanks for the quick reply. I've been tring variations on that for a while with little success. This is not necessarily my best hope, but it's the version I happen to be at at the moment: $command = "du > test2"; system($command); Any ideas? -- Scott Poarch ht

Re: [PHP] Disk Usage

2001-09-22 Thread Scott Poarch
I appreciate the help. I understand the 'du -sk', but what's the "(int)" all about. Are you suggesting using: $usage = (int)`du -sk`; in the PHP code, as in: chdir($basedir); $usage = (int)'du -sk'; print("$usage is usage"); ? Thank

Re: [PHP] Disk Usage

2001-09-23 Thread Scott Poarch
Well, it's an intriquing idea, but I'm not getting any success out of it. thanks for the suggestion. I'll keep plugging away. -- Scott Poarch http://www.globalhost.com - - - - - - - - - - - - > From: "Matthew Loff" <[EMAIL PROTECTED]> > Organization: Will

[PHP] Modem communcation using PHP

2001-09-24 Thread Scott Fletcher
Hi ya all! I can't find the PHP documentation on using the php code to initalize, configure, dail, send and receive data using the modem. Anyone know anything about it. I'm kind of stuck on this project. Will appreciate it on anyone who can point it out for me. Thanks, Scott

[PHP] How would you code: $r = func() or return 0?

2001-09-26 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I thought i'd ask for your comments on how you'd code this common perl code with PHP: $value = some_function() or return 0; i usually code my functions to return 0 or "" on error, but have to use the following code to handle it... neither seem lik

RE: [PHP] How would you code: $r = func() or return 0?

2001-09-26 Thread scott [gts]
than the other two ways and i'm looking for an equally terse way of accomplishing the same thing with PHP > -Original Message- > From: Sterling Hughes [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 26, 2001 4:57 PM > To: scott [gts] > Cc: php > Subject:

[PHP] named anchors and query strings

2001-10-01 Thread Scott Mebberson
Hi Guys, How do you reference both a named anchor and a query string in a link? i.e. link text I am not sure if this is even possible? thanks Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Error: Unable to open *\index.php in Unknown on line 0

2001-10-03 Thread Scott Fletcher
t blank and the other line, "include_path = " is left blank also. It seem that php.ini can't work with multiple website on IIS that each website have different directory and seperate directory. So, what's hte problem and what do I need to do to fix it? Thanks, Scott

[PHP] JavaScript conversion to PHP code...

2004-07-26 Thread Scott Fletcher
Hi, what is in your opinion is the best way to convert from JavaScript to PHP What I'm not entirely sure of is the "char_set.indexOf(input.charAt())". It look pretty tricky --snip-- var algorithm = 8; for (loop=0; loophttp://www.php.net/) To unsubscribe, visit: http://www.

[PHP] Re: JavaScript conversion to PHP code...

2004-07-26 Thread Scott Fletcher
I think maybe this will do the trick.. --snip-- $char_code = strpos($char_set,(substr($input,$loop,1))); --snip-- FletchSOD "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, what is in your opinion is the best way to convert from JavaScript

[PHP] Extra byte added to PDF streaming file

2004-07-26 Thread Scott Taylor
of the file? And no, the file is not corrupted (I've already tried that) - this only happens when it goes through this script, and not loaded directly as example.com/file.pdf. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: JavaScript conversion to PHP code...

2004-07-27 Thread Scott Fletcher
Good thinking... I like without the substr() because substr() take more time than we want it to be FletchSOD "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > --snip-- > > $char_code = strpos($char_set,(substr($input,$loop,1))); > > --snip-- > > even a little shorter >

<    7   8   9   10   11   12   13   14   15   16   >