Re: Re: [PHP-DB] Problem with include()
| From: | Robert Böhm | Date: | Tue, 13 Nov 2001 15:46:24 +0000 |
| Subject: | Re: Re: [PHP-DB] Problem with include() | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14288@lists.php.net to get a copy of this message | ||
>The manual reads
>include
>(\"http://someserver/file.php?varone=1&vartwo=2\");
>and...
>require($DOCUMENT_ROOT . \"/header.html\");
As you can see the upper one among the above line refers
to opening a remote file for inclusion via http.
If it the server is somewhat properly configured
you will not be able to download the script source for execution from there,
so it makes sense to pass parameters.
Which HTTP fortunately supports.
Unfortunately, local file systems do not necessarily support passing parameters to files being
openend for read access.
Wich wouldn\'t make sense, because it\'s just being read, not executed.
It will tough be executed _after_ being read... As a part of the current runtime environment,
sharing the same variable namespace, and stuff.