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

What exactly is validating and sanitizing?

0 Answers  


Why namespace is used in php?

0 Answers  


Tips to optimize the php script..... Suggestion for exception handling in php...

1 Answers  


What is needed to be able to use image function?

0 Answers  


What are php keywords?

0 Answers  


How do you pass a variable by value in php?

0 Answers  


Functions in IMAP, POP3 AND LDAP?

1 Answers   Rushmore Consultancy,


What is use of in_array() function in php?

0 Answers  


What does PEAR stands for?

0 Answers   Arigo Infotech,


So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

0 Answers  


Is facebook still in php?

0 Answers  


Is php difficult to learn?

0 Answers  


Categories