[PHP] Re: system, exec, shell_exec, passthru

2006-08-14 Thread Michael Jonsson
Hi, I can run any external program like ls, cp, uptime... But if a try to run my shell script a get error. $passwdexe = sudo /usr/bin/webpasswd; $user=$_POST[name]; $passwd=$passwdexe $user 123456; echo $passwd; $result = system($passwd); Resultat

[PHP] Re: system, exec, shell_exec, passthru

2006-08-14 Thread Michael Jonsson
No, it not on... safe_mode Off Off safe_mode_exec_dir no valueno value safe_mode_gid Off Off safe_mode_include_dir no valueno value .M Adam Zey wrote: Michael Jonsson wrote: Hi, I can run any external program like ls, cp, uptime... But if a try

[PHP] Undefined index ???

2004-06-09 Thread Michael Jonsson
Hi Why do I get an error if the $_SESSION['user_status'] is NULL ??? Script## session_start(); echo $_SESSION['user_status']; #error## Notice: Undefined index: user_status in /var/www/itmdata/include/include.php on line 13 Regards Micke -- PHP General Mailing List

[PHP] Re: Undefined index ???

2004-06-09 Thread Michael Jonsson
No, it's not set to NULL it just emty... .M Torsten Roehr wrote: Michael Jonsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Why do I get an error if the $_SESSION['user_status'] is NULL ??? Script## session_start(); echo $_SESSION['user_status']; #error## Notice

[PHP] Re: Undefined index ???

2004-06-09 Thread Michael Jonsson
No, it's not set to NULL it's just emty... .M Torsten Roehr wrote: Michael Jonsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Why do I get an error if the $_SESSION['user_status'] is NULL ??? Script## session_start(); echo $_SESSION['user_status']; #error## Notice

[PHP] Undefined index ????

2004-06-09 Thread Michael Jonsson
Hi Why do I get an error if the $_SESSION['user_status'] is emty (it's not set to anything) ??? in my redhat 9 it did mork, but when I moved to Fedora Core 2 it's not working... Script## session_start(); echo $_SESSION['user_status']; #error## Notice: Undefined index: