FW: REALLY NEWB QUESTION - include issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> To allow opening of remote url's you can enable 'allow_url_fopen' in
php.ini.

This isn't a remote url though. It's a local path.

Looking for something similar to crossdomain.xml file for Flash if anyone is
familiar with that.

Thanks, T


-----Original Message-----
From: Thijs Lensselink [mailto:dev@xxxxxxxx] 
Sent: Tuesday, July 01, 2008 1:58 AM
To: php-general@xxxxxxxxxxxxx
Subject: RE:  REALLY NEWB QUESTION - include issue

Quoting TS <sunnrunner@xxxxxxxxx>:

>> Code segment?
>> Exact error message? (Is there more context?)
>
> Include (/file);
>
> Function.include</a>]: open_basedir restriction in effect.
> File(/var/www/vhosts/domain/httpdocs/file.php) is not within the allowed
> path(s): (/var/www/vhosts/differentdomain/httpdocs:/tmp) in
> /var/www/vhosts/samedifferentdomain/httpdocs/custom-template.php on line
151
>
> It's my server and it makes perfect security sense because the package I'm
> using allows me to resell but, I don't care about that particular security
> issue since I'm not reselling. I'm assuming it's something in php.ini.
It's
> a linux machine. I'm not sure what else there is to tell.
>
> Thanks, T
>
>
>
>
>
> -----Original Message-----
> From: dhorton@xxxxxxxxxxxxxx [mailto:dhorton@xxxxxxxxxxxxxx]
> Sent: Tuesday, July 01, 2008 1:08 AM
> To: TS
> Subject: RE:  REALLY NEWB QUESTION - include issue
>
> Code segment?
> Exact error message? (Is there more context?)
>
> I probably don't have the answer to answer you, but make like a little
> easier
> for those who might by giving them some information to work with.
>
> David
>
>> -- Original Message --
>> From: "TS" <sunnrunner@xxxxxxxxx>
>> To: <php-general@xxxxxxxxxxxxx>
>> Date: Tue, 1 Jul 2008 00:50:50 -0600
>> Subject:  REALLY NEWB QUESTION - include issue
>>
>>
>> Trying to "include()" a script from another domain on my server and it
> won't
>> let me do it.
>>
>> I'm getting this error.
>>
>> open_basedir restriction in effect. Operation not permitted etc...
>>
>> Please help and stop laughing at me.
>>
>> Thanks ahead, T
>>
>>

Looks like your hosting is blocking files included outside of the  
webroot. If you have root access you could change this. If you wanted  
to. But security is not a bad thing :)

To allow opening of remote url's you can enable 'allow_url_fopen' in
php.ini.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux