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 can I execute a PHP script using command line?

Answer Posted / tamilselvan

PHP script using command line can be executed using SAPI
(Server Application programming Interface). Using SAPI
Command Line Interface the PHP code can be passed to execute
directly

Example:
Php –r ‘print_r(get_defined_constanrs());’

From a shell, php –v will display whether the SAPI is CLI or CGI

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is the father of php?

1104


What is 'float' property in css?

995


What happens if an expected input field was not submitted?

966


What is data structure in php?

1007


What are the uses of implode() function?

1089


How do I stop a php script?

967


What is nan value?

927


How can I embed a java program in php file and what changes have to be done in php.ini file?

962


What is the meaning of "enctype= multipart/form-data" ?

1125


What is the empty function?

970


What is the use of explode() function?

1064


What are escaping characters?

959


Which php function will attach one file to another?

984


Tell me how is it possible to parse a configuration file?

942


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2045