|
Posted by universalbitmapper on 10/03/06 11:45
Georg Weiler wrote:
> Hi,
>
> I'm trying the following without success:
>
> I start a php script in the browser, that starts a shellscript, which
> starts a second php script. As a result, I want to show the output of
> the second php script in my browser. It works perfect on the shell
> command line, but in the browser, the shellscript hangs!?!
>
>
> I start the whole thing with the file file 'first.php':
>
>
> first.php:
> <?
> $shell_output = shell_exec("/my_path/shellskript.sh");
> ?>
>
Maybe the shell_exe shellskript.sh should have certain environment
variables set?
>
> shellskript.sh:
> #!/bin/bash
> /usr/bin/php /my_path/second.php
>
>
> second.php:
> <?
> echo "Hello World";
> ?>
>
> Anyone with ideas, why this is not working?
>
> regards,georg.
[Back to original message]
|