[PHP] exit() function question

2002-09-03 Thread Renato Lins
Why exit() funtion always exit with 255 value instead of the passed value, in php 4.2.2, even when I compile with --enable-cli. Check the code bellow, to see # cat t3.php #!/usr/src/php-4.2.2/php ?php echo Version: ,phpversion(),\n; exit(1); ? # ./t3.php ; echo last run exit value:$? Version:

[PHP] Re: command line argument vs. urlencode ?

2002-08-31 Thread Renato Lins
\+ does not work too, php treat command line arguments as a POST/GET , so I should urlencode/urldecode, I would like to know if there is a alway to turn this behavior off. Thanks any way. Renato Richard Lynch wrote: Any one know why the + (plus sign) is not passed as argument to $argv

[PHP] Re: What's the trick ?

2002-08-28 Thread Renato Lins
testing sorry... Richard Lynch wrote: Hi guys, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] command line argument vs. urlencode ?

2002-08-28 Thread Renato Lins
Hi, Any one know why the + (plus sign) is not passed as argument to $argv when calling a php script from linux shell ? if this is not a bug, how do I pass a + as argument ? should I use urlencode/urldecode ? is that any php.ini variable to turn off this behavior ? try this and you

Re: [PHP] ploblem with safe_mode_include_dir

2002-03-11 Thread Renato Lins
to be duplicated in every VirtualDomain hosted. Can you help me out with this ? Rasmus Lerdorf wrote: There is no such feature. On Mon, 4 Mar 2002, Renato Lins wrote: Sorry, I may not haven been clear. What should I do to include from a safe area (/myuser/safe) when I have open_basedir set

[PHP] ploblem with safe_mode_include_dir

2002-03-04 Thread Renato Lins
Some one can help me Why this is not working ? # apache conf Directory /myuser/public_html/ php_admin_flag safe_mode on php_admin_value safe_mode_include_dir /myuser/safe/ php_admin_value doc_root /myuser/public_html/ php_admin_value open_basedir /myuser/public_html/:/tmp/ /Directory #cat

Re: [PHP] ploblem with safe_mode_include_dir

2002-03-04 Thread Renato Lins
Sorry, I may not haven been clear What should I do to include from a safe area (/myuser/safe) when I have open_basedir set to other path (/myuser/public_html) ? Rasmus Lerdorf wrote: open_basedir doesn't take a list of paths On Mon, 4 Mar 2002, Renato Lins wrote: Some one can help me Why