Posted by Toby A Inkster on 04/13/07 09:27
bleen wrote:
> system("/srv1/path/to/php /path/to/script.php ".$arg1." ".$arg2." > /
> dev/null &");
> system("/srv2/path/to/php srv1/path/to/script.php ".$arg1." ".$arg2."
>> /dev/null &");
Ummm.... those will still run on the same server.
What you could do would be:
<?php
$r1 = file("http://server1/path/to/script.php?arg1={$arg1}&arg2={$arg2}");
foreach ($r1 as $R) print $R;
$r2 = file("http://server2/path/to/script.php?arg1={$arg1}&arg2={$arg2}");
foreach ($r2 as $R) print $R;
?>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|