#23821 [Opn]: Not requireing or including files
| From: | admin at donelson dot net | Date: | Tue, 27 May 2003 00:03:57 +0000 |
| Subject: | #23821 [Opn]: Not requireing or including files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40471@lists.php.net to get a copy of this message | ||
ID: 23821
User updated by: admin at donelson dot net
Reported By: admin at donelson dot net
Status: Open
Bug Type: HTTP related
Operating System: Unix, Apache
PHP Version: 4.3.1
New Comment:
localhost is a Windows XP Home machine, running php 4.3.1 and Apache 2.
The localhost file test.php requires the files needed from
http://www.donelson.net/InetX/ and works great. The
below URL is in the
address bar from the Zend Debugger.
http://localhost/InetX/test.php?start_debug=1&debug_stop=1&debug_port=10000&debug_no_cache=1053993574959
Previous Comments:
------------------------------------------------------------------------
[2003-05-26 18:56:33] admin at donelson dot net
When you click on the require() link abovem it is including the " for
some reason, just remove it from your address bar and hit enter, the
file is there. It will show up as blank page because its a library
file. No output.
------------------------------------------------------------------------
[2003-05-26 18:53:53] admin at donelson dot net
I saw in the docs that windows does not include http/ftp for some
reason. Looking at the dates of the other simular messages I would
think it would have been fixed by now.
Any way I wrote the code and uploaded it to my host which is a unix box
with apache. When run it from my site it does not include / require the
intended file.
Now, I use the Zend Studio and Integrated debugger, If I debug the
page, localhost or remote windows or unix, IT WORKS!
Why is this? Do I have to have everyone that will visit my page
download and install the Zend Debugger and debug my site to see it?
I have been stuck on this for months and monitoring for a fix or answer
and nothing.
HELP!
btw heres some code and a URL so you can check it out.
http://www.donelson.net/InetX/test.php
Go here and you get this message:
Fatal error: Cannot instantiate non-existent class: iunknown in
/home/andydonelson/www/InetX/test.php on line 5
Why? A file that does exist on the server is not being loaded. Here is
the require() call rom test.php line 5:
require_once("http://www.donelson.net/InetX/Interface/IUnknown.php");
Purpose? no matter where you run this script, it will get this file
from this location.
Remember, This code works on a windows XP Home machine when debugging
the page with Zend Debugger, But it wont work if I just open a brower
and visit the page. On windows or unix.
The debugger makes it work for windows (local) and unix (remote)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23821&edit=1