Question:

PHP and Yahoo! Web Hosting Custom Error Pages?

by  |  earlier

0 LIKES UnLike

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

 Tags:

   Report

3 ANSWERS


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


  2. Yes you can execute php on an html page.

    Include this line where you want to execute the script:

    <!--#include virtual="yourfile.php"-->

    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!

  3. 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.

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.