Forum Moderators: coopster

Message Too Old, No Replies

How to create a HTML file in PHP

         

wfernley

7:47 pm on Feb 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I need to create a php script that will input some HTML code into a .html file. The script will then place a link to this file. Is this possible? How can I go about doing it?

Also, would problem arise with the permissions of the file created? My website runs on a Linux machine running Apache2.

Thanks in advance for your help! :)

omoutop

8:01 am on Feb 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



do u want the html file to be real? If not, use htaccess to "fake" create and html file from a dynamic php script. This file has all the properties of a real one, except is dont exist anywhere on server - it is created "on the fly" from the server when user asks for it (when he clicks on a link)