On Sun, Mar 21, 2010 at 2:20 AM, Watson Blair <bestudios.wb@xxxxxxxxx>wrote: > ya, sorry i diden't specify, i'm trying to build a simple RSS (haha, fat > chance it being simple, right?) reader for a site to import an ebay RSS feed > and desplay the contense. I'm using Magpie to accomplish it. also, you'll be > glad to know that your fix worked like a charm, all i need to do now is > limit the number of results and orginize all of the data returned (images > and such). my only curiousity about this now is what is up with that file > path.... why woulden't using the URL work? > > > On Sun, Mar 21, 2010 at 2:13 AM, Adam Richardson <simpleshot@xxxxxxxxx>wrote: > >> On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev <sv_forums@xxxxxxxxxxx>wrote: >> >>> >>> 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 <bestudios.wb@xxxxxxxxx >>>> >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 >>>>> >>>>> >>>> >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> Actually, after looking at the link you mentioned, I see it's PHP (I'm >> sorry, I didn't check the link before), and I'm wondering if you were just >> trying to include a file that's already on your server. Grabbing a PHP file >> from a remote source for parsing is a bad idea in terms of security, so >> hopefully that's not what you're doing. >> >> If the file is on your server, then the path would be something like below >> judging by your error message: >> <?php >> include_once("/home/content/81/5634781/html/magpierss/rss_fetch.inc"); ?> >> >> Adam >> >> -- >> Nephtali: PHP web framework that functions beautifully >> http://nephtaliproject.com >> > > Because of the potential security issues, the option to supply URL's is often not enabled: http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen Most of the time you can just look at your error messages when an include doesn't work on your server to figure out what the local path should be. Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com