[PHP] explicit dot in open_basedir

2002-11-18 Thread Marc Delisle
Hi,

I am using PHP 4.2.2 and would like to know what is the expected behavior when
I don't put an explicit dot in the open_basedir path.

Should I be able to open a file in "./tmp" ?

Another question: let's say my document root is /www and I put a /www in open_basedir,
then should I be able to open a file in "./tmp", which is a subdir under /www/marc?

Thanks,

Marc Delisle


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




Re: [PHP] explicit dot in open_basedir

2002-11-18 Thread Marc Delisle
My question was: what is supposed to happen if there is no dot
in the open_basedir path, for example:

open_basedir = /www

Should I be able to open a file in ./tmp  ?

The way I understand the open_basedir doc, I should not be able.
But another PHP user is telling me that he can open a file in ./tmp
with no explicit dot in the path of open_basedir, and I cannot reproduce this
behavior on my server.

Marc

BigDog wrote:


The explicit dot is to tell the system that you want the current working
directory.

So by saying "./tmp" you want the tmp (directory or file) that is
located in the current working directory.

If i understand what you are saying is that "./tmp" is a directory in
the current working directory.  If there is a file in that directory
that you can open then yes you should be able to open a file in that
directory.

just remember that "./" means that you want the current working
directory.

Also, "../" means that you want to move up one in the directory
structure.

 

On Mon, 2002-11-18 at 14:58, Marc Delisle wrote:

Hi,

I am using PHP 4.2.2 and would like to know what is the expected behavior when
I don't put an explicit dot in the open_basedir path.

Should I be able to open a file in "./tmp" ?

Another question: let's say my document root is /www and I put a /www in open_basedir,
then should I be able to open a file in "./tmp", which is a subdir under /www/marc?

Thanks,

Marc Delisle






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




[PHP] Build static with Apache 2.0.35

2002-04-08 Thread Marc Delisle

Is PHP 4.1.2 (or 4.2.0) supported only with apxs2, or can I build it static into 
Apache 2.0.35?

And is it still true that running static is faster than DSO?

Thanks.
-- 
Marc Delisle

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




[PHP] open_basedir: what is a typical setting?

2001-12-14 Thread Marc Delisle

Hi,

I would like to know from sysadmins, what do you put usually in your open_basedir?  It 
is
mostly "."?

This is to check if/how we could make phpMyAdmin's dump uploads work on an 
open_basedir server.

Thanks.

-- 
Marc Delisle  
phpMyAdmin dev. team

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] What do admins put in their open_basedir

2001-12-14 Thread Marc Delisle

Hi,

I would like to know if sysadmins usually put "." in their php.ini, open_basedir 
variable, or if
they put some other directory, or both.

The reason is that phpMyAdmin's dump uploads don't work well currently on a server with
open_basedir, and I would try to code around the problem, if practical.

Thanks.

Marc Delisle
phpMyAdmin dev. team

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] What do admins put in their open_basedir?

2001-12-14 Thread Marc Delisle

Hi,

I am checking if phpMyAdmin's dump file uploads could work well in a open_basedir 
environment.
So I would like to know if sysadmins generally put "." in their php.ini open_basedir 
variable,
or if they put a special directory.

Thanks.

-- 
Marc Delisle  
phpMyAdmin dev. team

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]