You are here: Re: Enable php extensions on shared server? « PHP Programming Language « IT news, forums, messages
Re: Enable php extensions on shared server?

Posted by Johnny on 10/12/06 19:02

<yodertony@gmail.com> wrote in message
news:1160663053.231499.183710@h48g2000cwc.googlegroups.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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация