Ask a Question related to PHP Development, Design and Development.
-
iliaa@php.net #1
#26259 [Opn->Bgs]: relative include path not working with include() from shell command line execut
ID: 26259
Updated by: [email]iliaa@php.net[/email]
Reported By: orsaini at allainet dot com
-Status: Open
+Status: Bogus
Bug Type: *Directory/Filesystem functions
Operating System: Lunux Apache 2.0.47
PHP Version: 4.3.2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
[url]http://www.php.net/manual/[/url] and the instructions on how to report
a bug at [url]http://bugs.php.net/how-to-report.php[/url]
Use full paths.
Previous Comments:
------------------------------------------------------------------------
[2003-11-15 07:50:20] orsaini at allainet dot com
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 this bug report at [url]http://bugs.php.net/?id=26259&edit=1[/url]
iliaa@php.net Guest
-
relative include paths? What's the use?
If I were to write an include with a relative path like include("../conf/config.php"); What is the use? As far as I understand it, the path... -
#26259 [NEW]: relative include path not working with include() from shell command line execut
From: orsaini at allainet dot com Operating system: Lunux Apache 2.0.47 PHP version: 4.3.2 PHP Bug Type: ... -
How do i include a shell script
How do i include a shell script in perl. I have to use some shell scripts in a perl script. I know I can write it in perl, but would like avoid... -
#25506 [Opn->WFx]: <xsl:include> with relative path
ID: 25506 Updated by: rrichards@php.net Reported By: cryo28 at rbcmail dot ru -Status: Open +Status: ... -
#25506 [NEW]: <xsl:include> with relative path
From: cryo28 at rbcmail dot ru Operating system: Win2K PHP version: 4.3.3 PHP Bug Type: DOM XML related Bug description: ...



Reply With Quote

