PHP·98 questions

How to run a PHP script?

Answer
Command line: php script.php.
Built-in server: php -S localhost:

8000.

Via Apache/Nginx.
Interactive mode: php -a.
Execute code: php -r 'echo "Hello";'.
Was this answer helpful?

More questions in this topic

Related questions from other topics