List Info

Thread: Would anyone find this useful?




Would anyone find this useful?
user name
2007-03-07 03:30:46
Here are a few small scripts that I use to switch between
local pear 
installations.  Although not terribly complicated or
exciting, someone might 
find them useful 

http://
pyrus.sourceforge.net/pear-switch.html


-- 
     David Sanders

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Would anyone find this useful?
user name
2007-03-07 05:50:46
David Sanders wrote:
> ok, that solves that issue... but is there a way
execute the php file in a
> source-style fashion?
> 
>>> I've thought about this, but the environment
variable needs to be set...
>>> Is it possible to do that from a php script?
>> putenv() ..
>> http://www.php.net/putenv
>>
> 

You can always put a php shebang as

#!/usr/bin/php
<?php
phpinfo();
?>

in top of your executable script, I guess.
Not sure how to do that without an absolute path to the php
bin , though.
-- 
toggg

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Would anyone find this useful?
user name
2007-03-07 06:07:32
But it's still a child process... 

Perhaps the best way is just to create a function in your
.bashrc that
sets the environment variable, then executes the php
script.

>
> You can always put a php shebang as
>
> #!/usr/bin/php
> <?php
> phpinfo();
> ?>
>
> in top of your executable script, I guess.
> Not sure how to do that without an absolute path to the
php bin , though.
> --


-- 
    David Sanders

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )