Saturday, May 3, 2014

Run "Linux XAMPP PHP" from Console

If you have installed XAMPP in Linux (Ubuntu), you dont have to install PHP from "Ubuntu Software Center" or "APT" just for executing some script. You can run PHP that already inside XAMPP for Linux to do that. Here's the way to execute it:
 path/to/php path/to/fileyouwantotrun.php  

So for xampp on linux this is
 /opt/lampp/bin/php /opt/lampp/htdocs/yourfile.php  

0 comments:

Post a Comment