Msg#: 4078430 posted 5:01 pm on Feb 11, 2010 (gmt 0)
I am quite new to php. How do i insert the content of a variable into the db. The contents is records like below : Name|Address|Age aaa|bbb|22 ddd|yyy|45 eee|fff|56 I have to insert Name, Address, Age into the db from the var.
Msg#: 4078430 posted 4:23 pm on Feb 12, 2010 (gmt 0)
Got it to work finally. Now i have another problem. The zip files that i have to import is large (something is GB's). This is causing the memory to get exhausted. Is there a way of splitting these zip files in PHP ?
Msg#: 4078430 posted 2:34 pm on Feb 14, 2010 (gmt 0)
do u mean to say unzip the file xyz_zip.zip and read the content of xyz.txt and create a new file xyz_copy.txt and the read from xyz_copy.txt line by line. i am not sure but is there a way in php to unzip the file xyz_zip.zip and save the xyz.txt as a seperate file or do i have to write the data to a new file(xyz_copy.txt ) and save it ? please note that the zipped version of the file itself is in GBs and this is causing memory to get exhausted.