Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you run a php script from the command line?

Answer Posted / suren

Answer :
you can execute thefrom anywhere like a command prompt.

in unix like OS you use the following:
/path/to/php -f /path/to/script.php

For windows OS's use the following
c:\path\to\php.exe -f c:\path\to\script.php

and U can get the information by running the
C:\path\to\php.exe -f

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are php string functions?

939


How do you execute a php script from the command line?

980


Is php a backend?

922


When to use get and post request?

960


What is the difference between echo, print and printf()?

958


What is strcmp?

915


Why laravel is the best php framework in 2019?

886


How is session data stored?

913


What is str_replace()?

963


Do you know what is the differences between $a != $B and $a !== $B?

944


How does php server work?

973


Which is correct about mysqli and pdo?

1023


How can I load data from a text file into a table?

944


Will a comparison of an integer 12 and a string "13" work in php?

896


Which php framework is best for security?

946