Quoting TS <[EMAIL PROTECTED]>:

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2008 1:08 AM
To: TS
Subject: RE: [PHP] 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" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Date: Tue, 1 Jul 2008 00:50:50 -0600
Subject: [PHP] 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

Reply via email to