ghooost Posted February 11, 2007 Share Posted February 11, 2007 i need script or function for that . Link to comment https://forums.phpfreaks.com/topic/38016-solved-i-want-tar-folder-in-my-site-how/ Share on other sites More sharing options...
trq Posted February 11, 2007 Share Posted February 11, 2007 exec will allow youto run commands from the command line. That should get you started. Link to comment https://forums.phpfreaks.com/topic/38016-solved-i-want-tar-folder-in-my-site-how/#findComment-181966 Share on other sites More sharing options...
ghooost Posted February 11, 2007 Author Share Posted February 11, 2007 thanks thorpe I wrote this code .. it work good <?php if (!Function_exists(exec)) { echo "ERROR: exec NOT exists"; } else { $dir = "/home/pl2004/public_html/FOLDER"; $backup = "/home/pl2004/public_html/NEWFILE.tar.gz"; $limit = "30"; @set_time_limit($limit); exec("tar cfz $backup $dir"); } ?> Link to comment https://forums.phpfreaks.com/topic/38016-solved-i-want-tar-folder-in-my-site-how/#findComment-182125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.