General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 4th, 2003, 09:57 AM
jrockfl jrockfl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 11 jrockfl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Pear....can not find include path

I'm working on the threaded news system tutorial on this site
http://www.devarticles.com/art/1/303/2

I'm getting an error message
Failed opening required 'db.php" (inlcude_path='.;c:\php4\pear')

Here is the code I'm using
<?php
ini_set('register_globals', 0);
ini_set('magic_quotes_gpc', 0);

require_once 'DB.php';
//require the PEAR:B classes.

Any suggestions?

Reply With Quote
  #2  
Old January 4th, 2003, 10:50 AM
ZaireWeb ZaireWeb is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Hamburg, NY
Posts: 37 ZaireWeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to ZaireWeb Send a message via AIM to ZaireWeb
Make sure you have pear installed at:

C:\php4\pear

or, that you have the pear folder, in the same directory as your script
__________________
Eric Coleman - Co-Owner ZaireWeb Solutions
eric.coleman@zaireweb.com
http://sitemod.net - sitemodCMS Coming Soon!

Reply With Quote
  #3  
Old January 4th, 2003, 10:53 AM
jrockfl jrockfl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 11 jrockfl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
no pear

i dont have a pear folder...can i downloaded this at php.net ?

Reply With Quote
  #4  
Old January 4th, 2003, 10:55 AM
ZaireWeb ZaireWeb is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Hamburg, NY
Posts: 37 ZaireWeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to ZaireWeb Send a message via AIM to ZaireWeb
ftp://ftp.horde.org/pub/pear/pear-4.1.0.zip

I can never seem to find it on php.net for some reason...

Reply With Quote
  #5  
Old January 4th, 2003, 11:02 AM
jrockfl jrockfl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 11 jrockfl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks!

thank you!
i downloaded the files into my c:\php folder

when it looks for the file... it says cannot find path c:\php4

should i rename my folder to php4? or will this mess things up?

Reply With Quote
  #6  
Old January 4th, 2003, 11:03 AM
ZaireWeb ZaireWeb is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Hamburg, NY
Posts: 37 ZaireWeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to ZaireWeb Send a message via AIM to ZaireWeb
Look at your inculde path in PHP.INI,

Make it look something like this:

include_path = ".;c:\Server\php\;c:\Server\php\pear"

So in your case,

include_path = ".;c:\php;c:\php\pear"

Reply With Quote
  #7  
Old January 4th, 2003, 11:35 AM
jrockfl jrockfl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 11 jrockfl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i still cant find it

(inlcude_path='.;c:\php4\pear')

i was looking for php4 in the php.ini file

Reply With Quote
  #8  
Old January 4th, 2003, 12:39 PM
jrockfl jrockfl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 11 jrockfl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
found it

ok..i found the line and typed your line in...
now i get

undefined variable db_object

i rechecked the code and i dont see a typo...could this error be because of the path issue i had to begin with?

Reply With Quote
  #9  
Old January 4th, 2003, 12:53 PM
ZaireWeb ZaireWeb is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Hamburg, NY
Posts: 37 ZaireWeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to ZaireWeb Send a message via AIM to ZaireWeb
YOu get this when you run the script?

Put

PHP Code:
 error_reportingE_ALL & ~E_NOTICE ); 


at the top of your script, and see if it makes a difference

Reply With Quote
  #10  
Old January 4th, 2003, 01:20 PM
jrockfl jrockfl is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 11 jrockfl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
worked

Thank you. That litte error reporting worked. What should that do? Just email me any error messages?

I had removed the line with the $db_object before you posted and it worked too.

Thanks for your help.

Reply With Quote
  #11  
Old January 4th, 2003, 01:30 PM
ZaireWeb ZaireWeb is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Hamburg, NY
Posts: 37 ZaireWeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to ZaireWeb Send a message via AIM to ZaireWeb
& ~E_NOTICE surpresses notice's

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Pear....can not find include path


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway