executing a PHP (shell script) through PHP (module)

From: Date: Mon, 08 Oct 2001 19:50:46 +0000
Subject: executing a PHP (shell script) through PHP (module)
Groups: php.general 
Request: Send a blank email to php-general+get-70382@lists.php.net to get a copy of this message
Hi all I've compiled PHP in module and in CGI mode. I want to execute a PHP script (shell script) through a PHP page like that ... page.php -------------------------- <?php system("script"); ?> -------------------------- script -------------------------- #!/usr/local/bin/php -q <?php print("test"); ?> -------------------------- In my page.php nothing appears ... (if I remove the -q option, page.php only shows "Content-type: text/html ") If "script" is written in PERL .... --------------------------- #!/usr/bin/perl print "test"; --------------------------- .... it works perfectly : page.php shows "test" (thus it is not a binpath problem) Is there something I miss ? TIA ps : could you forward to fxbois@free.fr

« previous php.general (#70382) next »