Packy Posted December 23, 2007 Share Posted December 23, 2007 Hello, is it possible with php script to run some program from command line? For example terminal command line. Quote Link to comment https://forums.phpfreaks.com/topic/82970-run-terminal-command-line-program/ Share on other sites More sharing options...
corbin Posted December 23, 2007 Share Posted December 23, 2007 Why is this OOP related? Anyway if you mean run a program from inside PHP, look into exec() and the backtick format. If you mean run PHP from terminal, then you just have to do: /path/to/php/php file.php (Or, if php is in your PATH, you don't need the /path/to/blah) Quote Link to comment https://forums.phpfreaks.com/topic/82970-run-terminal-command-line-program/#findComment-421986 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.