RE: [PHP] variable variables

2002-01-17 Thread scott [gts]
there's one example of var-of-vars along with arrays below my rant rant var-of-var is almost always an evil thing. there are some rare instances where they're necessary, but i assure you that your script would be MUCH cleaner and easier to modify in the future if you used a simple array.

RE: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you could save the password to a database, associated with an ID number, then pass the ID number. DATABASE: - id| password 12345 | blah$$ URL: form.php?id=12345 - Scott Hurring - Internet Programmer

[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 like

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

2001-09-26 Thread scott [gts]
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: Re: [PHP] How would you code: $r

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 -

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 a ms sql

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 very long, and

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]

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%20newso=xml,r;) or die(Cannot

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

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; ? P align=centerYour feedback has been sent to a

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]
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's a fine line between being terse and being

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

2001-07-31 Thread scott [gts]
I am having a problem with __sleep(); there mere existance of it is causing my object to not get serialized at all. __wakeup() works fine. i am using PHP v4.0.6 / apache / win2k. If i keep __sleep() in the object, it will not serialize, but if i remove it, it serialized fine. Does anyone know

[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

[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] For

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(); // free-form hash for whatever data function

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

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 store

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] (Ralph

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,

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

2001-08-01 Thread scott [gts]
i added a (hopefully helpfull) addition to the online notes regarding magic-functions: http://www.php.net/manual/en/language.oop.magic-functions.php Here's what i posted, if anyone's interested: Here is a sample class and some test statements to demonstrate how __sleep() is used. If you do

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] Re:

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

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 dave

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 been

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]
]] 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 PROTECTED] Subject: RE: [PHP] Testing if Scripting has been disabled Scripting is a rather large

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

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 please

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

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! :) I have

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 PROTECTED]]

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

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 Compare

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:52

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

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 alphanum

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

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 Lerdorf;

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) ? // this is so our script won't time out set_time_limit(0); // how many bytes of junk to generate $jsize = 1024 * 10; // how many times to print $junk $jout

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

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

RE: [PHP] new one is it ??

2001-08-13 Thread scott [gts]
dont 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: scott [gts

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 have a

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 = EOT blah blah blah EOT; http://php.net/manual/en/language.types.string.php#language.types.string.syntax.hered oc

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=xyz as with

RE: [PHP] build button with php

2001-08-15 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just output the proper HTML codes. INPUT TYPE=SUBMIT -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

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] PNG

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 working.

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't in

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

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 to

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 getting

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,

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 Ahhh, in that context

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

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 article:

RE: [PHP] ereg issues

2001-05-10 Thread scott [gts]
oh yeah. sorry... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack Dempsey Sent: Thursday, May 10, 2001 3:15 PM To: ..s.c.o.t.t.. [gts] Cc: Php-General Subject: Re: [PHP] ereg issues isn't a \w a word character, meaning a-zA-Z_0-9 (in

RE: [PHP] OT question..

2001-05-10 Thread scott [gts]
besides, if anyone here dislikes hitler, they should certainly not emulate him by trying to silence opinions that they disagree with ironic that some of the people that hate hitler the most act so much like him... dont be like hitler: support freedom of speech. -Original

RE: [PHP] Free Database Design Program

2001-05-11 Thread scott [gts]
phpMyAdmin and phpMyEdit are two free PHP MySQL thingies. check out http://www.phpwizard.net/ -Original Message- From: Anuradha Ratnaweera [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 11:52 PM To: Augusto Cesar Castoldi Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Free

RE: [PHP] writing updateable code

2001-05-14 Thread scott [gts]
i'd like to know if anyone's written anything to perform anything of this nature also... if not, i'll take a crack at it. shouldnt be too hard to get a simple Updater script to check for new versions and update local files with newer ones -Original Message- From: elias

RE: [PHP] (OT) HallMark uses PHP!!!!

