Forgive me if this has been asked and answerd, but I did search and did not find.
I have a set of files that is are .tar they contain jpg files.
I need to be able to uncompress the file , get the picture file names so I can store the names in a data base and also save the file on the server.
I am doing this with a text file. FTP unzip read parse and save the fields to a database
All files are on a ftp server and that part I can do. The tar files with text I have no problem with. I can get them save them unzip and parse and save the data to a mysql database, but the ones that contain pictures I am at a loss. I have tried the same methods as with the text but I don't get file names I get the binary data of the pictures.
I am using
$fp = gzopen($local_file, "r");
the text is contained in a .gz file
the pictures are in a tar file
I have tried a variety of things, but no luck
I need to get the picture names store them in a database and save each picture to the server so that I can call them up later.
Thanks and I hope I made sence.
Elbert Dee