Monday, July 13, 2009

PHP and Yahoo! Web Hosting Custom Error Pages?

Is it possible to execute PHP scripts on Yahoo! Web Hosting%26#039;s Custom Error Pages? The documentation says to create a file called %26quot;e404.html%26quot;, but having the extension %26quot;.html%26quot; doesn%26#039;t allow the PHP to execute.



PHP and Yahoo! Web Hosting Custom Error Pages?





Yes you can execute php on an html page.



Include this line where you want to execute the script:



%26lt;!--#include virtual=%26quot;yourfile.php%26quot;--%26gt;



In order for this to work you may need to modify your .htaccess file with the following info:



AddType application/x-httpd-php .html



Good Luck!



PHP and Yahoo! Web Hosting Custom Error Pages?



Yes, Is it possible to execute PHP scripts on Yahoo! Web Hosting.



Other Replys:If they require the .html extension then you could do a javascript redirect or meta refresh to a custom error php page.



Hope that helps.

No comments:

Post a Comment