Jump to content

Recommended Posts

I have a fair number of xml.gz files on my server, i decompress these on the fly, edit in a text field and recompress/upload, there are quite a lot of them and it takes time, im looking for a way i can decompress on the fly just by typing the filename into a textfield and the filename populating the URL by php is this possible? I dont want code just pointing to an example would be good enough, thanks

Link to comment
https://forums.phpfreaks.com/topic/200479-downloading-xmlgz-files/
Share on other sites

This how I see your question.

 

The Problem:

I have a fair number of xml.gz files on my server, i decompress these on the fly, edit in a text field and recompress/upload, there are quite a lot of them and it takes time

The Question:

i canCan I decompress on the fly just by typing the filename into a textfield and the filename populating the URL by php is this possible? I dont want code just pointing to an example would be good enough, thanks

 

Doesn't the problem answer your question? Aren't you already doing what you ask you want to be doing?

Thanks for the reply Zanus,

 

I may not have explained myself correctly, hope this is a little clearer

 

1) I need to download, decompress files into a textarea, which is a success

 

2) The problem is the URL at my server, the files all have the same extension only difference is they are placed in a different folder, similar to this example

http://www.example.com/this_folder_is_named_differently/data.xml.gz

 

I need a php system where i can just add the folder name from a text field and submit so that i get the correct data.xml.gz,

 

then it is decompressed on the fly and populates a textarea for reading/editing ( all good to here) from submitting from this textarea it is then recompressed for downloading to desktop or re-uploaded to folder (user chooses)..

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.