Giving you something to do... :P

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
Achilles_Force
Forum Newbie
Posts: 9
Joined: Wed Feb 06, 2008 7:17 pm

Giving you something to do... :P

Post by Achilles_Force »

Why do I get this?
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/uccorpor/public_html/urynx.com/support/main.php on line 1

Warning: include(http://forum.uccorporation.org/support_urynx_news.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/uccorpor/public_html/urynx.com/support/main.php on line 1

Warning: include() [function.include]: Failed opening 'http://forum.uccorporation.org/support_urynx_news.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/uccorpor/public_html/urynx.com/support/main.php on line 1
All I have is this

Code: Select all

<?php include('../../events_urynx_news.php'); ?>
I have the above on /home/uccorpor/public_html/forum/events_urynx_news.php
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Giving you something to do... :P

Post by Christopher »

First, please give descriptive titles to your posts. You are getting free advice from volunteers here.

Second, have you looked inside of events_urynx_news.php ? It looks from the error messages that code inside that script is attempting to include those URLs.
(#10850)
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Re: Giving you something to do... :P

Post by aaronhall »

You're looking at the wrong file. PHP is complaining about

Code: Select all

include("http://forum.uccorporation.org/support_urynx_news.php")
in /home/uccorpor/public_html/urynx.com/support/main.php. allow_url_include is disabled in your php.ini -- if you can change it, php will shut up about it, but if the file you're trying to include is on a remote server, you're not going to be including php code, just the output of a parsed php file.
Achilles_Force
Forum Newbie
Posts: 9
Joined: Wed Feb 06, 2008 7:17 pm

Re: Giving you something to do... :P

Post by Achilles_Force »

Yeah, I think that "allow_url_include " is what it is. Can any one explain me how to enable it? I got Cpanel 10.x if that helps ^_^
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Giving you something to do... :P

Post by Christopher »

Aaron was nice enough to provide you with a link. Click it and then click around the manual a little.
(#10850)
Achilles_Force
Forum Newbie
Posts: 9
Joined: Wed Feb 06, 2008 7:17 pm

Re: Giving you something to do... :P

Post by Achilles_Force »

ooh, I'm sorry. Kinda missed that :P
Post Reply