Main Zip Sync Code: file = sync2zip.php $fld1 2=> $fld2 3=> $fld3 4=> $fld4 5=> $fld5 6=> $fld6
"; foreach($HTTP_POST_VARS as $key => $val) { echo "K=> $key V=> $val
"; if ($val != "") { $proc_tag = trim($key); } } if ($fld3=='on') { echo "Found File!
"; $typ_str = "Directory". "  ". "File"; } else { echo "Found Dir!
"; $typ_str = "Directory". "  ". "File"; } if ($HTTP_POST_VARS['frm']) { echo "Found From!
"; $tofchk = ""; $frmchk = "on"; } else { echo "Found To!
"; $tofchk = "on"; $frmchk = ""; } switch ($proc_tag) { case "1": $dis_var = load_page('inv/inv-det.php'); break; case "2": $dis_var = load_page('misc/add-cmp.php'); break; case "3": $dis_var = load_page('inv/test3.php'); break; default: $dis_var = include('sync_zip.php'); } // end swithch ($proc_tag) ?> MyOps System - Invoice
Screen Zip Sync Code: file = sync_zip.php
 

Sync To Zip File

 
Type: Direction:    
Source:
 
Zip File:
 
 
Function load_page from functions.php First Method function load_page($mypfile) { $buffer = ""; if (file_exists($mypfile)) { $hand = @fopen($mypfile, "r"); if ($hand) { while (!feof($hand)) { $buffer .= fgets($hand, 4096); } // end while fclose($hand); } // end if $hand return $buffer; } // end if file_exists } // end function Function load_page from functions.php Second Method function load_page($mypfile) { if (file_exists($mypfile)) { ob_start(); include $mypfile; $contents = ob_get_contents(); ob_end_clean(); return $contents; } // end if file_exists } // end function