2001-05-14 Thread scott [gts]
oh god... that story will probably come true in the next few years, due to the way the public school system keeps going downhill and the unyeilding ignorance of administrators. -Original Message- From: Kath [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 5:18 PM To: [EMAIL

RE: [PHP] achive style message center

2001-05-14 Thread scott [gts]
one thought is to search http://www.hotscripts.com/PHP/ for forum or message board scripts. -Original Message- From: shaun [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 1:15 PM To: [EMAIL PROTECTED] Subject: [PHP] achive style message center i was wondering if anyone

RE: [PHP] php on PWS

2001-05-15 Thread scott [gts]
even though i dont use PWS, the only time i seem to get 500 errors is when i mistype the a filename and the server cannot find the file so that's probably where your problem lies. triple check that PHP is working and installed correctly. then triple check that the server works OK (try to

RE: [PHP] ssh

2001-05-15 Thread scott [gts]
you can get a really great SSH program (free for non-commercial use) at http://ssh.com/ i use a registered copy here at work, but i downloaded a free copy for use at home... it's the best client i've found so far. even supports SFTP. -Original Message- From: Gyozo Papp [mailto:[EMAIL

[PHP] PHP and GD on a Redhat linux box

2001-05-15 Thread scott [gts]
i had compile problems for PHP + GD on a linux box. my best guess is that GD requires X11 support to work properly, and in turn blows up the PHP compile when GD cannot find the 'X11' library since the box is a server, bells and whistles like Xwindows are not installed figured i'd

RE: [PHP] PHP and GD on a Redhat linux box

2001-05-15 Thread scott [gts]
: [PHP] PHP and GD on a Redhat linux box I do not believe this is the reason that you are having problems. I have compiled GD on many Redhat machines without X11 Brandon -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 2:44 PM

RE: [PHP] How to check aBc different from abc ?

2001-05-15 Thread scott [gts]
this also works: $st1 = abc; $st2 = abc; if ($st1 != $st2) { die(Death); } -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 6:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] How to check aBc different from abc ? $st1 = abc; $st2 =

RE: [PHP] again with the regex

2001-05-15 Thread scott [gts]
well, if all numbers are *always* 10 digits long, use this $old = 1234567890; $new = preg_match('/(\d{3})(\d{3})(\d{4})/', $old, $matches); print (. $matches[1] .) . $matches[2] .-. $matches[3]; prints (123) 456-7890 -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]]

RE: [PHP] Newbie-Continue Line of Code

2001-05-15 Thread scott [gts]
then people would think you're a perl programmer ;) -Original Message- From: phpman [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Newbie-Continue Line of Code In theory you could put all your code on one line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Shopping with variables

2001-05-16 Thread scott [gts]
why not use serialized arrays stored in cookies to store a growing list of things that the user is purchasing? then, it'd be as easy as having this array stored as a single cookie... ;) $items = array( #indexed by item ID '1003045' = array( 'name' ='The best

RE: [PHP] need help

2001-05-16 Thread scott [gts]
wow, that's quite a mouthfull ;) use dirname $path=substr(__FILE__, 0, strlen(__FILE__) - strlen(basename(__FILE__)) - 1); -- 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] Inserting and Selecting an IMAGE from the DB

