running bash script from php?

I want to run bash script from php...

script like

PHP Code:
!#bin/bash
echo whatever
./runme
echo that all folks 
I tried shell_exec() but it only work to start binaries like ./runme , but when trying to start bash scripts - nothing Is there any way to start bash script from php? running bash script from php?

 

 

 

 

Top