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?



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

Answer / 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

More PHP Interview Questions

How failures in execution are handled with include() and require() functions?

0 Answers  


Which is true about the singleton design pattern?

0 Answers  


Is key exist in array php?

0 Answers  


does PHP support foreign key and Rollback?yes or not.if not then why. how will you done these concept in php?

1 Answers   Avanigoradia, Primus Global,


What is the use of the function htmlentities?

0 Answers  


What is meant by PEAR in PHP?

0 Answers  


Describe PHP error and logging information?

0 Answers  


What is the default time in seconds for which session data is considered valid?

0 Answers  


What is prepare in php?

0 Answers  


How to get the position of the character in a string in php?

0 Answers  


What is the difference between die () and exit () in php?

0 Answers  


Is php easier than javascript?

0 Answers  


Categories