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. 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) 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
Archived
This topic is now archived and is closed to further replies.