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

Which cryptographic functions in php returns the longest hash value?

953


What are the differences between require and include?

966


Tell me in php, objects are they passed by value or by reference?

925


What is the difference between php4 and php5?

1019


Can I write php code in html file?

947


Can you define an argument as a reference type?

901


What the difference between the 'bitwise and' operator and the 'logical and' operator?

921


what are the differences between php and perl

2001


How many types of errors in php?

1010


Which php framework is fastest?

947


How do I escape in php?

949


Which of the delimiter is ASP style?

1045


How to register a variable in PHP session?

927


How do I end a php session?

905


What is default session time and path in PHP. How to change it?

979