PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
"require_once('DB.php')" doesn't work

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
milos



Joined: 29 Apr 2008
Posts: 3

PostPosted: Tue Apr 29, 2008 10:22 pm    Post subject: "require_once('DB.php')" doesn't work Reply with quote

Hello,

I'm learning php and I supposed to run pear as well. Finally I installed pear, but it's not working. When I use require_once('DB.php') it prints me errors:

Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\study_php\simple.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.;C:\php5\pear') in C:\wamp\www\study_php\simple.php on line 3

As I'm running on wamp server I found more php.ini files. I added include_path c:\wamp\bin\php\php5.2.5\PEAR to all of them to be sure, but still not working. I searched for solution but nothing works. Please can someone help me? Thanx!
Back to top
View user's profile Send private message
FlyboyData



Joined: 30 Apr 2008
Posts: 3
Location: Portland, OR, USA

PostPosted: Wed Apr 30, 2008 4:31 am    Post subject: Reply with quote

Try following these instructions:

http://www.easysoft.com/developer/languages/php/pear-db-odbc.html

Especially the pear install DB line Wink
_________________
Intentionally Left Blank
Back to top
View user's profile Send private message
milos



Joined: 29 Apr 2008
Posts: 3

PostPosted: Wed Apr 30, 2008 5:00 pm    Post subject: Thankx "FlyboyData" Reply with quote

Thank you very much for your help. I tried but then I finally find the problem. When I modified include_path in php.ini, I didn't remove (Wink from the beginning of that line Embarassed It's really small mistake, but because of this I lost 2 days. Anyway from now on I will give bigger attention to details.

Thanks a lot! Very Happy
Back to top
View user's profile Send private message
milos



Joined: 29 Apr 2008
Posts: 3

PostPosted: Wed Apr 30, 2008 5:01 pm    Post subject: correction Reply with quote

(Wink - > ( ; )
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software