RE: [PHP] Re: php forgetting variables very easily
| From: | John W. Holmes | Date: | Wed, 05 Mar 2003 18:24:38 +0000 |
| Subject: | RE: [PHP] Re: php forgetting variables very easily | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138331@lists.php.net to get a copy of this message | ||
> Include can handle URLs as the path if allow_url_fopen is set
correctly
> in the php.ini. But it does have some limitations if being done on a
> Win32 platform instead of (*)nix.
>
> Try reading this, it might shed some needed light.
> http://www.php.net/manual/en/function.include.php
Very true, but... you get the _result_ of the PHP code when you include
it through a URL. You get the same thing you'd see in the "View Source"
of your browser for a PHP page.
If you want to include PHP code into other code, then you can't do it by
using a URL. You have to use a path to the file on your filesystem.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/