Edit report at http://bugs.php.net/bug.php?id=52824&edit=1
ID: 52824 Updated by: ahar...@php.net Reported by: dev at kbonez dot net Summary: add execute shell-command directly feature -Status: Open +Status: Wont fix Type: Feature/Change Request Package: CGI related Operating System: ALL PHP Version: Irrelevant Block user comment: N New Comment: You could already do this by having your "embedded" shell script in a PHP variable, invoking bash via popen() or proc_open(), and writing the script down the stdin pipe. I see no value in adding syntax for an obscure need. Closing won't fix. Previous Comments: ------------------------------------------------------------------------ [2010-09-13 06:01:46] dev at kbonez dot net Description: ------------ dear,all. I think if php-cli mode can support nested shell-script directly. it must be awsome. #!/usr/bin/env php <?php /*php code */ ?> source abc.sh if we can treat "source abc.sh" as a shell-script and execute it. it will be awsome. do you agree with me ? although we can execute php-script in sh-file like this #!/bin/bash php php-file.php source abc.sh it's ungly,i think .we have to test it when we move it to another envioument. Embeded shell-script code likes php nested in html-file , I think it will be a good feature. Test script: --------------- #!/usr/bin/env php <?php /*php code */ ?> source abc.sh ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52824&edit=1