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 search

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

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 PROTEC

[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. $fp = fopen ("./file.txt", "r"); $text = array ($fp); sort ($text); reset ($text); while (list ($key, $val) = each ($text)) { echo "[".$key."] ".$val; echo ""; } fclose ($f

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

[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. SCHOOL'S OUT FOR SUMMER!!! *guitar ballad*"; } else { echo "Only $math days until school's out!!! w00p w00p!"; } ?> any help is appreciated

[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-18 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 cut

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

2001-04-18 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

[PHP] need help

2001-04-17 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 ""; echo ""; echo ""; echo ""; echo ""; if (isset($url) && isset($text)) { $fp = fopen("./file.txt", "w"); fwrite("$fp", "$text", "w"); fclose($fp); } ... that i

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
lose things. - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "chris herring" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 11:06 PM Subject: Re: [PHP] Blah I'm Stupid > On Wed, 28 Mar 2001 14:31, c

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&

[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] cf to php

2001-03-19 Thread chris herring
- Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "chris herring" <[EMAIL PROTECTED]> Sent: Monday, March 19, 2001 2:09 AM Subject: RE: [PHP] cf to php > What exactly does that do chri

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