2010年1月15日星期五

Re: [fw-mvc] problem with PDO Extension

-- sina miandashti <miandashti@gmail.com> wrote
(on Saturday, 16 January 2010, 12:09 AM +0330):
> i developed a small Cms by zf 1.9.7
>
> and i upload it here http://vando.musicbase.ir/
>
> but this error given : The PDO extension is required for this adapter but the
> extension is not loaded
>
> my server is linux and using cPanel with Apache
>
> there is no PDO or Mysqli in cPanel php configuration by default .
>
> i asked my server admin about this ... he said : there is no support for Pdo
> or Mysqli in our server and your app shoud use normal mysql for queries ...
>
> what adapter can i use for solve my problem ?

If your host does not offer PDO or the mysqli extension, my guess is
they're using a *very* outdated PHP version. The mysql extension has
been mostly deprecated for much of the PHP 5 lifecycle as Pdo_Mysql and
Mysqli offer a ton of improvements over the original version (mysqlnd,
included with 5.3, is even better).

I'd personally start looking for a new hosting provider if you can.

As another option, you could potentially create a "mysql" Zend_Db
adapter by copying the mysqli adapter and modifying it. Be careful,
however, as there may be subtle inconsistencies between the APIs that
would make this non-trivial to complete.

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

没有评论: