How can I execute a PHP script using command line?

How can I execute a PHP script using command line?

How can I execute a PHP script using command line?

View Answers

November 13, 2010 at 5:36 PM

Hi all,

By using CLI ( command line interface)

On command prompt type : php filename

for example: php helloworld.php

Thanks









Related Tutorials/Questions & Answers:
How can I execute a PHP script using command line?
execute a PHP script using command line
Advertisements
can i Execute PHP code inside python script?
How to run PHP Script from the command line ?
How can we increase the execution time of a php script?
What is the default session time in php and how can I change it?
How many ways I can redirect a PHP page?
How to Increase Script Execution Time Limit in php ?
how can clear the browser cache memory using java script
how to execute a unix shell script from a java program
ModuleNotFoundError: No module named 'linen'
Unable to send mail using php script
How can we encrypt the username and password using PHP?
How can we create a database using PHP and mysql?
How can we find the number of rows in a result set using PHP?
how to create a php script to download file
How can I paginate a table which has shown in a div through Ajax in client side without using database
How can I generate diff image using Jmagick?
how can i achieve multiple inheritance in java without using inheritance ?
How I can filling pdf file that crated by livecycle using itext
How can i draw a line using java swings
How can i draw a line using java swings
How i can send testing mail on my id using java?
how can i draw a table using applet or swings - Java Beginners
How i can send mail by using jsp.............. - JavaMail
how can i prevent duplicate records using servlets and MVC model?
Comment PHP Script - MobileApplications
PHP SQL Insertion
How can I access databse through JSP. I am using postgresql-8.4.4-1-windows as database and jboss-4.0.5.GA as server.
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
php script - for change the cusror - WebSevices
How to Checking Syntax Error in PHP from Command Line
How to Check Markup in PHP File from Command Line
How to find the exact PHP template I need?
SQL PHP
how to create a php script to download file from database mysql
how to create a php script to download file from database mysql
php browser detection script - PHP
how to draw lines,circles, rectangles on JSP (using Java Graphics)
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How can we know the number of days between two given dates using PHP?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
How many ways we can retrieve the date in result set of mysql using php?
PHP mysql database backup script - PHP
How can we extract string 'roseindia.net ' from a string http://deepak@roseindia. net using regular expression of php?
How can we get the properties (size, type, width, height) of an image using php image functions?

Ads