Pulling my hair out over an include_once();
Pulling my hair out over an include_once();
am 21.03.2010 06:00:34 von Watson Blair
--0016367fa722f2d36504824875e1
Content-Type: text/plain; charset=ISO-8859-1
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:
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
--0016367fa722f2d36504824875e1--
Re: Pulling my hair out over an include_once();
am 21.03.2010 06:12:25 von Watson Blair
--0016e6d64514539e34048248a04f
Content-Type: text/plain; charset=ISO-8859-1
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 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:
>
>
> ");?>
>
> 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
>
--0016e6d64514539e34048248a04f--
Re: Re: Pulling my hair out over an include_once();
am 21.03.2010 06:45:39 von sv_forums
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
> 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:
>>
>>
>> ");?>
>>
>> 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
Re: Re: Pulling my hair out over an include_once();
am 21.03.2010 06:46:17 von Adam Richardson
--00c09ffb588e6634c4048249195b
Content-Type: text/plain; charset=ISO-8859-1
On Sun, Mar 21, 2010 at 1:12 AM, Watson Blair wrote:
> 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
> >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:
> >
> >
> > ");?>
> >
> > 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
> >
>
There are several potential problems with trying to use include_once (same
issues as include()) when trying to retrieve a resource by URL:
http://www.php.net/manual/en/function.include.php
Try file_get_contents instead, as in the below example:
");?>
And if that's not enabled on your server, try using CURL as outlined in this
tutorial:
http://phpsense.com/php/php-curl-functions.html
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
--00c09ffb588e6634c4048249195b--
Re: Pulling my hair out over an include_once();
am 21.03.2010 07:11:44 von Rene Veerman
is this file you need on your local server or truely on another machine?
and if it's on another machine, why do you need to include() it from there?
why not make a local copy as was suggested earlier?
there are many reasons not to include php scripts off other servers,
esp if the servers involved are not in the same building.
On Sun, Mar 21, 2010 at 6:00 AM, Watson Blair 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:
>
>
>
> 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
Re: Re: Pulling my hair out over an include_once();
am 21.03.2010 07:13:02 von Adam Richardson
--00c09fc2bcd81c0b550482497998
Content-Type: text/plain; charset=ISO-8859-1
On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev 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
>> >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:
>>>
>>>
>>> ");?>
>>>
>>> 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:
?>
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
--00c09fc2bcd81c0b550482497998--
Re: Re: Pulling my hair out over an include_once();
am 21.03.2010 07:13:15 von Watson Blair
--0016e6da7db8e0ee490482497916
Content-Type: text/plain; charset=ISO-8859-1
hey adam,
i changed the code to use file_get_contents();, however, when i tried to
later call a function form the file rss_fetch.inc it came up as an undefined
function.... did i miss something?
thanks,
Watson
On Sun, Mar 21, 2010 at 1:46 AM, Adam Richardson wrote:
> On Sun, Mar 21, 2010 at 1:12 AM, Watson Blair wrote:
>
>> 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
>> >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:
>> >
>> >
>> > ");?>
>> >
>> > 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
>> >
>>
>
> There are several potential problems with trying to use include_once (same
> issues as include()) when trying to retrieve a resource by URL:
> http://www.php.net/manual/en/function.include.php
>
> Try file_get_contents instead, as in the below example:
>
> http://www.jennysjunket.com/magpierss/rss_fetch.inc");?>
>
> And if that's not enabled on your server, try using CURL as outlined in
> this tutorial:
> http://phpsense.com/php/php-curl-functions.html
>
> Adam
>
> --
> Nephtali: PHP web framework that functions beautifully
> http://nephtaliproject.com
>
--0016e6da7db8e0ee490482497916--
Re: Re: Pulling my hair out over an include_once();
am 21.03.2010 07:20:28 von Watson Blair
--0016367fa8f5b1e78d048249934e
Content-Type: text/plain; charset=ISO-8859-1
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 wrote:
> On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev 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
>>> >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:
>>>>
>>>>
>>>> ");?>
>>>>
>>>> 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:
>
> include_once("/home/content/81/5634781/html/magpierss/rss_fe tch.inc"); ?>
>
> Adam
>
> --
> Nephtali: PHP web framework that functions beautifully
> http://nephtaliproject.com
>
--0016367fa8f5b1e78d048249934e--
Re: Re: Pulling my hair out over an include_once();
am 21.03.2010 07:27:39 von Adam Richardson
--00504502d49754e91b048249ad97
Content-Type: text/plain; charset=ISO-8859-1
On Sun, Mar 21, 2010 at 2:20 AM, Watson Blair 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 wrote:
>
>> On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev 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
>>>> >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:
>>>>>
>>>>>
>>>>> 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:
>>
>> include_once("/home/content/81/5634781/html/magpierss/rss_fe tch.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#in i.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
--00504502d49754e91b048249ad97--
Re: Re: Pulling my hair out over an include_once();
am 21.03.2010 07:35:45 von Rene Veerman
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=3Dversionnumber), 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, wrote:
> Duly noted. Thanks for baring with me on this one guys!
> Sent from my Verizon Wireless BlackBerry
>
> -----Original Message-----
> From: Rene Veerman
> Date: Sun, 21 Mar 2010 07:26:24
> To: Watson Blair
> Subject: Re: [PHP] 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 wr=
ote:
>> 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'l=
l 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 (image=
s
>> and such). my only curiousity about this now is what is up with that fil=
e
>> path.... why woulden't using the URL work?
>>
>> On Sun, Mar 21, 2010 at 2:13 AM, Adam Richardson w=
rote:
>>
>>> On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev w=
rote:
>>>
>>>>
>>>> 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_fo=
pen
>>>> on, you can file_get_contents() that URL and eval() it.
>>>>
>>>> Keep in mind you need *absolute* trust that the URL won't serve malici=
ous
>>>> 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
>>>>
>>>>
>>>>
>>>> =A0ah, i forgot to properly phrase my question... what am i doing wron=
g, 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
>>>>> >wrote:
>>>>>
>>>>> =A0Hey all, i'm sure i'm missing something glaringly obvious, but i h=
ave
>>>>>> yet
>>>>>> to find a solution to this online... so heres the line of code that =
i'm
>>>>>> getting hung up on:
>>>>>>
>>>>>>
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.i=
nc)
>>>>>> [
>>>>>> 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=3D'.:/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 j=
ust
>>> trying to include a file that's already on your server. =A0Grabbing a P=
HP 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 be=
low
>>> judging by your error message:
>>>
>>> include_once("/home/content/81/5634781/html/magpierss/rss_fe tch.inc"); =
?>
>>>
>>> Adam
>>>
>>> --
>>> Nephtali: =A0PHP 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