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

Define anonymous classes in php7?

1129


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1958


Can we use php variable in javascript?

1061


Who is the father of php and what is the current version of php and mysql?

1408


Php being an open source is there any support available to it?

1158


How do you find the length of a string in php?

1040


Why do we show php code in browser?

1114


What is array and function?

1096


What is the function to count elements in an array in PHP?

1131


How to check if a string contains a character or word in php?

1052


Where sessions stored in PHP?

1049


Write down the code for save an uploaded file in php.

1019


Explain php explode() function.

1099


Is age nominal or ordinal?

1010


How send email in php?

1033