FW: [PHP] REALLY NEWB QUESTION - include issue

2008-07-01 Thread TS
 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:[EMAIL PROTECTED] 
Sent: Tuesday, July 01, 2008 1:58 AM
To: php-general@lists.php.net
Subject: RE: [PHP] REALLY NEWB QUESTION - include issue

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


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



Re: FW: [PHP] REALLY NEWB QUESTION - include issue

2008-07-01 Thread Chris

 -Original Message-
 From: Thijs Lensselink [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 01, 2008 1:58 AM
 To: php-general@lists.php.net
 Subject: RE: [PHP] REALLY NEWB QUESTION - include issue
 
 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


/var/www/vhosts/domain/httpdocs/file.php is not in the paths you allowed:

/var/www/vhosts/differentdomain/httpdocs

or

/tmp

So you'll need to adjust it through your apache config or you can
disable it just for that domain as well.

See
http://www.php.net/manual/en/configuration.changes.php#configuration.changes.apache


and

http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir


-- 
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: FW: [PHP] REALLY NEWB QUESTION - include issue

2008-07-01 Thread Thijs Lensselink

Quoting TS [EMAIL PROTECTED]:


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:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2008 1:58 AM
To: php-general@lists.php.net
Subject: RE: [PHP] REALLY NEWB QUESTION - include issue

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.




In your first post you mentioned something about a remote domain. So i  
assumed you were including a remote page. But Chris already answered  
your question. Just add the paths so they are accessible.



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