|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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! |
|
#3
|
|||
|
|||
|
no pear
i dont have a pear folder...can i downloaded this at php.net ?
|
|
#4
|
|||
|
|||
|
ftp://ftp.horde.org/pub/pear/pear-4.1.0.zip
I can never seem to find it on php.net for some reason... |
|
#5
|
|||
|
|||
|
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? |
|
#6
|
|||
|
|||
|
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" |
|
#7
|
|||
|
|||
|
i still cant find it
(inlcude_path='.;c:\php4\pear') i was looking for php4 in the php.ini file |
|
#8
|
|||
|
|||
|
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? |
|
#9
|
|||
|
|||
|
YOu get this when you run the script?
Put PHP Code:
at the top of your script, and see if it makes a difference |
|
#10
|
|||
|
|||
|
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. |
|
#11
|
|||
|
|||
|
& ~E_NOTICE surpresses notice's
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Pear....can not find include path |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|