cool. tip: if you're gonna use libs like magpie, in 1 or more projects on a webserver, i'd put it in htdocs/lib/magpie-x.y.z, (x.y.z=versionnumber), then require_once('/lib/magpie-x.y.z/[magpie top include script.inc]') it at the top of htdocs/projectName/index.php or if it's only to be used in a specific function of the website, at the top of where-ever the code handles(starts) that function. an alternative is htdocs/projectName/lib/magpie-x.y.z it's not necessary to do it this way, but it does provide faster management of libs and a decrease in bug-count. On Sun, Mar 21, 2010 at 7:28 AM, <bestudios.wb@xxxxxxxxx> wrote: > Duly noted. Thanks for baring with me on this one guys! > Sent from my Verizon Wireless BlackBerry > > -----Original Message----- > From: Rene Veerman <rene7705@xxxxxxxxx> > Date: Sun, 21 Mar 2010 07:26:24 > To: Watson Blair<bestudios.wb@xxxxxxxxx> > Subject: Re: Re: Pulling my hair out over an include_once(); > > if you're going to use php software, put it on the server it must run > on, and require_once() it with an absolute or relative path, not a > URL. That's a golden rule for security, stability and performance > reasons. > > On Sun, Mar 21, 2010 at 7: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 >>> >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php