php-windows Digest 2 Sep 2005 08:28:01 -0000 Issue 2762
Topics (messages 26293 through 26294):
Re: Differences between debug and release?
26293 by: Frank M. Kromann
Line By Line Output
26294 by: Sabin Finateanu
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 ---
Hi Tim,
I'm also building my own versions of PHP, but I do not have the problems
you are describing here. That said, you should not need to buid you own
versions as the extensions can be enabled from the php.ini file or from
the script (as long as you are running CLI or CGI). Unless you are running
a site with heavy trafic there is no real need to have all the extensions
compiled in.
- Frank
> I have built my own version of PHP on Windows (CLI) that enables
sockets
> and soap. I did all of my testing using a version I compiled with
> --enable-debug, and it seems to be working just fine. When I switch to
> the non-debug build, however, I'm having trouble with a lot of my
scripts.
>
> Here's a quick sample of what is failing:
>
> putenv("PHP_BOB=Bob Jones");
> With --enable-debug, this sets this environment variable for the
duration
> of my script. Without --enable-debug, it returns true but appears to
have
> no effect.
>
> exec( "dir", $out ); var_dump( $out );
> With --enable-debug, this prints out the output array $out which
> containst the results of the "dir" command. Without --enable-debug,
I'm
> getting an empty array.
>
> I have tried searching the online documentation and have set
> safe_mode_allowed_env_vars and safe_mode_protected_env_vars, but I
can't
> seem to make these simple statements work with my non-debug version of
> PHP. Can anyone help me out?
>
> Tim Larsen
> Novell, Inc.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
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: system, exec
or shell_exec? I'm using PHP 5.0.4 on Windows XP with Apache 2.0.54.
Thank you.
Sabin Finateanu
--- End Message ---