[thelist] writing to file in php problem

Tom Dell'Aringa pixelmech at yahoo.com
Mon Jan 6 16:45:06 CST 2003


Hey all,

have this simple code:
-----------------------------------
$filename = "myfile.php";

$body  = "<html></html>";

$handle = fopen($filename,'w+');
$string = $body;
fputs($handle, $string);
fclose($handle);
-----------------------------------
That's all that is there..won't work. Keep getting an empty file
(nothing is written). This exact code works in other pages I
have..any ideas?

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the thelist mailing list