Page 1 of 1

Parse Error? Please help.

Posted: Sun Apr 27, 2008 7:02 am
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.

Re: Parse Error? Please help.

Posted: Sun Apr 27, 2008 7:19 am
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?

Re: Parse Error? Please help.

Posted: Sun Apr 27, 2008 9:22 am
by Aquw 776
No, it's not a remote file- it's part of my website.
Yes, I'm on a shared host.

Re: Parse Error? Please help.

Posted: Sun Apr 27, 2008 1:38 pm
by Oren
Then why you have "http://" instead of just a relative path to the local file?
Use a relative path instead.