Welcome Guest, Not a member yet? Register   Sign In
how to use model?
#16

[eluser]syntaxerror[/eluser]
Code:
function compareBatch()
    {
    
        $kebase = "//asecasianas2/DS_Keying/STATS/KE-DIR/";
        $qcbase = "//asecasianas2/DS_Keying/STATS/QC-DIR/";
        $dir = $this->input->post('directory');
        $ke = directory_map($kebase.$dir, TRUE);
        $qc = directory_map($qcbase.$dir, TRUE);
        $kelist = count($ke) - 1;
        $kelist2 = $kelist + 1;
        $qclist = count($qc) - 1;
        $qclist2 = $qclist+ 1;
        $count_comp = strcmp($kelist2, $qclist2);
        $row_comp = strcmp($kelist,$qclist);
            for($x = 0; $x <= $qclist; $x++)
            {

                $keName = ($kebase . $dir . "/" . $ke[$x]);
                $qcName = ($qcbase . $dir . "/" . $qc[$x]);
                $keBatch = file($keName);
                $qcBatch = file($qcName);
                $file2_count = count($qcBatch);
                $count = 1;
                for($x = 0; $x <= $file2_count; $x++)
                    {
                    
                        $vtag1 = substr($keBatch[$x],178,1);
                        $vtag2 = substr($qcBatch[$x],178,1);
                        $page1 = substr($keBatch[$x],0,4);
                        $page2 = substr($qcBatch[$x],0,4);
                        $name1 = substr($keBatch[$x],7,78);
                        $name2 = substr($qcBatch[$x],7,78);
                        $addr1 = substr($keBatch[$x], 1, 78);
                        $addr2 = substr($qcBatch[$x], 1, 78);
                        $city1 = substr($keBatch[$x], 79, 30);
                        $city2 = substr($qcBatch[$x], 79, 30);
                        $state1 = substr($keBatch[$x], 110, 2);
                        $state2 = substr($qcBatch[$x], 110, 2);
                        $zc1 = substr($keBatch[$x], 112, 5);
                        $zc2 = substr($qcBatch[$x], 112, 5);
                        $tf1 = substr($keBatch[$x], 123, 40);
                        $tf2 = substr($qcBatch[$x], 123, 40);
                        $phone1  = substr($keBatch[$x], 164, 12);
                        $phone2  = substr($qcBatch[$x], 164, 12);
                        return $x;
                            
                    }
                    
            }
        }


Messages In This Thread
how to use model? - by El Forum - 10-12-2008, 09:14 PM
how to use model? - by El Forum - 10-12-2008, 10:41 PM
how to use model? - by El Forum - 10-12-2008, 10:55 PM
how to use model? - by El Forum - 10-12-2008, 11:42 PM
how to use model? - by El Forum - 10-12-2008, 11:54 PM
how to use model? - by El Forum - 10-13-2008, 12:06 AM
how to use model? - by El Forum - 10-13-2008, 12:51 AM
how to use model? - by El Forum - 10-13-2008, 01:05 AM
how to use model? - by El Forum - 10-13-2008, 01:20 AM
how to use model? - by El Forum - 10-13-2008, 01:28 AM
how to use model? - by El Forum - 10-13-2008, 02:10 AM
how to use model? - by El Forum - 10-13-2008, 02:43 AM
how to use model? - by El Forum - 10-13-2008, 02:53 AM
how to use model? - by El Forum - 10-13-2008, 02:59 AM
how to use model? - by El Forum - 10-13-2008, 03:04 AM
how to use model? - by El Forum - 10-13-2008, 03:08 AM
how to use model? - by El Forum - 10-13-2008, 03:17 AM
how to use model? - by El Forum - 10-13-2008, 03:34 AM
how to use model? - by El Forum - 10-13-2008, 03:43 AM
how to use model? - by El Forum - 10-13-2008, 03:49 AM
how to use model? - by El Forum - 10-13-2008, 03:54 AM
how to use model? - by El Forum - 10-13-2008, 03:55 AM
how to use model? - by El Forum - 10-13-2008, 03:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB