|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can't get Pear to work, could be include_path problem
Hi,
I am running Fedora Core5 and have PHP5.1.4 installed under apache 2.2.0. I have installed php extension for mysqli through yum.And I have installed PEAR, MDB2 and MDB2_Driver_mysqli. The path to the PEAR dir is set in php.ini: >include_path = .:/usr/share/pear The place my code is failing is right at the begining of an example.php: >require 'MDB2.php'; it's giving me: Warning: require(MDB2.php) [function.require]: failed to open stream: No such file or directory in /home/my-web-space/user/htdocs/example.php on line 8 Fatal error: require() [function.require]: Failed opening required 'MDB2.php' (include_path='.:/usr/share/pear') in /home/my-web-space/user/htdocs/example.php on line 8 So I checked the /usr/share/pear dir and the file is there... Is this a user permission issue from the script calling from the home/my-web-space/user/htdocs/ dir?? Has anyone got any ideas please, I've been trying to work this out for hours. Thanks, Tom |
|
#2
|
||||
|
||||
|
RE: Can't get Pear to work, could be include_path problem
Sounds like you are having problems with your paths. if it was a permissions issue - the error would have said that.
|
|
#3
|
|||
|
|||
|
RE: Can't get Pear to work, could be include_path problem
I checked the paths, they're are ok - I found a fix but i' mnot all together comfortable with it - it's messy:
I have installed pear into home directories like it's on a shared host and have put the path_include to pear into .htaccess files. It works. Any ideas how to solve the initial problem? |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Can't get Pear to work, could be include_path problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|