![]() |
| ||||||||
|
|
#1 |
|
HyperActive Warrior
War Room Member
Join Date: Jun 2008
Location: Maryland
Posts: 148
Thanks: 23
Thanked 3 Times in 3 Posts
|
My first tries with php have been unsuccessful. I have created two new sites using php and both are doing the same thing. I modified a template.
When I type in the url I get a blank page. If I type in the url/page name, it comes up fine. Without: http://www.rabbits-health-care.us --With: Training Rabbits There is an index.php page that apparently rotates the main page. The only thing I've modified is to make sure that all my webpages are listed on that index.php page. text from index.php <?php // Set how often home page changes - in seconds (recommended period is 86400 for 24 hours) $lockperiod = 86400; $filename = array (); $filename[0] = 'what-do-rabbits-eat.php'; $filename[1] = 'training-rabbits.php'; $filename[2] = 'baby-rabbit-care.php'; $filename[3] = 'holland-lop-rabbits.php'; $filename[4] = 'lop-eared-rabbits.php'; $filename[5] = 'rabbits-diet.php'; $randpos = (intval(time() / $lockperiod)) % 10; $filepath = $filename[$randpos]; include $filepath; ?> |
|
Lynne
|
|
|
|
|
|
|
#3 |
|
HyperActive Warrior
War Room Member
Join Date: Jun 2008
Location: Maryland
Posts: 148
Thanks: 23
Thanked 3 Times in 3 Posts
|
|
|
Lynne
|
|
|
|
|
|
|
#4 |
|
Warrior Member
War Room Member
Join Date: Sep 2009
Location: Pennsylvania
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
|
You can login to your control panel and set the .php extension to be the primary extension. Right now it sounds like .html is taking the priority. You can also contact your hosting provider and they should do it for you.
|
|
|
|
|
|
|
|
|
#5 |
|
HyperActive Warrior
War Room Member
Join Date: Sep 2009
Posts: 106
Thanks: 4
Thanked 13 Times in 12 Posts
|
Hi LadyL08, Did you get your site up? You can use robbluther's option if you plan on making the *.php extension, the primary extension going forward... but for now you can simply check to see if there are any index.html pages in the root directory.
Most likely it is blank, and the likely culprit. Try renaming that index.html page to something else, ex. index.html.old and I believe your site should work. |
|
|
|
|
|
#6 |
|
ZouklaTel
Join Date: Sep 2009
Location: USA
Posts: 33
Thanks: 0
Thanked 5 Times in 5 Posts
|
I hope you have your site up now. It it is not, make sure you do not have both index.htm and index.php in your root directory. If you do, the index.htm is what is showing up.
|
|
|
|
|
|
|
![]() |
|
| Tags |
| display, index, page, php |
| Thread Tools | |
|
|
![]() |