Hi,
Just started playing with PHP.
One question...
An HTML file must have the .php extension...correct?
If so, how do I use that for my main html document? The "index" page that the server looks for when I
enter the url to the web site in a browser.
Thank you,
Mike
Newbie Question Regarding Page Name
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
It may be somthing in the .htaccess file, but you should be able to have index.php for your main page.
If you can only have html
then make the index.html and put this in it
CONTENT
how many number of seconds before the redirect occurs.
URL
the page that it will redirec to.
good luck
If you can only have html
then make the index.html and put this in it
Code: Select all
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=html-redirect2.html">how many number of seconds before the redirect occurs.
URL
the page that it will redirec to.
good luck
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Post your code. It sounds like you have an error in the code and they have error reporting disabled 
You can try adding this line to the top of your script
You can try adding this line to the top of your script
Code: Select all
<?php error_reporting(E_ALL); ?>If you use error_reporting, you always need to make sure you don't forget to invite his friend ini_set('display_errors', TRUE); to the party 