Jump to content

PHP / MySQL and Shell


dyluck

Recommended Posts

you see the problem is, the php files that are to be executed in shell have commands like this 

 

php daily_cronfile.php specificID

i.e.  php daily_cronfile.php blaa1

 

 

so how do I execute that in a php file?  something like:  shell_exec('php daily_cronfile.php blaa1')  command within the main php file?

Link to comment
https://forums.phpfreaks.com/topic/207646-php-mysql-and-shell/#findComment-1085543
Share on other sites

you see the problem is, the php files that are to be executed in shell have commands like this 

 

php daily_cronfile.php specificID

i.e.  php daily_cronfile.php blaa1

 

 

so how do I execute that in a php file?  something like:  shell_exec('php daily_cronfile.php blaa1')  command within the main php file?

 

Yes, exec() or shell_exec() will work.

Link to comment
https://forums.phpfreaks.com/topic/207646-php-mysql-and-shell/#findComment-1085545
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.