
January 10th, 2005, 05:33 PM
|
|
|
|
Join Date: Apr 2007
Location: Bari Italy
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Trubles with php safe-mode
Hello,
My name is andrea and today i recompiled php 4.3.10 on my linux box to reconfigure my web enviroment acording to the configuration of my web host, so i enabled the safe mode...
The installation have been successyfull, but, when i tried to execute the script whitch connects to the db, using PEAR-db functions, i had this error code:
Warning: num_rows(): SAFE MODE Restriction in effect. The script whose uid is 1000 is not allowed to access /usr/lib/php/DB.php owned by uid 0 in /var/www/portfolio/class_db.php on line 36
Warning: num_rows(DB.php): failed to open stream: No such file or directory in /var/www/portfolio/class_db.php on line 36
Fatal error: num_rows(): Failed opening required 'DB.php' (include_path='.:/usr/lib/php') in /var/www/portfolio/class_db.php on line 36
Before this recompiling, my script worked fine, and i thik i used the PEAR-db functions correctly. How can i resolve the problem and start back coding? i hope i will not have to write back all the db calls!
|