Trying to learn PHP and a more experienced dev made a number of modifications to my PHP script but I did not get an opp to ask what does the “#!” next to the path in my PHP script? This sits at the very top of the PHP file that I was working on:
#!/opt/local/bin/php
Any help/direction would be greatly appreciated.
Regards.
This is a way to tell Linux to run the script code using the application at
/opt/local/bin/php. If you were running PHP as a plugin to apache, you’d use the<?php ?>tags to identify PHP code.