php-windows Digest 19 Oct 2007 05:38:36 -0000 Issue 3354

Topics (messages 28573 through 28574):

Forward slashes don't work but astonish me
        28573 by: news.php.net

time function
        28574 by: Nishantha Pradeep

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message --- (This is a respond "again" message because I think I made it wrong the first time: my first respond message isn't in the news since yesterday.)

There is some changes compared to using backslahes but it doesn't work.

Using backslashes
php.ini
safe_mode_exec_dir = "c:\wwwroot\tests\bin"

myphp.php
$retstr = exec('C:\wwwroot\tests\bin\myprogram.exe 2>&1',$retval);
$retstr = system('C:\wwwroot\tests\bin\myprogram.exe 2>&1',$retval);

When safe_mode=0
exec() $retval is "Hello World" and system() $retval is False (although "Hello World" is displayed).
When safe_mode=1
both $retval are False and there isn't any echo.

Using forward slashes

When safe_mode=0
The same as above.
When safe_mode=1
exec() $retval is False BUT system() $retval is True. There is no echo anyway :(

So system() $retval is False always when there is echo and sometimes when there isn't, and is True sometimes when there isn't echo.

Does this make any sense for anyone!?

--- End Message ---
--- Begin Message ---
I want to insert the loging time for a system and i used php "time()"
function but it returns some big number.What is that big number and how I
retrieve the current server or client time using php.

--- End Message ---

Reply via email to