safe mode


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting safe mode
# 1  
Old 11-06-2006
safe mode

Hello

I'm working on a PHP project right now and when I try to run 'mkdir' I've been getting an error:

code:
mkdir("<full path>/test", 0700);

error:
PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: SAFE MODE Restriction in effect. The script whose uid is 10002 is not allowed to access <full path> owned by uid 10004 in <full path>/test.php on line 3

also

code:
shell_exec("mkdir <full path>/test");

error:
PHP Warning: shell_exec() [<a href='function.shell-exec'>function.shell-exec</a>]: Cannot execute using backquotes in Safe Mode in <full path>/test.php on line 4
# 2  
Old 11-06-2006
# 3  
Old 11-06-2006
Quote:
Originally Posted by Glenn Arndt
i went through and adjusted the safe_mode attributes in php.ini accordingly, and i'm still getting the same errors (after apache restarted).
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. HP-UX

From a C++ application how to find if a hpux host is in standard mode or trusted mode

is there a way for my C++ application to find out which mode the hpux OS is running in? standard mode or trusted mode. (3 Replies)
Discussion started by: einsteinBrain
3 Replies

2. Solaris

DNS service is in maintenance mode. How to bring it back to online mode?

:confused: when i tried to look the status of DNS-client, it is in maintenance mode..... Please tell me how to bring it back to online mode...PLEASE TELL ME STEP BY STEP.... PLEASE... :wall: (2 Replies)
Discussion started by: vamshigvk475
2 Replies

3. UNIX for Advanced & Expert Users

What is the difference between single line mode and multiline mode in Regular expressions?

Hi All, Can please let me know what is the difference between the single line mode and multi line mode in regular expresions? Thanks, Chidhambaram B (3 Replies)
Discussion started by: chidhu.anu
3 Replies

4. Solaris

Async-Signal-Safe versus MT-Safe

Hi, I am Solaris 9 developer and notice that the documentation does not provide a clear notion of the inherent concurrency in routines defined as "Async-Signal-Safe". Routines defined as "MT-Safe" obviously have the best level of concurrency, compared to normal "Safe" interfaces. I have... (1 Reply)
Discussion started by: tristan12
1 Replies

5. SuSE

Convet Linux OS from text mode to graphic mode

Hi All, I used to have my suse linux(VM) server in graphic mode but not anymore since morning. I cant rolback since i loose somuch work. Any idea how to it back to normal. Thanks (6 Replies)
Discussion started by: s_linux
6 Replies

6. Linux

boot linux in safe mode

How do I boot a linux box in safe mode? Thank You. (4 Replies)
Discussion started by: etcpasswd
4 Replies
Login or Register to Ask a Question