Re: [PHP-WIN] Line By Line Output

2005-09-04 Thread David Collard
Sabin Finateanu wrote: Hi! I'm trying to run trace route for an address in a PHP script. My question is how can I make it display the output line by line as it appears instead of waiting for the command to finish executing an then outputting the whole result, and what command should I use: sys

[PHP-WIN] WTF is "[warn] exec() may not be safe" ??

2005-09-04 Thread Ilja Polivanovas
Hi guys, When running On Windows 98SE, apache 1.3, PHP4, client get such thing in apache's error.log . [Fri Sep 02 09:33:21 2005] [warn] exec() may not be safe [Fri Sep 02 09:34:26 2005] [warn] exec() may not be safe [Fri Sep 02 09:35:31 2005] [warn] exec() may not be safe Any ideas why? Mayb

[PHP-WIN] A setcookie related question

2005-09-04 Thread Tony Aldemir
Hi There, I am a beginner PHP developer and I have a very simple, perhaps silly, question: I am trying to use the setcookie function in a PHP script and I seem to be struggling with the "domain" parameter. Here is situation: //set authorization cookie setcookie("auth", "1", 0, "/", "y

Re: [PHP-WIN] A setcookie related question

2005-09-04 Thread Frank M. Kromann
Hi Tony, In most cases you do not need to use the domain parameter. Try to simplify the function call to setcookie("auth", "1", 0, "/"); // Not this cookie has already expired setcookie("auth", "1", time() + 3600, "/"); // Not this cookie will expire in 1 hour or even to setcookie("auth", "1