Topic: Need help with a transloader script
Hi
I am not sure of other countries but I have low bandwidth. Besides that downloading a script and then uploading it is time consuming.
A transloader script transfers a file from one server to yours. A famous one is Rapidleech. But it supports certain file hosts.
I searched for days and I found one which I'll share with you now although I am having some problems with it.
The process is simple. First mod_rewrite must be enabled and the folder you wish to copy should preferably be 777 permission.
Next create a php file in that folder with the following code:-
<?php
define('BUFSIZ',4095);
$url='http://
www.example.com.zip';
$rfile=fopen($url,
'r');
$lfile=fopen(basename
($url),'w');
while(!feof($rfile))
fwrite($lfile,fread
($rfile,BUFSIZ),
BUFSIZ);
fclose($rfile);
fclose($lfile);
?>
Replace the file url with yours.
Now navigate to that file in your browser and while the browser loads it will transload.
[color="red"]That's what I read and what seemed to be working for many but here are my problems[/color].
[color="blue"]Firstly my webhost ftp never worked so I have to use there directadmin control panel to upload normally.[/color]
It says I am not allowed to upload over 10MB but sometimes I do.
I do not have a php.ini.
I read that creating a php.ini with a Max_upload may work but don't know how to?
When I navigate to the url after a while the browser timesout and when I go to check the directory usually the .zip file is there but empty.
I read that BUFSIZ value has something to do with that???
[hr/]
If this script works then uploading templates, etc would be easier. Even installing would.
Another script I have is AutoIndexer PhP v2. It can be found on sourceforge or by going to http://files.websitetrade.za.net and logging in with user: mwbmwb and pass: mwbmwb.
Last edited by Equilibrium3 (2011-11-17 23:16:46)