Now maybe this is a completely novice/silly question, apologies, but...
I have the following file:
$ cat helloWorldScript.php
/*here I want to be able to run this in the command line
witht the command pho scriptname.php.
*/
<?php Print "Hello, World!\n"; ?>
Now I can run the script as follows:
$ php helloWorldScript.php
/*here I want to be able to run this in the command line
witht the command pho scriptname.php.
*/
Hello, World!
or like this with the -f parameter -f <file> Parse and execute <file>.
$ php -f helloWorldScript.php
/*here I want to be able to run this in the command line
witht the command pho scriptname.php.
*/
Hello, World!
But why does it show the comments when I execute the file?
What is the difference in using the -f?
The reason I ask is because I am want to use a php script to import a csv file into a database, see here.
I have some basic knowledge of php in a browser but here I just have this question.