Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #15367
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: force include_path to search in $_Server['Document_Root'] |
| Date | 2015-05-27 21:24 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <mk5qm6$5bl$1@dont-email.me> (permalink) |
| References | <3686f5b6-f8d9-47d8-abe2-377b713f6c9b@googlegroups.com> |
On 5/27/2015 3:08 PM, jans wrote: > I don't want php to search for an include_path. I want it to search on the relative directory. > The included files are local to where they are needed. All I need to do is document this system. I don't need to develop anything further so I don't need a functioning include_path but I need to remove the errors to get it to work. > > How can I change include_path or hard wire it in the index.php to search for $_Server['Document_Root'] but on windows? I commented out all the include_paths in php_ini. There were two php.ini's on Wamp server. One in apache and one in php. Not sure why there are two in Wamp, but I commented out all include_paths. It is still defaulting to (include_path='.;C:\php\pear') can I make it default to the root directory? That should fix my problem? Thanks. > > Below is the scripts that get the error in the root 'www' directory in Wamp > -------------------- > my_app/public/index --> require'../application/bootstrap.php'; > my_app/application/bootstrap --> require_once 'intializer.php& Zend/Loader/Autoloader.php; > > > > > > ERROR Msgs: > Warning: require_once(C:\php\pear\Zend\Controller\Plugin\Abstract.php): failed to open stream: Permission denied in C:\wamp\www\conduit-local\application\Initializer.php on line 9 > Call Stack > ( ! ) Fatal error: require_once(): Failed opening required 'Zend/Controller/Plugin/Abstract.php' (include_path='.;C:\php\pear') in C:\wamp\www\conduit-local\application\Initializer.php on line 9 > > so it opens initializer.php and stops on line 9 trying to find the include_path and its defaulting to a wamp directory which is not relative. > > thanks, > You do not need to change the include path for the server to look in the document root. Every request to the server is based off the directory configured in the server. From your errors it looks like your directory structure is not set up correctly. And after changing the php.ini file, did you restart the web server? You REALLY NEED TO BE TALKING TO THE PERSON WHO GAVE YOU THE FILES ABOUT THIS! ALL YOU ARE DOING IS SHOOTING IN THE DARK AND WASTING OTHER PEOPLE'S TIME (ALONG WITH YOUR OWN). If you had done this at the start, you would have had a working system two (or more) weeks ago. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
force include_path to search in $_Server['Document_Root'] jans <janis.rough@gmail.com> - 2015-05-27 12:08 -0700
Re: force include_path to search in $_Server['Document_Root'] Jerry Stuckle <jstucklex@attglobal.net> - 2015-05-27 21:24 -0400
Re: force include_path to search in $_Server['Document_Root'] "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-05-28 03:50 +0200
Re: force include_path to search in $_Server['Document_Root'] jans <janis.rough@gmail.com> - 2015-06-01 17:08 -0700
Re: force include_path to search in $_Server['Document_Root'] jans <janis.rough@gmail.com> - 2015-06-02 10:05 -0700
Re: force include_path to search in $_Server['Document_Root'] jans <janis.rough@gmail.com> - 2015-06-02 10:54 -0700
csiph-web