[PHP] Subroutines

2001-09-29 Thread Chris Herring
I've looked through the manual (or at least searched) for subroutines, and I can't find them, there's a guy I know who made a script with custom PHP subroutines. (http://b000.net/) Anyway, I want to know how to make them. Thanks for any input.

Re: [PHP] Subroutines

2001-09-29 Thread Chris Herring
My bad, http://www.b000.net/code/ - Original Message - From: Chris Herring [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Sunday, September 30, 2001 1:07 AM Subject: [PHP] Subroutines I've looked through the manual (or at least searched) for subroutines, and I can't find them

Re: [PHP] WEB LOG

2001-09-24 Thread Chris Herring
Oops, I looked through this too fast; I might have worked out what really needs to be done... if $pwd == $real_pwd { header (Location: http://actualdestinedsite;); } elsif { header (Location: http://evilsitethathasanerror;); } - Original Message - From: Ardani Sarjito [EMAIL PROTECTED]

Re: [PHP] WEB LOG

2001-09-24 Thread Chris Herring
OOPS, again, elseif isn't what needs to be done. Ok, here we go. if $pwd == $real_pwd { header (Location: http://therealsite;); } else { header (Location: http://badsite;); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] array

2001-08-21 Thread Chris Herring
I'm trying to get an array to read the text from a file, and so far it isn't working. If you can help me, respond. snippet $fp = fopen (./file.txt, r); $text = array ($fp); sort ($text); reset ($text); while (list ($key, $val) = each ($text)) { echo [.$key.] .$val; echo br; } fclose

[PHP] IF statements

2001-05-22 Thread chris herring
Ok, use your imaginations and visualize what I'm trying to do with this, because I'm not quite sure how to explain it. Anyway, I'm trying to have a script that says when THIS_VAR and THAT_VAR are a certain number it show something. I'm not quite sure how to do that without making yet another

[PHP] UGH

2001-05-17 Thread chris herring
This is really bugging me. I don't see any reason why it shouldn't work, yet it doesn't. ? $date = date (d); $math = 24 - $date; if ($date = 24); { echo FONT SIZE=4 FACE=ARIAL COLOR=#808080SCHOOL'S OUT FOR SUMMER!!! *guitar ballad*/font; } else { echo FONT SIZE=4 FACE=ARIAL

[PHP] backends

2001-04-30 Thread chris herring
Anybody here make their own news scripts? If so would you mind giving me a download url or sending it to me? I would appreciate anything like that. Thanks. -chris

Re: [PHP] writing to file on server

2001-04-22 Thread chris herring
unless that file you're writing to is on a different server, just put the relative location to the file. ie: ./guestbook.txt if this doesn't work I have nothing to offer you. :-\ - Original Message - From: Joeri Vankelst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 22,

Re: [PHP] Newbie Help!! Please Look!

2001-04-19 Thread chris herring
right up my alley... I use cuteftp, and it usually does all this stuff for you. all you have to do is right click on the file you want to edit, and it opens it up in notepad, or the editor you choose. just make sure you save the file before you close it. after that cuteftp will have a window that

Re: [PHP] Newbie Help!! Please Look!

2001-04-19 Thread chris herring
forgot to mention that ascii/binary is auto in cuteftp - Original Message - From: "chris herring" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 1:51 AM Subject: Re: [PHP] Newbie Help!! Please Look! right up my alley... I use cuteftp, and it usuall

[PHP] need help

2001-04-18 Thread chris herring
this is really buggin me... i've got this free-for-all that i want to make, and everything seems logical, but echo "form method=\"POST\" action=\"$PHP_SELF\" name=\"linkadd\""; echo "input type=\"text\" name=\"url\" size=\"20\" value=\"http://\"br"; echo "input type=\"text\" name=\"text\"

[PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
I got a question here. How would you go about calling variables from a form. I'm sure this is super-easy, but I'm a newbie. Any help would be greatly appreciated.

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
how would you go about writing that data do a text file then? - Original Message - From: "David Robley" [EMAIL PROTECTED] To: "chris herring" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 27, 2001 10:19 PM Subject: Re: [PHP] Blah I'm Stupid On Wed, 28 M

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
\"$fp\""; echo "input type=\"text\" name=\"url\" size=\"20\" value=\"http://\""; echo "input type=\"text\" name=\"text\" size=\"20\""; echo "input type=\"submit\" name=\"su

[PHP] cf to php

2001-03-18 Thread chris herring
is there a php equivalent for this little tidbit from a friend's cf script? here it is: cfif NOT ISDEFINED("url.page")