 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
milos
Joined: 29 Apr 2008 Posts: 3
|
Posted: Tue Apr 29, 2008 10:22 pm Post subject: "require_once('DB.php')" doesn't work |
|
|
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 |
|
 |
FlyboyData
Joined: 30 Apr 2008 Posts: 3 Location: Portland, OR, USA
|
|
| Back to top |
|
 |
milos
Joined: 29 Apr 2008 Posts: 3
|
Posted: Wed Apr 30, 2008 5:00 pm Post subject: Thankx "FlyboyData" |
|
|
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 ( from the beginning of that line 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!  |
|
| Back to top |
|
 |
milos
Joined: 29 Apr 2008 Posts: 3
|
Posted: Wed Apr 30, 2008 5:01 pm Post subject: correction |
|
|
( - > ( ; ) |
|
| Back to top |
|
 |
|
|
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
|
|