Re: how to include() N lines?
| From: | Matt Matijevich | Date: | Tue, 02 Sep 2003 22:06:28 +0000 |
| Subject: | Re: how to include() N lines? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-161496@lists.php.net to get a copy of this message | ||
[snip]
i need to include() only a given amount of lines (the first 10 for
example)
instead of a whole file.
[/snip]
I have never tried it, but I think you could open up the file you want
to include, import n lines into a variable, then use the eval function
to turn that variable into php code.
Somebody correct me if I am wrong.