eboundhost.com

Hosting the world one click at a time

Help Center

Q: Can I have all .html pages parsed as PHP?

By default, files ending in .php, .php3, .php4 and .phtml will be parsed as PHP and you do not need to do anything to make this happen.

If you want all .html files parsed as PHP, just add the following line to an .htaccess file in the same directory or any directory above the one in which you want this behavior:
AddHandler cgi-script .html
To also have all .htm files parsed as PHP, add .htm to the end of the above line. Nothing else is required if you want .htm or .html files to be parsed as PHP.

If you want any other filetype other than .htm or .html to be parsed as PHP, such as .wow then you will have to do as above:
AddHandler cgi-script .wow
plus you will have to make all your .wow PHP files world executable (chmod -R 755 *.wow) and put the following on the first line of every .wow file before any opening php tags:

#!/usr/bin/php


Those 3 steps (AddHandler, chmod, and #!/usr/bin/php) are necessary when you want filetypes other than .htm and .html to be executed as PHP.

FREQUENTLY ASKED QUESTIONS
1) Can I have all .html pages parsed as PHP?
2) How do I set PHP include_path?

ONLINE MANUALS

CONTACT SUPPORT
Name:
Email:
Telephone:
Website:
Problem Description:
(650 char limit)

© 2000-2008 EBOUNDHOST. ALL RIGHTS RESERVED.