First line of PHP files

  • Unknown's avatar

    WordPress uses a large # of PHP scripts. The problem
    on our server is that every PHP script must contain
    the following as the first line:

    #!/usr/local/bin/php

    Does anyone have a quick sed-based Unix script to
    achieve this, or a way around it? Thanks.

  • Unknown's avatar

    OOPS! You seem to be in the wrong place. WordPress.com is a MU (multi-user) blogging platform. We run on a different code base than the version you can download from http://wordpress.org and you will get different answers to your questions here. The forum for self hosted and web hosted wordpress blogs is located over here http://wordpress.org/support You may want to take a few moments and read this description about the different versions of WordPress software.
    Happy blogging! :)

  • Unknown's avatar

    Especially since we don’t have access to the PHP code. :)

    TT, I edited (or will edit shortly) your cut and paste a bit. I hope you don’t mind. :)

    edit: I still don’t totally like how I edited it but I think you can see how I’m trying to give a reason why they’re on the wrong site.

    -drmike

  • Unknown's avatar

    Thanks – I was unaware of the difference. It seems that
    I have an issue only with the wordpress.org download
    since I see now that wordpress.com provides the blog
    capability transparently to the blogger without setting
    up a server.

  • Unknown's avatar

    @drmike
    Who me – mind the editing? Of course not, it’s just what I was looking for [she purred]. ;)

  • Unknown's avatar

    Gotta admit that I would like to work in the ‘Read me first before posting’ bit into that description link as well.

    Suggestions?

  • The topic ‘First line of PHP files’ is closed to new replies.