note 98064 deleted from function.include by googleguy
| From: | googleguy@php.net | Date: | Wed, 01 Aug 2012 06:56:02 +0000 |
| Subject: | note 98064 deleted from function.include by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189551@lists.php.net to get a copy of this message | ||
Note Submitter: creator at mindcreations dot com
----
If you can't change your include path or you have to leave some php libraries where they are,
you can just do a chdir($localdir) before the include or require statement to make sure that the
local dir now is $localdir.
This is the typical case if you have to include some other app classes and you do not want to move
the app files around.
This is just a workaround for those who can't benefit from all other solutions proposed.