![]() |
PHP Question
does anyone know how to generate html pages from php.
I have a php script that displays my TGP galleries, as well as archives sections, but i want to output what the surfer would see to a html file. any help is greatly appreciated. |
A little more specific please? Or ICQ 47966255, but I'm about to go to dreamland.
|
asher,
contact me on ICQ. This shouldn't be that hard, will have u on the right track in 5 min. |
I think you mean: copy("http://server.com/file1.php","file1.html")
|
a preview thumbnail or the output of the .html page?
|
$file = fopen('index.html', 'w');
fwrite($file, '<html>'); fwrite($file, 'lots of content here'); fwrite($file, '</html>'); fclose($file); instead of echoing the HTML to user, write the information to a file. ryan |
Nightwork, thats a lot, saved me a lot of potential heartache
:thumbsup :thumbsup :thumbsup |
at your service, asher ;)
keydet, copy wouldn't do the trick, because it will copy the actual source of the .php file, not the parsed result. pornanza, that's basically the idea, but the fwrite for the html tags would generate errorous html, because the parsed result already contains the tags. PHP Code:
|
All times are GMT -7. The time now is 12:32 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123