From: orsaini at allainet dot com
Operating system: Lunux Apache 2.0.47
PHP version: 4.3.2
PHP Bug Type: *Directory/Filesystem functions
Bug description: relative include path not working with include() from shell command
line execut
Description:
------------
relative path in include function is not working when I run the script
from command prompt or through cron job. but worked fine when I run same
script from web browser through Apache.
Reproduce code:
---------------
include("../../foldername/file.php");
Expected result:
----------------
should include the path when I run php through command prompt
/usr/bin/php /path/test.php
Actual result:
--------------
Warning: main(../../foldername/file.php): failed to open stream: No such
file or directory
--
Edit bug report at http://bugs.php.net/?id=26259&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26259&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26259&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26259&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26259&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26259&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26259&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26259&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26259&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26259&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26259&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26259&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26259&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26259&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26259&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26259&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26259&r=float