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 is file upload?
Tell me what should we do to be able to export data into an excel file?
Write a program to get lcm of two numbers using php?
What are the differences between mysqli_connect and mysqli_pconnect?
Explain the difference between unlink() and unset()?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
What is the difference between rest and soap?
What are the four scalar types of php?
What are the different methods of passing data or information between two calls of a web page? What are the advantages/disadvantages of these methods?
Why do we use htaccess
Extract url from this string? It should be flexible for all strings, not for this string only. "yahoo.comyahoo.co.inhotmail.org"
How do you clear environment variables?