Saved Bookmarks
| 1. |
Solve : My Index Page won't show, instead it shows the PHP redirect code? |
|
Answer» http://tamsanh.com/ It generates: // This file will generate and return the main page of the site $CONF = array(); $CONF['Self'] = 'index.php'; include('./config.php'); selector(); ?> when accessed. Can someone please help?Make sure you have PHP installed/CONFIGURED correctly. http://www.php.net/i checked your link, and found the text you described. I wonder: Is this code we are SEEING exactly the code of the index file? If so, it reminds me of a problem I encountered once before, the 1st time I ever saw PHP. It was the file name & extention. If your file is named INDEX.PHP for instance, try renaming it "INDEX.PHP" (by including the quotations in your file name and extention.) I know that sounds wierd but she worked for me If you go to the site using ""tamsanh.com/index.htm"" it will come up. The PHP code should be removed.. You may need to contact the host to make sure the thing a ma jug called .htaccess is set OK. Or something like that.. Such problems are usually caused by incorrect configurations of the server or the particular path that are hosting your files. Particuloar file extensions should be associated with one of the mimetype which in TURN are configured in apache to be processed by a particular FILTER / extension such as /usr/bin/local/php.Quote from: Carbon Dudeoxide on January 01, 2009, 05:49:45 AM Check the date of the last post..... |
|