2001-05-16 Thread scott [gts]
use a BLOB field type read the docs for mysql, or whatever DB you happen to be using. -Original Message- From: Felipe Moreno [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:02 AM To: [EMAIL PROTECTED] Subject: [PHP] Inserting and Selecting an IMAGE from the DB

RE: [PHP] php as CGI

2001-05-16 Thread scott [gts]
you need to: ./configure [whatever options] make make test make install (as root) then you need to edit Apache httpd.conf appropriately and restart the daemon. then, it should work -Original Message- From: Beech Rintoul [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001

RE: [PHP] still not friends with RegExps..

2001-05-16 Thread scott [gts]
yes... i agree. if you know pregs, you have the added benefit of knowing how to write regexps for PHP *and* perl (should you ever have to program in perl) i personally prefer pregs becuase i think that the syntax is cleaner and more concise... -Original Message- From: Christian

RE: [PHP] Is there a better way to do this

2001-05-16 Thread scott [gts]
what are you trying to do that for? there's probably a much cleaner way to do what you want, but i dont really know what you want to do, so i cannot suggest anything -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 5:10 PM To:

RE: [PHP] running a stand-alone PHP program

2001-05-16 Thread scott [gts]
yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize

RE: [PHP] deleting a file

2001-05-16 Thread scott [gts]
read the docs you'll find your answer there. php.net/delete ;) -Original Message- From: Joseph Bannon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 3:53 PM To: PHP (E-mail) Subject: [PHP] deleting a file What is the file function to remove/delete a file from a

RE: Re[2]: [PHP] Is there a better way to do this

2001-05-16 Thread scott [gts]
change its name and run the rest of the script. If nether exists the quit the program all together Wednesday, May 16, 2001, 2:27:19 PM, you wrote: scott [gts] what are you trying to do that for? scott [gts] there's probably a much cleaner way to do what you scott [gts] want, but i dont

RE: [PHP] Re-directing

2001-05-17 Thread scott [gts]
: Wednesday, May 16, 2001 4:58 PM To: scott [gts] Subject: RE: [PHP] Re-directing At 14:56 16-5-01 -0400, you wrote: if you need to redirect a page, why not juse use header(Location: ./newurl.php); ?? or, as was suggested, use the apache directive to do it for you if you have access

RE: [PHP] Installation PHP4 on UNIX problems

2001-05-17 Thread scott [gts]
you could either install php as CGI stanalone or download the apache header files and put them somewhere that PHP can find them if you've got no *.h files, that probably means that someone deleted them, that you've got a binary distribution of apache on your system, or that you're telling

RE: [PHP] dynamically naming arrays

2001-05-17 Thread scott [gts]
? $me = foo; ${$me} = now; print $foo; ? even though it can be done, i strongly reccomend that you re-evaluate the reasons why you want to do this. making var-of-a-var is usually not the easiest/best way to accomplish something why not use assoc. arrays?? $stuff['foo'] = explode(...);

RE: [PHP] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-18 Thread scott [gts]
yes. netscape is incredibly anal about tables. if you miss even one tag, the entire table will not show... and netscape handles table background images weird too, so keep that in mind if the table shows up, but looks like someone vomited all over it. per your subject header: 1) it's a netscape

RE: [PHP] MYSQL Password

2001-05-18 Thread scott [gts]
from the shell, you can use the mysql program ./mysql -uUser -pPass dbname from PHP, why dont you just use: mysql_connect(...); it seems that you might be confused about mysql, trying to access it via PHP from the unix shell. if you want to set a unix shell enviornment variable and access it

RE: [PHP] running a stand-alone PHP program

2001-05-18 Thread scott [gts]
do you have a ScriptAlias directive in the apache conf's? -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 5:16 PM To: Nathan Cook; [EMAIL PROTECTED] Subject: Re: [PHP] running a stand-alone PHP program Excellent. I got this working.

RE: [PHP] Arg seperators

2001-05-18 Thread scott [gts]
i had to do that once with a perl script i was writing because there were a variable number of options that could be passed in, yet i needed to have a fixed number of paramaters going into the script. i used: ./prog.cgi?opts=x:1,y:2,z:3 sort-of like a primitive form of php's ability to pass

RE: [PHP] Need more help please!

2001-05-18 Thread scott [gts]
and adding to what Miles says: make sure to go thru any files that might be require()'d or include()'d, becuase any stuff outside the ? ? tags will be considered output also. that error is like a rite of passage ;) -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]]

RE: [PHP] Random number

2001-05-18 Thread scott [gts]
i love when newbies ask for help and i'm able to help, but when it comes to people being just plain lazy, i agree with Miles... ** please read the docs before asking questions ** -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Random number

RE: [PHP] Got OO error after upgraded php3.0.8 to php4.05

2001-05-18 Thread scott [gts]
please send a code snippet... a lot of things changed from 3.x to 4.x -Original Message- From: Jeffrey Wang [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 2:37 PM To: [EMAIL PROTECTED] Subject: [PHP] Got OO error after upgraded php3.0.8 to php4.05 Hi, I got error

RE: [PHP] Not losing variables in forms w/ checkboxes

2001-05-18 Thread scott [gts]
you need to specify those extra braces for any multi-select HTMl object i had the same problem with a: SELECT NAME=... MULTIPLE -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Subject: RE: [PHP] Not losing variables in forms w/ checkboxes Just append a pair of

RE: [PHP] Server limits/recommendations

2001-05-18 Thread scott [gts]
the words shared NT server make a chill run up my spine. apache will beat any MS webserver hands down, and overall, linux is more stable (and usually a lot faster and easier to configure) than NT. MS makes great user-interfaces and office software, *not* great server software... i'd go with

[PHP] Database Information Manager script i wrote

2001-05-22 Thread scott [gts]
I've been working on this thing for the past few days and thought i'd share it all with you. i've posted a demo up: you cannot delete rows, but you can add and edit them http://furt.com/php/dbedit/ to get the code: http://furt.com/php/dbedit_b1.zip (please read specs.php for lots of

  1   2   3   >