PDA

View Full Version : #!/usr/local/bin/php


wolfstep
1-4-02, 06:21 PM
I have heard there is a way to get away from adding that line "#!/usr/local/bin/php" to the top of every single php script we so lovingly write.
Can any one please tell me what that method is? I have a vast amount of php scripts and many layers to add it too. The concept of this is scarey and a labor I am not relishing.

I understand why POW did it this way, not that I agree. But case being, we now have to deal with it.

Any help on this one would be greatly appreciated.

tcjay
1-6-02, 03:53 AM
It does not need to be added to each php file................ start with install and fo from there. When a file is call with out the #******** line, the page will not load. go to log file that was called and then add the first line to that file............................. then load it back on to the server and continue.

This is one way I have gotten around adding the line to files that do not require it.

When you are done if the #******* shows up at the top of the page, then it is included in a file that does not require it.

Hope this helps.

wolfstep
1-7-02, 06:29 PM
I appreciate that idea. Thats what I currently do.
However, I have many layers of php and to wait and test for each would take me just as long to just add it to the ones I know need it.

I was specifically interested in the solution someone said they added a line to the .htaccess list.

However, I really do appreciate your suggestion.

regards,
Bob

Ron
1-8-02, 06:49 AM
I have been running php on saturn.powweb.com for quite some time now and none of the scripts have this line in them. Could it be due to something in the server setup you are running on?

FunkyBacon
1-20-02, 04:52 PM
I don't think saturn is using the cgi version of PHP yet. Starr said something about that in another thread, but also that saturn wouldn't be like that for much longer.