|
Author: rev
Date: 21-08-01 21:02
the PHP function passthru() outputs the raw result from ps aux and returns no value. so in the above code segment, printing that variable would serve no purpose.
|
|
Reply To This Message
|
|
Author: Dan Langille
Date: 21-08-01 21:27
Right you are. Thanks.
For the record, here's the original script:
<title>FreeBSD Diary uptime via php3 passthru</title>
<body>
<?php
$uptime = passthru ("/usr/bin/uptime");
echo "<font face=\"Tahoma\" size=\"1\">$uptime</font></p>";
?>
</body>
</PRE>
The new script is:
html><title>FreeBSD Diary uptime via php3 passthru</title>
<body>
<font face="Tahoma" size="1"><?php
passthru ("/usr/bin/uptime");
?></font></p>
</body>
But I'm going to remove the font declaration anyways.
I'll amend the article accordingly.
|
|
Reply To This Message
|
|
Author: matthew
Date: 04-05-02 17:31
i did notice, that this doesnt work if you have safe mode on, any ideas as to how to get it working if safe mode IS on?
|
|
Reply To This Message
|
|