On Friday 05 December 2003 14:04, Karam Chand wrote: > I created a linux binary using GCC. Whenever you > execute it reads a file from the current directory and > outputs the contents. e.g. - > > ./myapp > > output > > hello world.
If that is all it does, and that is all you need, why not implement it in PHP code? > Now I want to execute it from php() so that I can > output the content on a HTML page or get the data in a > variable. Reading thru the manuals i came across > passtrhu() and exec(). > > I tried passthru > > passthru("myapp"); > and > passthru("./myapp"); > > but nothing is outputted. What is wronf? 1) enable FULL error reporting 2) check safe mode settings -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Win98 is called Win98 because you need 98 MB RAM to install it. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php