<yo*******@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi, bona-fide php newbie here.
I have a very cheap php-enabled linux hosting account.
Unfortunately, this host does not have some extensions enabled which I
need, namely, the dom-xml and xslt extensions.
Assuming that the server admins ignore my pleas, is there a way to
locally
enable these extensions for my account, with a local copy of php.ini,
or
local copies of the proper *.so files, or some magic in the .htaccess
file?
Or should I just look for a new host.
Thanks
Tony
interesting question, let's see.
mine's inexpensive too :) a piggyback on someone elses $7 a month...
on shared LAMP servers the usual way to "local copy of php.ini" is with a
directive in the .htaccess
in the folder you are using PHP, if they'll let you, like
php_value register_globals Off
php_admin_value open_basedir none
PHP4 you might be OK since its bundled but since PHP5 DOM XML functions are
moved to PECL
I just looked in phpinfo on mine and under Configure command it has these
entries
'--with-dom' '--with-dom-xslt' '--with-dom-exslt'
so I'll see if I can turn them off.....
OK the docs say:
Any directive type set with php_admin_value can not be overridden by
..htaccess or virtualhost directives.
So I'll try to see if I can do
php_admin_value open_basedir none
OK it cauesed an error when I tried to do
phpinfo();
so I gues you can't
Looks like another host is the go. Good luck.