I've always had trouble putting files (backgrounds, ringers, etc.) on my cell phone. A year or so ago, I found a site, www.3guploads.com
, which allowed you to upload files there and download them to your phone using your phone's web browser.
Their service kind-of sucked. My account was deleted like 5 times in a row, and now they cost money.
This made me sad, because I had no way of getting files to my phone.
So, I wrote a script that is actually useful! I have Apache and PHP installed on my computer, and I have set up a dynamic DNS hosting configuration (visit www.no-ip.org
). I made a script that will let you download the files from your own webserver
It took a bit of research on the Sprint way of downloading files (google "GCD files Sprint"), but I got it.
I thought I'd share the script with you guys:
$serveraddress = "http://kyboren.redirectme.net/";
$serverfolder = "Files/Mobile/";
$filename = $_GET["f"];
$fileext = strrchr($filename, ".");
$filehandle = fopen($serverfolder . $filename . ".gcd", "w");
$n = "\n";
if(strlen($filename) < 1)
echo "File specified not found.";
echo "Error writing file.";
if($fileext == ".midi" || $fileext == ".mid")
fwrite($filehandle, "Content-Type: audio/midi$n");
if($fileext == ".jpg" || $fileext == ".jpeg")
fwrite($filehandle, "Content-Type: image/jpeg$n");
$filepart = substr($filename, 0, (strlen($filename) - strlen($fileext)));
fwrite($filehandle, "Content-Name: $filepart$n");
fwrite($filehandle, "Content-Version: 1.0$n");
fwrite($filehandle, "Content-Vendor: Kybo Ren$n");
$url = $serveraddress . $serverfolder . $filename;
fwrite($filehandle, "Content-URL: $url$n");
$size = filesize("./" . $serverfolder . $filename);
fwrite($filehandle, "Content-Size: $size$n$n");
$url = $serveraddress . $serverfolder . $filename . ".gcd";//reuse url
echo "<a href = \"$url\">Download now!</a>";
}//everything was fine, generate the file and give the link
It works fine for me; I don't know how well it'll work for you.
You should change the address and folder variables to meet your needs.