I've intalled PEAR on my NetBSD user account - I can't use the pear command because 'register_argc_argv' is Off. I can't change php.ini so I put a .htaccess file with 'php_value register_argc_argv On' in the bin directory but still no luck. Any ideas?
Thanks in advance,
Eoin.
PEAR problem
Moderator: General Moderators
The .htaccess file needs to be in the same directory as your script (.php), depending on where you are serving pages from (htdocs ?) the .htaccess file needs to be in there.
.htaccess files are a way of implmenting per-directory options, so you can have an .htaccess in the root of your web tree so that affects all the directories in the root.
Ref : http://httpd.apache.org/docs/howto/htaccess.html
Regards,
EDIT>
Are you using PHP from the command line ?
Have a read of : http://uk.php.net/features.commandline
If not, ignore this edit.
<END
.htaccess files are a way of implmenting per-directory options, so you can have an .htaccess in the root of your web tree so that affects all the directories in the root.
Ref : http://httpd.apache.org/docs/howto/htaccess.html
Regards,
EDIT>
Are you using PHP from the command line ?
Have a read of : http://uk.php.net/features.commandline
If not, ignore this edit.
<END
I dunno if this will help with your PEAR problem, but you can specify your own php.ini running PHP on CLI.
Code: Select all
php -c /home/me/php.ini