July 30th, 2000, 11:46 PM
-
Can you use php to create html files? If so, how? Thanx.
July 30th, 2000, 11:51 PM
-
Yes, using fputs() or fwrite() . Kinda like in perl. I'm not sure what the parimeters are. I'll have to look it up in the manual. If someone knows, please e-mail or post it.
------------------
Jerome Gagner
July 31st, 2000, 12:31 AM
-
This writes to, or creates if it does not exist already, a file called 'type4.txt'
it could be 'whatever.html' if you wanted.
$file = fopen("type4.txt", "w");
fputs($file,$string);
fclose($file);
if you are creating a HTML file you just pass the <hmtl> etc in $string - you just have to escape '' all the special charaters.
------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL
July 31st, 2000, 01:39 AM
-
Thank you, but what does the "w" stand for?