|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-30 23:53 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 17:00:01 2025 UTC |
Description: ------------ Hello I upgrade server and PHP from 4.1 to 5.26. The script with include(../scripts.php) files on webpage is working OK. But the same script from command line doesn't work. As i understood from command line there has to be absolute path, like c:/directory/script. On version 4.1 I used relative path. Reproduce code: --------------- <? ini_set('display_errors', 1); error_reporting(E_ALL); include'../vl_web/vl_conn.php'; ?> Expected result: ---------------- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\PHP>c:\php\php.exe -q c:\web\tmp\in.php #C:\PHP#PHP Warning: include(../vl_web/vl_conn.php): failed to open stream: No such file or directory in C:\web\tmp\in.php on line 6 Warning: include(../vl_web/vl_conn.php): failed to open stream: No such file or directory in C:\web\tmp\in.php on line 6 PHP Warning: include(): Failed opening '../vl_web/vl_conn.php' for inclusion (i nclude_path='.;C:\php5\pear') in C:\web\tmp\in.php on line 6 Warning: include(): Failed opening '../vl_web/vl_conn.php' for inclusion (includ e_path='.;C:\php5\pear') in C:\web\tmp\in.php on line 6 C:\PHP>