Not able to Linux binary
| From: | Karam Chand | Date: | Fri, 05 Dec 2003 06:04:14 +0000 |
| Subject: | Not able to Linux binary | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171947@lists.php.net to get a copy of this message | ||
Hello
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.
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?
myapp resides in the same directory as the
application.
the page and the app is hosted at my ISP ( Interland )
server. the contents are -
/html/index.php
/html/myapp
Do I need to set up special permission?
Karam
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/