PHP Code for zip ftp folder php

Asked By 40 points N/A Posted on -
qa-featured

I have been working with PHP application project at one point I want to share my files to another client like file transfer protocol but I wanted to add some other features like zipping and encryption feature.

I have try to work but I am unable to get proper output so if you can help or share some PHP code or provide some other solution for this, one request to you all please save filename and heading like zip FTP folder PHP so that I can able to track through these keywords?

SHARE
Best Answer by Lanford Wilton
Answered By 0 points N/A #181417

PHP Code for zip ftp folder php

qa-featured
If you are on Linux and not limited by php's safe_mode (use phpinfo () to find out) then you could simply use exec () to run the zip command from a shell like:
 
<?
Exec ("zip -R public_html.zip /home/username/public_html", $output);
?>
I Hope this helps.
 
EDIT: Just to clarify, if you have FTP access then you can upload this statement as a standalone script and call it through a browser.
Best Answer
Best Answer
Answered By 0 points N/A #181416

PHP Code for zip ftp folder php

qa-featured

Hi,

In PHP Zip is not enabled default, but you can easily zip and unzip files by using a PHP script. I have a simple and very good instructions which can help you in zip and unzip files or folders.

First step is to check whether a file exists or not before zip? The second step is to make sure whether to overwrite zip files or not? Now you can use the PHP zip archive to zip files. Now I am providing you code for zip and unzip MS Word file. Which is attached to it. I hope this will help you.

Answered By 0 points N/A #181418

PHP Code for zip ftp folder php

qa-featured

You can Simply extract the PHP files to your PHP enable a hosting website

Before uploading change this script.. Find 'cm79.php' you will see

CODE:           <?PHP

$dftp='http://yourname.com/ftp';

$cm m="Date (GMT +00:00)r n".date ("d.m.y, H: I am") ; $php='/user/local/bin/PHP';

?>

Now edit 'yourname.com/ftp' and time zone with your own.

This should work.

Answered By 0 points N/A #181415

PHP Code for zip ftp folder php

qa-featured

Hello,

Try to use DoNETzIP a free class library and a tool set that will manage your zip files. It enables PHP to run dynamically the AES encrypted zip file. The file then becomes ready for you to download. The help text file has a sample code with instructions. You can download DoNetzip from this site.

I hope this is will be helpful. Good luck to you.

Enables PHP to run dynamically the AES encrypted zip file

Login/Register to Answer

Related Questions