How do you run a php script from the command line?
Answer / 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 |
What are the string functions in php?
What is fetch array in php?
What types of Data Can Be Used as Array Keys?
How can we get the browser properties using PHP?
What is laracast?
What is interface? Why it is used?
Inside a php function, what param needs to be set in order to access a global variable?
Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
Explain about error handling in php?
1 Answers INDUS, Life Infotech, Yahoo,
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
What does $_server mean?
What are the reasons for selecting lamp (linux, apache, mysql, PHP) instead of combination of other software programmes, servers and operating systems?