Go Back   HostGator Peer Support Forums > HostGator Announcements > Network Status

Notices

Reply
 
Thread Tools
  #1  
Old 02-19-2008, 09:18 PM
seowebstar seowebstar is offline
Hatchling Croc
 
Join Date: Feb 2008
Posts: 11
Default index.php Help me please!!!

I have a index.php file that i need to be the my main .com file, i keep uploading the file into the main public_html directory but it wont work
the file wont go live.

Please help me
Reply With Quote
  #2  
Old 02-19-2008, 09:30 PM
jimbug's Avatar
jimbug jimbug is offline
Baby Croc
 
Join Date: Jan 2008
Location: California, USA
Posts: 83
Default Re: index.php Help me please!!!

Quote:
Originally Posted by seowebstar View Post
I have a index.php file that i need to be the my main .com file, i keep uploading the file into the main public_html directory but it wont work
the file wont go live.

Please help me
Maybe you can provide some more information.

1. The URL
2. Where we can view the index.php file.



If you have a index.htm or index.html there, they will have to be removed.

Or create a .htaccess file with the below line in it..

# Make sure index.php loads before index.html
DirectoryIndex index.php index.html index.htm
__________________
Jim
http://www.jimbug.org/
Reply With Quote
  #3  
Old 02-19-2008, 09:45 PM
seowebstar seowebstar is offline
Hatchling Croc
 
Join Date: Feb 2008
Posts: 11
Default Re: index.php Help me please!!!

my website is http://womenherbal.com/index.php

Quote:
If you have a index.htm or index.html there, they will have to be removed.
i removed them all
Reply With Quote
  #4  
Old 02-19-2008, 09:50 PM
brad brad is offline
Baby Croc
 
Join Date: Jan 2008
Posts: 89
Default Re: index.php Help me please!!!

looks like IT's working just fine.. it's referencing a /includes/global.php that doesn't exist.
Reply With Quote
  #5  
Old 02-19-2008, 09:51 PM
bbjordan's Avatar
bbjordan bbjordan is offline
Junior Croc
 
Join Date: Feb 2008
Location: Tip of Texas
Posts: 166
Default Re: index.php Help me please!!!

not working for me...
Reply With Quote
  #6  
Old 02-19-2008, 09:51 PM
brad brad is offline
Baby Croc
 
Join Date: Jan 2008
Posts: 89
Default Re: index.php Help me please!!!

well now you're just messing with it.. it's redirecting to http://index.html

that's not gonna work.

ETA: ok, now you're back to missing the /includes/global.php

but of course by the time i save this, it'll be back to trying to load index.html
Reply With Quote
  #7  
Old 02-19-2008, 09:55 PM
seowebstar seowebstar is offline
Hatchling Croc
 
Join Date: Feb 2008
Posts: 11
Default Re: index.php Help me please!!!

ok it should be going here now /includes/global.php

i just saw something in the ht access file that might have changed it but didnt so i put it back

so what do i do next, the file i want to upload has to be .php cannot be html
Reply With Quote
  #8  
Old 02-19-2008, 09:57 PM
brad brad is offline
Baby Croc
 
Join Date: Jan 2008
Posts: 89
Default Re: index.php Help me please!!!

your index.php is trying to include a file called includes/global.php - that doesn't exist, that's causing all those errors.

presumably it's supposed to be in '/home/icandy/public_html/includes/global.php' which is really what the include should say instead of just 'includes/global.php' if that's what it's supposed to be

i really can't help you beyond that. the server is working. it's not a system issue, certainly not a network issue.

Quote:
Warning: include(includes/global.php) [function.include]: failed to open stream: No such file or directory in /home/icandy/public_html/index.php on line 24
doesn't get much clearer than that.

make sure it's all lowercase too as *nix is case sensitive.

Last edited by brad; 02-19-2008 at 10:00 PM.
Reply With Quote
  #9  
Old 02-19-2008, 10:26 PM
jimbug's Avatar
jimbug jimbug is offline
Baby Croc
 
Join Date: Jan 2008
Location: California, USA
Posts: 83
Default Re: index.php Help me please!!!

You might try a full URL or path to the include file line 24...

/home/icandy/public_html/includes/global.php
or
http://womenherbal.com/includes/global.php

BTW I get a 404 going to the above link.
__________________
Jim
http://www.jimbug.org/
Reply With Quote
  #10  
Old 02-19-2008, 10:53 PM
seowebstar seowebstar is offline
Hatchling Croc
 
Join Date: Feb 2008
Posts: 11
Default Re: index.php Help me please!!!

thanks for all your help guys, the problem is resolved

i was missing 2 files

Reply With Quote
  #11  
Old 02-20-2008, 09:48 AM
brad brad is offline
Baby Croc
 
Join Date: Jan 2008
Posts: 89
Default Re: index.php Help me please!!!

yes, as i told you 3x.
Reply With Quote
Reply

Bookmarks

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 Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 04:29 AM.