FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » input a section of a large file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: input a section of a large file [message #171661 is a reply to message #171659] Fri, 14 January 2011 19:01 Go to previous messageGo to previous message
Luuk is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php xml DOM/xpath how to reference child nodes by name within foreach loop?
Next Topic: Adaptive Learning for PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 20 19:29:05 GMT 2024

Total time taken to generate the page: 0.04167 seconds