List Info

Thread: file data parsing in PHP




file data parsing in PHP
user name
2006-01-16 04:06:38
your question not clear
do you want to store the text file 
or u want to store the data in to it.

tq.

--- In PHP-OOP@yahoogroups.com, "egacatorce"
<egacatorcey...> wrote:
>
> Good day, guys!!!
> 
> Could someone show me how to parse data in a text file
using PHP and 
> store the data in variables and MySQL?
> 
> We have text files that contain information that looks
something like 
> this:
> 
> EXAMPLE : Elephant
> OBJECT : Animal
> LOCATION : South
> 		Africa
> LOCATION : America
> 
> EXAMPLE : Water Lily
> OBJECT : Plant
> LOCATION : Manila
> 
> EXAMPLE : Panda
> OBJECT : Animal
> LOCATION : China
> 
> … and so on…
> 
> How can I manipulate the data inside a file?  The data
should be 
> stored in a MySQL tables considering the relationship
of every data 
> element.
> 
> I have not done it before and I hope someone would
teach me how to do 
> it.
> 
> Thank you in advance.
> 
> -Ega
>






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.
yahoo.com/group/PHP-OOP/

<*> To unsubscribe from this group, send an email to:
    PHP-OOP-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )