duplicated #!#!/usr/local/bin/php (php path) (4 posts)

  1. kevinzkl
    Posted 11 years ago #

    Hello, I just installed wordpress and the server require me to put "#!/usr/local/bin/php " in front of every php file. I did that and now in my blog there will be some duplicated "#!/usr/local/bin/php" in the beginning.
    I think "#!/usr/local/bin/php" is needed, but the including of php make the duplicated "#!/usr/local/bin/php " displayed directly on page. Is there any method to avoid this?
    Thanks a lot.

  2. kevinzkl
    Posted 11 years ago #

    I mean, that, for single file, the "#!/usr/local/bin/php " wont be output, maybe it is erased by the server, but because of including of php, the second and following "#!/usr/local/bin/php " can not be removed and are contained in the output of php, and finally can be seen in browser.

  3. asknight
    Posted 11 years ago #

    If it was me, and it once was, I'd go to a hosting provider that doesn't require you to use cgi php.

  4. kevinzkl
    Posted 11 years ago #

    ah, I see. So you mean that such server is running php as cgi. I see now. But I still would like to use this server if it is possible, because it is the local server which is very convenient to me.
    But still, is there any solution to this problem?
    Or i can only remove the duplicated #!phppath from all the header files. One more question, will these cause security problem?
    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.