Custom php.ini when using #!/usr/bin/php -


I have a script in which I am trying to load a custom php.ini file I am Script * nix system on a #! / Usr / bin / php -qc /path/to/php.ini headers. While doing so, PHP reports that the loaded php.ini file is not present, i.e. no one has been loaded.

If I go directly to php -qc / path / command line / php.ini / path / to / script , this will be php.ini Raises - Is it possible to override php.ini #! #! file using notation

PHP does not like arguments debate with Shebang only One allows to be present You can still trick it by leaving the space for the first argument parameter:

  #! / Usr / bin / php -qc / etc / php5 / my.ini   

(Clearly, this method works only with one compromised argument for the same parameter.)

Comments