Re: input a section of a large file [message #171661 is a reply to message #171659] |
Fri, 14 January 2011 19:01 |
Luuk
Messages: 329 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 14-01-11 19:25, richard wrote:
> On Fri, 14 Jan 2011 10:41:19 -0700, richard wrote:
>
>> Just being curious.
>> Is it possible in php to acquire information from a file in part, rather
>> than retrieving the whole file?
>> I have a series of tables that I would prefer not showing up on the main
>> page when loaded. When the user clicks the link, the tables would appear.
>> Rather than uploading a thousand small files, I'd rather upload a dozen or
>> so files and retrieive the tables as needed.
>>
>> http://1littleworld.net/tables1.html
>>
>> Just a rough draft to show what I'm talking about. I know there is no
>> character encoding so don't be bitching about it not validating.
>
> Perhaps to clarify a little, I am thinking of something in the way of using
> file_get_contents as a means to open the file, then retrieving the
> particular item I want within that file.
yes, its possible,
but its also pissoble for a mouse,
to stamp on a bridge, and say to the elephant next to him,
we're doing great aren't we....
It would me much easier to do things in MySQL if you want this
or, a a second option, to store the data in different files,
But WHY all date in 1 large file?????
--
Luuk
|
|
|