Re: Not able to Linux binary

From: Date: Fri, 05 Dec 2003 07:14:30 +0000
Subject: Re: Not able to Linux binary
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171953@lists.php.net to get a copy of this message
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. */

« previous php.general (#171953) next »