Hi there ....
Im running Windows 98SE, Apache 1.3.12 Win32 and php-4.0.2-Win32
I am trying to make some ping-scripts i php :
<?php
$tmp = exec("ping 127.0.0.1");
echo $tmp;
?>
also tryed the following :
<?php
$tmp = exec("ping 127.0.0.1", $ping_results);
$rows = count($ping_results);
$ping = $ping_results[$rows-1];
echo $ping;
?>
I can see that all the commando works because the results are
to my Apache-dos-prompt window, ant NOT !! to my browser.
This is a copy of my Apache-dos-prompt :
FROM MY DOS APACHE PROMPT <<<<<<<<<<<
[Fri Oct 06 17:48:41 2000] [warn] pid file c:/program
files/apache/logs/httpd.pi
d overwritten -- Unclean shutdown of previous Apache run?
Apache/1.3.12 (Win32) running...
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
FROM MY DOS APACHE PROMPT <<<<<<<<<<<
As you can see ... all the results are just pasted in my dos-prompt, and
not to my browser. I have tryed to reinstall Apache, and tryed another version.
Reinstall Php and another version, and when that didnt work i tryed to reinstall
Win98SE .... all with the same results.
I have tryed all the PHP-news boards i could find, PHPBuilder.com and IRC
also .... so you are my last change !!! Plz help me !!
Yours faithfully
Martin D
Denmark