First line of PHP files

  • Author
    Posts
  • #35731

    metaphorz
    Member

    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.

    #35871

    timethief
    Member

    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! :)

    #35879

    drmike
    Member

    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

    #35899

    metaphorz
    Member

    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.

    #35900

    timethief
    Member

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

    #35923

    drmike
    Member

    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.