Hi there,
Is it possible to retreive the content inside a txt file that’s located on an anonymous ftp server inside a tar.gz archive (if so, how)?
Cheers,
Peter
Hi there,
Is it possible to retreive the content inside a txt file that’s located on an anonymous ftp server inside a tar.gz archive (if so, how)?
Cheers,
Peter
Ah, thank you very much — I’ll look into it
I am not a php developer so won’t be able to advise you php way of doing it but you can extract the txt file from the tar.gz and then read its contents.
tar --gzip --extract --file=backup_file.tar.gz /path/to/file.txt
You may use exec or system function to execute the tar command to do that.