I just began learning php. I\'ve installed php5
on linux and wrote very simple code just to get going.
How can I run scripts? I tried using the
Actually, PHP's main purpose is to generate web pages, but there are at least two other options:
The first one can be achieved in many ways (eg. by giving proper permissions to the file and calling script by providing its URI, eg. ./index.php
), the second one can be invoked by php -a
command (as stated in the documentation mentioned above).