NEWS | FAQs | ABOUT US | CONTACT US | CONTROL PANEL | WEB EMAIL

HOME

 Home
 Search
 Contact Us
 About Us
 FAQs

ONLINE STORE

 
 Entry Level Hosting
 Business Plus
 Account Add-ons
 My cart

   
<?
#!/usr/bin/php
    
/* Author:  Keith Elder, Email: k e i t h at z o r k a . c o m, AIM:  ZZorKKa
   Purpose:  Takes the file generated by jPilot which is saved as CSV and re-builds the file so it will import to the t-mobile addressbook through the desktop interface.
   License:  GPL (go get a copy and read it if you need it)
   Usage:  php -q convert.php dumpfile newfile

   Once your file is converted, login onto www.t-mobile.com and import the file as a palm windows .txt/tab file.  My import worked but I think my data was a little corrupted that I got out of it, so I had to clean a few things.  Someone else reported this worked fine for them though.  Send me your comments, suggestions or whatever.
*/
    
$filedump $_SERVER['argv'][1];  #enter your file you want to convert    
    
$newfile $_SERVER['argv'][2];  # enter the new file you wish to create

    # open the file
    # and read it in
    
$fp fopen($filedump"r");
    while(!
feof($fp))
        {
            
$data[] = fgetcsv($fp50000);
        }
    
fclose($fp);

    
# Write data back out
    
$fp fopen($newfile"w");
    
$count count($data);
    for (
$i=0$i<=$count$i++)
    {
        for (
$x=2$x<=26$x++)
            {
                
$line .= "\"".$data[$i][$x]."\",";
            }
        
$line .= "\n";
    }
    
fputs($fp$line);    
    
fclose($fp);
    echo 
"DONE!\n";
?>






 

YOUR CART

  help icon Shopping Cart
0 Item(s)
  help icon Help

Login or Register
Call Us
Toll Free:
(866)-549-1543
Powered By LogiCreate | Terms of Service | Privacy Policy | Phone: (866)-549-1543