Re: PHP scripts with shebang line: Questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AFAICS, this is a FreeBSD question...

That said, you could have a work-around where you put your 2 -d
settings into a single php.mini :-) file and then use one -c to pull
that in...

On Fri, July 13, 2007 8:23 pm, sone gone wrote:
> Hi,
>
>  i want to question about shebang line on FreeBSD6.
>
> This script works on FreeBSD4, but doesn't work on FreeBSD6
> #!/usr/local/bin/php -d open_basedir=/path
> <?php
> file('/path/sample.txt');
> ?>
>
> i understood the reason from this pages.
> http://freebsd.monkey.org/freebsd-questions/200606/msg01073.html
> http://www.in-ulm.de/~mascheck/various/shebang/
>
> i removed the space between '-d' and my config,
> and this script worked.
> #!/usr/local/bin/php -dopen_basedir=/path
>
> However i don't understand how i should appoint two options.
> This script doesn't work.
> #!/usr/local/bin/php -dopen_basedir=/path -dshort_open_tag=off
>
> This is a solution for only FreeBSD6. (it doesn't work on FreeBSD4)
> #!/usr/bin/env -S /usr/local/bin/php -d open_basedir=/path -d
> short_open_tag=off
>
> i want to know the solution that is suitable for both FreeBSD4 and
> FreeBSD6.
>
> Give me please good advice.
>
> Thanks,
>
>
>
> ____________________________________________________________________________________Ready
> for the edge of your seat?
> Check out tonight's top picks on Yahoo! TV.
> http://tv.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux