You are here: Re: PHP PEAR DB module not working? « PHP Programming Language « IT news, forums, messages
Re: PHP PEAR DB module not working?

Posted by mpar612 on 05/02/07 13:49

On May 1, 5:01 pm, Mike P2 <sumguyovrt...@gmail.com> wrote:
> On May 1, 9:05 am, mpar612 <mpar...@gmail.com> wrote:
>
> > I am stumped. Below is my code and it doesn't work (I removed the
> > $login info for posting).
>
> > [...]
>
> > I just switched ISP's and none of the stuff that utilizes PEAR works
> > on the new ISP. PEAR is installed. The DB module is installed, but I
> > can't connect to a database. I don't get any errors. I just get a
> > blank screen.
>
> > Any thoughts would be greatly appreciated. Thanks!
>
> Where in the code does the error occur? What is the error message you
> get?

I have come a little way since I made the post. I was originally not
getting any sort of error, but it turned out I had to put a
display_errors line in my code. Now I get the following errors:

Warning: main(): open_basedir restriction in effect. File(/usr/share/
pear/PEAR.php) is not within the allowed path(s): (/var/www/vhosts/
ygptechnologies.com/httpdocs:/tmp) in /var/www/vhosts/xxxx.com/
httpdocs/PEAR/DB.php on line 30

Warning: main(PEAR.php): failed to open stream: Operation not
permitted in /var/www/vhosts/xxxx.com/httpdocs/PEAR/DB.php on line 30

Fatal error: main(): Failed opening required
'PEAR.php' (include_path='.:/usr/share/pear:/user/share/pear:') in /
var/www/vhosts/xxxx.com/httpdocs/PEAR/DB.php on line 30

I am very new to this sort of stuff and I'm really lost with what to
do. I think my first step is to modify the php.ini file.

Any assistance would be great.

Thanks in advance!

 

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

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