Parse Error? Please help.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Aquw 776
Forum Newbie
Posts: 2
Joined: Sun Apr 27, 2008 7:00 am

Parse Error? Please help.

Post by Aquw 776 »

Okay, this is what I get when I try to include a file into my page:

Code: Select all

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/mrrsman/public_html/newsarchives.php on line 42
 
Warning: include(http://www.runevoyage.com/voyagegaming/ ... s/menu.htm) [function.include]: failed to open stream: no suitable wrapper could be found in /home/mrrsman/public_html/newsarchives.php on line 42
 
Warning: include() [function.include]: Failed opening 'http://www.runevoyage.com/voyagegaming/news_archives/menu.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mrrsman/public_html/newsarchives.php on line 42
Please help me- I'm not expereinced with PHP. Thank you.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Re: Parse Error? Please help.

Post by Oren »

Are you trying to include a remote file? It's simply disabled in the configuration file for security reasons.
Are you on a shared host? dedicated server? localhost? where were you trying to run this script?
Aquw 776
Forum Newbie
Posts: 2
Joined: Sun Apr 27, 2008 7:00 am

Re: Parse Error? Please help.

Post by Aquw 776 »

No, it's not a remote file- it's part of my website.
Yes, I'm on a shared host.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Re: Parse Error? Please help.

Post by Oren »

Then why you have "http://" instead of just a relative path to the local file?
Use a relative path instead.
Post Reply