Running php file under linux is not successful

my environment nginx,php,mysql;
I built a test.php with the following contents:
file_put_contents ("/ log.txt","aaaa");
then execute the run command:
/ usr/local/nginx/test/test.php
error message is as follows:

/ usr/local/nginx/html/test/test.php: line 1:? php: No such file or directory
/ usr/local/nginx/html/test/test.php: line 2: syntax error near unexpected token `/ log.txt","aaaa""
/ usr/local/nginx/html/test/test.php: line 2: `file_put_contents ("/ log.txt","aaaa");"

modify test.php, directly echo 1;
can output 1, change test.php to for loop, the error message is the same as above, find out the specific reason, is not linux running php file does not run in this way or how?

Apr.13,2022

change the command to php / usr/local/nginx/test/test.php , and note that you need to add php to indicate that you use php to execute the file.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31f87-2bdbf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31f87-2bdbf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?