PDA

View Full Version : PHP on a .html page? help..



lick
14-06-2009, 03:51 PM
Hiya, i have a layout on my site and it is saved index.html but when i try to put the two php scripts on the page it dose not work how do i change this so that the layout and the scripts work?

Johno
14-06-2009, 04:00 PM
I'm going to presume your host allows PHP, and if so its pretty simple. Just change the extension of the file to .php rather than .html

If not, you will need to host the PHP files somewhere else and then include them through an iFrame.

Fehm
14-06-2009, 04:27 PM
Johno! said it all really. It seems that all you need to do is change the extenstion of the file. e.g. index.html would become index.php.... The HTML will still work though!

lick
14-06-2009, 07:56 PM
I thought if i did that it would not work, but it did lol thanks x

Want to hide these adverts? Register an account for free!