FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


upload .gz file via ftp and extract remotely





AOP Web Development
hi i would like to ask how can i extract a files in .gz files remotely.

I made a script to upload a 2 compress .gz files via ftp functio in php and what i want to know how can i extract those files. i've tried the ftp_exec() and ftp_raw() but i got eror like SITE_EXEC and 500 not understood... Maybe i have miss something.. hopefully you can help me out thanks a lot


Wink Wink Wink Wink Wink
jmraker
I don't think that standard ftp supports any decompress commands. The commands that ftp_exec supports are most likely ftp commands, not systems commands. FTP is for transfering files and managing them, not a telnet playground.

But then again http://www.gzip.org says
Quote:
Some ftp servers allow compression and decompression on the fly and are thus vulnerable


If the remote server is one of them, you'll probably need to connect to the FTP server with some 3rd party php/ftp software that supports the command that extracts
rvec
http://nl2.php.net/manual/en/book.zlib.php
not sure if those work on frihost though, but if they do it's the best way to handle .gz files
Related topics
can i upload a rar file to ftp?
Stupid question: How i configurate FTP to upload my files?
[RESOLVED] Hello can Frihost can access via ftp?
tar.gz - extracting with directadmin
Autoinstall script in directadmin?
Can't upload pages via FTP
How to upload a file via html-form and php?
FTP Upload Problem
Looking for file upload!
Issue connecting to my account via FTP/Filezilla
SQL Injection
setting up a drupal 6.2 site
How do I put my files on the hosting site and what is FTP??
Upload a file from host to other file host
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.