icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Choosing Surpass » Signed Up? » Website Problems

Signed Up? If you're new with a question, ask here!

Reply
 
LinkBack Thread Tools Search this Thread
Old July 31st, 2007, 8:18 PM   #1 (permalink)
Registered User
Seasoned Poster
 
~shellz~'s Avatar
 
Joined in Jul 2007
32 posts
Gave thanks: 5
Thanked 3 times
Red face Website Problems

My website is fully done in php and I'm having problems. Everything was working fine before I moved. Now on all my pages it displays :

Quote:
"Warning: main() [function.main]: URL file-access is disabled in the server configuration "

Here is a screenshot of one of my pages: http://img49.imageshack.us/img49/9849/problembg6.jpg


My header & footer extensions are correct, none of my file names changed. Is there a solution for this?
__________________
my corner of the web!


free subdomain hosting


~shellz~ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 31st, 2007, 10:27 PM   #2 (permalink)
4-8-15-16-23-42
Excelling Contributor
 
caseylee's Avatar
 
Joined in Jul 2007
Lives in Australia, turn left at America
Hosted on Luna & Nexus (dedicated)
779 posts
Gave thanks: 37
Thanked 29 times
I believe it's because you are trying to include remote files, which has been disabled on the server probably because of security issues.

Instead of this:

PHP Code:
include "http://da-mania.net/header.php"
Try this:

PHP Code:
include "home/damania/public_html/header.php"
Or even just

PHP Code:
include "header.php"
__________________
caseylee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks caseylee for this great post!
Kayla (July 31st, 2007)
Old July 31st, 2007, 11:46 PM   #3 (permalink)
Registered User
Seasoned Poster
 
~shellz~'s Avatar
 
Joined in Jul 2007
32 posts
Gave thanks: 5
Thanked 3 times
It's still not working. For some reason, all our pages that are not in folders, are fine, but the ones in folders are the ones that are displaying that error message.
__________________
my corner of the web!


free subdomain hosting


~shellz~ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 31st, 2007, 11:54 PM   #4 (permalink)
He shoots.. He scores!
Super #1
 
puckchaser's Avatar
 
Joined in Feb 2007
Lives in A room with no windows.
Hosted on SH110
1,446 posts
Gave thanks: 46
Thanked 140 times
Perhaps the path to the files in your code is messed up?

What are the folder permissions? At the most they should be 755, if you have them set to 777 you will encounter problems....
__________________
SH110
puckchaser is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 31st, 2007, 11:58 PM   #5 (permalink)
4-8-15-16-23-42
Excelling Contributor
 
caseylee's Avatar
 
Joined in Jul 2007
Lives in Australia, turn left at America
Hosted on Luna & Nexus (dedicated)
779 posts
Gave thanks: 37
Thanked 29 times
That error happens because you are trying to include remote files. What that means is that you are linking to your header.php file via a URL rather than locally. Most servers that I have been on disable remote inclusion for security reasons. It's better for you to include locally, anyway, because it saves you on bandwidth.

I realised I'd left a "/" out of the php code in my previous post, it should have been:

PHP Code:
include "/home/damania/public_html/header.php"




If you used just header.php that I'd put at the end of my previous post, that would probably be why it's not working in sub-directories.
__________________

Last edited by caseylee; August 1st, 2007 at 12:00 AM..
caseylee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks caseylee for this great post!
~shellz~ (August 1st, 2007)
Old August 1st, 2007, 12:00 AM   #6 (permalink)
He shoots.. He scores!
Super #1
 
puckchaser's Avatar
 
Joined in Feb 2007
Lives in A room with no windows.
Hosted on SH110
1,446 posts
Gave thanks: 46
Thanked 140 times
Quote:
Originally Posted by caseylee View Post
That error happens because you are trying to include remote files. What that means is that you are linking to your header.php file via a URL rather than locally. Most servers that I have been on disable remote inclusion for security reasons. It's better for you to include locally, anyway, because it saves you on bandwidth.

I realised I'd left a "/" out of the php code in my previous post, it should have been:

PHP Code:
include "/home/damania/public_html/header.php"


Alrighty.. I was on the right track... Path related error....
__________________
SH110
puckchaser is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 1st, 2007, 12:02 AM   #7 (permalink)
4-8-15-16-23-42
Excelling Contributor
 
caseylee's Avatar
 
Joined in Jul 2007
Lives in Australia, turn left at America
Hosted on Luna & Nexus (dedicated)
779 posts
Gave thanks: 37
Thanked 29 times
Haha, yeah. My bad.
__________________
caseylee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 1st, 2007, 12:05 AM   #8 (permalink)
Registered User
Seasoned Poster
 
~shellz~'s Avatar
 
Joined in Jul 2007
32 posts
Gave thanks: 5
Thanked 3 times
thankyou so much!
__________________
my corner of the web!


free subdomain hosting


~shellz~ is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 1st, 2007, 3:17 AM   #9 (permalink)
4-8-15-16-23-42
Excelling Contributor
 
caseylee's Avatar
 
Joined in Jul 2007
Lives in Australia, turn left at America
Hosted on Luna & Nexus (dedicated)
779 posts
Gave thanks: 37
Thanked 29 times
My pleasure
__________________
caseylee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
Pingbacks are On
Refbacks are On