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
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.
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
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
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
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
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
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
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
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
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
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
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
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&
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.
- 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
is there a php equivalent for this little tidbit from a friend's cf script? here it is:
17 matches
Mail list logo