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?

Answers were Sorted based on User's Feedback



How can I execute a PHP script using command line?..

Answer / nikunj

By using CLI ( command line interface)

On command prompt type : php filename

Is This Answer Correct ?    33 Yes 5 No

How can I execute a PHP script using command line?..

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

How can I execute a PHP script using command line?..

Answer / indra

By using CLI ( command line interface)

On command prompt type : php filename

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 ?    4 Yes 2 No

How can I execute a PHP script using command line?..

Answer / umapathi

sapi

Is This Answer Correct ?    9 Yes 10 No

Post New Answer

More PHP Interview Questions

Is echo a function in php?

0 Answers  


Php code to find whether a number armstrong or not?

0 Answers  


What is csrf verification?

0 Answers  


What is csrf token in php?

0 Answers  


Explain array_uintersect()?

0 Answers  


I finished my degree 4 years back. I didnt get job in software. In the time(for 4 years) i worked one kpo industries. but now i got job in php(40 employes working there) as fresher(Salary 8000). Shall i join in php. I have no knowledge about php. Can i do well in php. How will my carrier if i join in php? Please can you give your idea.? It will be more usefull to me.

2 Answers  


What are the 3 scope levels available in php and how would you define them?

0 Answers  


How we can retrieve the data in the result set of mysql using php?

0 Answers  


What is the correct php command to use to catch any error messages within the code?

0 Answers  


Is salary fixed or variable cost?

0 Answers  


How do I run a php program in dreamweaver?

0 Answers  


How to execute a php script from the command line?

0 Answers  


Categories