|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-15 13:37 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 05:00:01 2025 UTC |
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