Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Reply
 
LinkBack Thread Tools
Old 09-22-2009, 04:45 AM   #1
HyperActive Warrior
War Room Member
 
Join Date: Jun 2008
Location: Maryland
Posts: 148
Thanks: 23
Thanked 3 Times in 3 Posts
Default php - index page wont display

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
LadyL08 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-22-2009, 05:12 AM   #2
Designer 30minisites.com
War Room Member
 
soffell's Avatar
 
Join Date: Aug 2008
Location: Dieng Plateu
Posts: 424
Blog Entries: 3
Thanks: 67
Thanked 53 Times in 27 Posts
Contact Info
Send a message via MSN to soffell Send a message via Yahoo to soffell Send a message via Skype™ to soffell
Default Re: php - index page wont display

Open .htaccess and add

Code:
DirectoryIndex index.php

soffell is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-23-2009, 05:19 AM   #3
HyperActive Warrior
War Room Member
 
Join Date: Jun 2008
Location: Maryland
Posts: 148
Thanks: 23
Thanked 3 Times in 3 Posts
Default Re: php - index page wont display

Quote:
Originally Posted by soffell View Post
Open .htaccess and add

Code:
DirectoryIndex index.php
Couldn't find it/didn't have it. I just deleted the index that rotated the pages and put a static page in it's place.

Thanks for the input.

Lynne
LadyL08 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-23-2009, 05:22 AM   #4
Warrior Member
War Room Member
 
robbluther's Avatar
 
Join Date: Sep 2009
Location: Pennsylvania
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Default Re: php - index page wont display

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.

robb luther
seo guy
www.geekepic.com
robbluther is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-27-2009, 11:26 AM   #5
HyperActive Warrior
War Room Member
 
NowIstheTime's Avatar
 
Join Date: Sep 2009
Posts: 106
Thanks: 4
Thanked 13 Times in 12 Posts
Default Re: php - index page wont display

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.
NowIstheTime is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-27-2009, 12:41 PM   #6
ZouklaTel
 
Join Date: Sep 2009
Location: USA
Posts: 33
Thanks: 0
Thanked 5 Times in 5 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via AIM to surgematrix
Default Re: php - index page wont display

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.

Unlimited Talk & Text
Nationwide Coverage
No Credit Check & No Contract
http://zouklatel.com
surgematrix is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
display, index, page, php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 01:15 PM.