Re: Re: [PHP] include
| From: | Tommy Pham | Date: | Mon, 21 Nov 2011 11:10:37 +0000 |
| Subject: | Re: Re: [PHP] include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315783@lists.php.net to get a copy of this message | ||
On Mon, Nov 21, 2011 at 2:56 AM, Tim Streater <tim@clothears.org.uk> wrote:
> On 20 Nov 2011 at 23:46, Tamara Temple <tamouse.lists@tamaratemple.com> wrote:
>
>> Tim Streater <tim@clothears.org.uk> wrote:
>>
>>> At the moment I'm using an instance of apache to run PHP scripts, as
>>> and when required via AJAX. Having got some understanding of web
>>> sockets, I'm minded to look at having a small server to execute these
>>> functions as required. The scripts, some 50 or so, are only about
>>> 300kbytes of source code, which seems small enough that it could all
>>> be loaded with include, as in:
>>
>>> <?php
>>> $fn = 'wiggy.php';
>>> include $fn;
>>> ?>
>>>
>>> This appears to work although I couldn't see it documented.
>>
>> I'm really not sure what you're looking for here -- that is pretty
>> standard php practice to load php files with include -- what were you
>> expecting here?
>
> I'm looking for confirmation that:
>
> include $fn;
>
> is an allowed form of the include statement.
>
RTFM [1] example #6 ;)
HTH,
Tommy
[1] http://php.net/function.include