Bug 15024 - pathing issues with php
Summary: pathing issues with php
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-01 18:07 UTC by Steven Taylor
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-08-01 18:07:38 UTC
Embargoed:


Attachments (Terms of Use)

Description Steven Taylor 2000-08-01 18:07:36 UTC
phpGroupWare, which works under 6.2 using relative paths
ex.  include("inc/config.inc.php");

fails unless you specify full path
ex. include("/var/www/html/phpGroupWare/inc/config.inc.php");

Comment 1 Nalin Dahyabhai 2000-08-01 18:34:29 UTC
The default include path (which is set now, while it wasn't before) no longer
includes ".".  Change your include statement to "./inc/config.inc.php", and it
should work again.  The next build of PHP (4.0.1pl2-6) will include the current
directory in the include path again.  Please reopen this bug ID if you find that
this is not the case.

Comment 2 Nalin Dahyabhai 2000-08-01 18:35:13 UTC
Or, change the include_path set in /etc/php.ini from "/usr/share/php" to
".:/usr/share/php", which is the fix the next build has.


Note You need to log in before you can comment on or make changes to this bug.