Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   PHP (https://www.askmehelpdesk.com/forumdisplay.php?f=454)
-   -   How to make an index.html page to... (https://www.askmehelpdesk.com/showthread.php?t=467854)

  • Apr 29, 2010, 11:09 AM
    Scotty13
    How to make an index.html page to...
    Connect with my header file?

    Scotty13
  • Aug 20, 2010, 12:04 PM
    retsoksirhc

    Generally, a server that allows execution of PHP scripts will let you use index.php as an index file, isntead of index.html. It goes in order of preference though... and usually index.html is listed above index.php, so if you have both, index.html will be displayed.

    Unless your server executes .html as a php file (which most don't... ) you will need to either 1) use a PHP file like described above as an index, or 2) use a header tag in the html file to redirect it to the php file.

    Either way, once you have the user viewing the PHP file, you can just use the include() function in PHP to display another script as your header.

  • All times are GMT -7. The time now is 06:08 PM.