Re: [PHP-INSTALL] Executing a python script from within perl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-07-22 at 23:27 -0400, Daniel Brown wrote:
>     Try this to see if your script is outputting any errors:
> 
> <?php
>     exec('/path/to/python your-script.py 2>&1',$ret);
>     print_r($ret);
> ?>

This worked, was opening a file for which permission was denied. Python
didn't show me anything, when run on the prompt, however when I used the
above method, I did get the error. Thanks!


-anuj



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux