#14797 [Com]: include (_path) in Apache SAPI and CGI on Win98SE does not work

From: Date: Tue, 29 Oct 2002 23:25:50 +0000
Subject: #14797 [Com]: include (_path) in Apache SAPI and CGI on Win98SE does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23670@lists.php.net to get a copy of this message
 ID:               14797
 Comment by:       abandonedsoul@msn.com
 Reported By:      m@rtin-burger.de
 Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Windows 98 SE
 PHP Version:      4.1.0
 New Comment:

I have discovered the same errors and found one *somewhat* solution...

If the file you are trying to include is on the same server (e.g. not
"http://othersite.com/include.inc"),
then you can use the following:

chdir("directory");

This will switch to another directory.  To go up a level, use:

chdir("..");

I don't know if this works on a Unix box or not.  Use this command to
switch to the directory of the .inc files, and then you can initiate
the include(); command.

Hope this helps with your include problem...

~ Patrick ~


Previous Comments:
------------------------------------------------------------------------

[2002-03-19 14:29:45] john@djc.com

I've always had problems with apache sapi under win32 with the include
path.

Finally discovered this works:

php_value include_path "/.;C:\whatever"

Why?  I have no idea.  Definite BUG.

------------------------------------------------------------------------

[2002-03-13 20:50:45] sniper@php.net

This is fixed in CVS. Fix will be in PHP 4.2.0.


------------------------------------------------------------------------

[2002-02-05 19:56:20] emailleonid@start.com.au

Ive jsut installed XP and straight away none of the include that
specify FULL path to the file work .. Relative works fine. Everythign
used to work like it is suposed to under win2k. 
I found that the only way to solv this is to add a FULl FULL path
including the drive letter. (before i used to add just the path to the
root of the webserver)...
Any idea what might be causing this Besides win XP?

------------------------------------------------------------------------

[2002-02-04 16:45:27] phpclub@unet.ru

I found  solution %)
php_value include_path "/.;C:\var\www;"
Add in include_patch /.
All working! 
Tested in php4.0.4rc1,4.0.6,4.1.1

------------------------------------------------------------------------

[2002-01-30 12:55:33] m@rtin-burger.de

Hello,

D:\127\Apache\Apache.exe  -d "d:\127\apache" -k shutdown

D:\127\Apache\Apache.exe -w -f "D:\127\Apache\conf\httpd.conf" -d
"D:\127\Apache\"

Martin

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/14797

-- 
Edit this bug report at http://bugs.php.net/?id=14797&edit=1



Thread (1 message)

  • abandonedsoul at msn dot com
  • Unknown Message
    • abandonedsoul at msn dot com
« previous php.bugs (#23670) next »