index.php

Status
Not open for further replies.

txl8578

New Member
Messages
1
Reaction score
0
Points
0
I'm trying to include php in my webpage. Whenever I try to run php in my index.html, it doesnt work. Whenever I change my index.html to index.php it gives me an error when I go to the url. Any ideas?
 

digitaljit

New Member
Messages
266
Reaction score
0
Points
0
Hi

Log into your accounts management page and request for PHP version.
 

Sharky

Community Paragon
Community Support
Messages
4,399
Reaction score
95
Points
48
Looks like maybe when you're putting PHP in index.html it's not parsing it, and when you make it index.php, it's looking for index.html and not finding it.

Use .htaccess file and create/use the following:

DirectoryIndex index.html index.htm index.php

This would allow you to use index.php as a directory index page and show when you do not specify a page URL, ie http://sitename.com/
 
Last edited:

alfred

New Member
Messages
87
Reaction score
0
Points
0
Also, .html cannot parse php without the help from a 3rd party (i.e. javascript).
 
Status
Not open for further replies.
Top