note 16618 added to function.require
| From: | rjn at predict dot com | Date: | Tue, 06 Nov 2001 22:27:03 +0000 |
| Subject: | note 16618 added to function.require | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20532@lists.php.net to get a copy of this message | ||
A warning about requiring files using a URL: if the required file is named with a .php extension
you may not get the behavior you expect. A file with a .php extension required with a URL will be
evaluated on the remote server. Thus things like variable definitions and defines will NOT pass
through to the file issuing the require directive. Name it with a .inc or other extension and
things will work as expected.
--
http://www.php.net/manual/en/function.require.php
http://master.php.net/manage/user-notes.php?action=edit+16618
http://master.php.net/manage/user-notes.php?action=delete+16618
http://master.php.net/manage/user-notes.php?action=reject+16618