[PHP] Safe mode Problem

2003-06-10 Thread Cristian MARIN
How can I disable the Safe Mode for a php 4.3.2 compiled on linux with 
--enable-safe-mode.

The problem is I can't touch the machine so I can't test if I change the setting in 
the php.ini it just ignore the flag and I don't have the posibility to reproduce this 
on my server. 

Even a link to where I can find docs about the options for compiling Php will be good.

-- 
-
Cristian MARIN
InterAKT Online (www.interakt.ro)
+4021 411 2610 
[EMAIL PROTECTED]


Re: [PHP] safe mode problem

2003-02-04 Thread Marek Kilimajer
I recomend you use ftp functions to upload the script to your site (from 
the generating file). If you only use normal filesystem function, the 
newly created file will get the owner of the http server.

gurvinder singh wrote:

and how can i be root from a php script?

i want chown from the script itself which created the page.

-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 12:39 PM
To: Gurvinder Singh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] safe mode problem


what you did should work (you must be root to change owner). You can use
-R switch to change owner recursively

Gurvinder Singh wrote:

 

hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script i get this error

Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not
allowed to access file.php owned by uid 831

Is there a way to handle this.

i even tried chown to change the newly created file's owner to be 831 but
   

it
 

doesnt seem to work

Thanks & Regards
Gurvinder





   




 



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




RE: [PHP] safe mode problem

2003-02-03 Thread gurvinder singh
and how can i be root from a php script?

i want chown from the script itself which created the page.

-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 12:39 PM
To: Gurvinder Singh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] safe mode problem


what you did should work (you must be root to change owner). You can use
-R switch to change owner recursively

Gurvinder Singh wrote:

>hi
>i create a php page dynamically in my php script. this page include one of
>my other php file. when i run the newly created script i get this error
>
>Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not
>allowed to access file.php owned by uid 831
>
>Is there a way to handle this.
>
>i even tried chown to change the newly created file's owner to be 831 but
it
>doesnt seem to work
>
>Thanks & Regards
>Gurvinder
>
>
>
>
>



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




Re: [PHP] safe mode problem

2003-02-03 Thread Chris Hayes
At 11:39 3-2-03, you wrote:

what you did should work (you must be root to change owner). You can use 
-R switch to change owner recursively

Gurvinder Singh wrote:

hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script i get this error

Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not
allowed to access file.php owned by uid 831

Is there a way to handle this.

i even tried chown to change the newly created file's owner to be 831 but it
doesnt seem to work

I think you did it just the wrong way round, the way i read it the owner of 
the file you wanted to read already was 831, so try to chown it to 48.

Safe mode writes files with chmod 750, so now effectively 0 for the php 
script that tries to reach it. In stead of chowning, you can also chmod the 
file to read (file.php) to 777, if you do not mind the security too much, 
if possible take the file out of the www directory.


I have a big problem with safe mode now with a script that needs to create 
subdirectories itself, so with every new added course i would need to go 
and change the chmod by FTP.



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



Re: [PHP] safe mode problem

2003-02-03 Thread Marek Kilimajer
what you did should work (you must be root to change owner). You can use 
-R switch to change owner recursively

Gurvinder Singh wrote:

hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script i get this error

Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not
allowed to access file.php owned by uid 831

Is there a way to handle this.

i even tried chown to change the newly created file's owner to be 831 but it
doesnt seem to work

Thanks & Regards
Gurvinder



 



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




[PHP] safe mode problem

2003-02-02 Thread Gurvinder Singh
hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script i get this error

Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not
allowed to access file.php owned by uid 831

Is there a way to handle this.

i even tried chown to change the newly created file's owner to be 831 but it
doesnt seem to work

Thanks & Regards
Gurvinder



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