|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cannot include existing, chmod 777:ed files despite correct include-path (SOLVED)
I have a strange problem getting PEAR-related files to even be able to be included / used in my scripts:
Code: PHP Code:
Error: Warning: include_once(Mail.php) [function.include-once]: failed to open stream: Filen eller katalogen finns inte in /home/motin/Dev/Pdev/trunk/proc/basicFunctions.inc.php on line 15 Warning: include_once() [function.include]: Failed opening 'Mail.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /home/motin/Dev/Pdev/trunk/proc/basicFunctions.inc.php on line 15 The /opt/lampp/lib/php is chmodded 777 for diagnosis and apache is run as nobody. Manual checks: motin@laptop:~$ ls /opt/lampp/lib/php/Mail.php -l -rwxrwxrwx 1 motin users 8066 2005-08-15 18:12 /opt/lampp/lib/php/Mail.php motin@laptop:~$ sudo su nobody Password: sh-3.1$ ls /opt/lampp/lib/php/Mail.php -l -rwxrwxrwx 1 motin users 8066 2005-08-15 18:12 /opt/lampp/lib/php/Mail.php sh-3.1$ Include works great when Mail.php is moved to the same folder, and with other include-paths (like /home/motin/Dev/Pdev/trunk/proc/Smarty) including works fine. Safe mode is on, but there is no mentioning about safe mode restrictions above so... Where to go from here...? |
|
#2
|
|||
|
|||
|
Solved: open_basedir had not "/opt/lampp/lib/php" in it...
Hope this helps someone else in a similar situation! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Cannot include existing, chmod 777:ed files despite correct include-path |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|