Re: [PHP] Re: Pulling my hair out over an include_once();

[email protected] ("Stan Vassilev")
Newsgroups php.general
Message-ID <22A63C13FFDC4932BB051D172ACCFBBB@pc>
Hi,

As the error says, this is a problem with the server configuration.
In your php.ini file, allow_url_include should be enabled.

As an alternative, if you have allow_url_include off, but allow_url_fopen 
on, you can file_get_contents() that URL and eval() it.

Keep in mind you need *absolute* trust that the URL won't serve malicious 
PHP code, or change and break your site. If you need to run this code, it's 
a lot better to save the file from your browser and store it with your site, 
then include it locally. It'll be also faster this way.

Regards,
Stan Vassilev


> ah, i forgot to properly phrase my question... what am i doing wrong, and
> how do i make it work? slash, could you guys/girls point me towards a
> tutorial that will give me a hand?
> Thanks again,
> Watson
>
> On Sun, Mar 21, 2010 at 1:00 AM, Watson Blair 
> <[email protected]>wrote:
>
>> Hey all, i'm sure i'm missing something glaringly obvious, but i have yet
>> to find a solution to this online... so heres the line of code that i'm
>> getting hung up on:
>>
>> <?php include_once("http://www.jennysjunket.com/magpierss/rss_fetch.inc
>> ");?>
>>
>> which gives me this:
>>
>> *Warning*: include() [function.include]: URL file-access is disabled in
>> the server configuration in */home/content/81/5634781/html/ebay.php* on
>> line*1*
>>
>> *Warning*: include(http://www.jennysjunket.com/magpierss/rss_fetch.inc) [
>> function.include]: failed to open stream: no suitable wrapper could be
>> found in */home/content/81/5634781/html/ebay.php* on line *1*
>>
>> *Warning*: include() [function.include]: Failed opening '
>> http://www.jennysjunket.com/magpierss/rss_fetch.inc' for inclusion
>> (include_path='.:/usr/local/php5/lib/php') in *
>> /home/content/81/5634781/html/ebay.php* on line *1*
>> *
>> *
>> ive got all of my permissions set as open as i can, but i'm
>> still baffled about it.
>> Thanks,
>> Watson
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.