hi! i am try a few days now to build a script thats upload files from my server to sites like, hotfile, megaupload, zomgupload and so on, using the "Remote URL upload". In sites like hotfile and mega upload, when you send the remote url, they move it to pendding, and there for you can actully close the browser and the file will be upload. This is a very easy task to do in curl. just to find the url to post to and thats it. In other sites, like zomgupload, megaupload (when you try to upload from your computer), after you send the file using the remote url, it trasfer you to "prossess page" and if you close it, the upload will be abort. this is my current functions: function curl_string ($url,$postf){ $user_agent = "Googlebot/2.1"; $ch = curl_init(); $addr = dirname(__FILE__).DIRECTORY_SEPARATOR.'cookie.txt'; curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_TIMEOUT, 20); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postf); curl_setopt($ch, CURLOPT_COOKIEFILE,$addr); curl_setopt($ch, CURLOPT_COOKIEJAR,$addr); $result = curl_exec ($ch); print_r(curl_getinfo($ch)); curl_close($ch); echo '<br>'; return $result; } PHP: function zomgupload($fileurl) { $url = "www.zomgupload.com"; curl_string($url,"op=login&login=***&password=***"); $result = curl_string("www.zomgupload.com",""); $url = get_string_between($result,'action="http://','" method'); $sess = get_string_between($result,'sess_id" value="','"'); $gid=''; for($i=0;$i<12;$i=$i+1){ $gid = $gid.rand(0,9); } $result = curl_string($url."".$gid."&js_on=1&utype=reg&upload_type=url","sess_id=".$sess."&upload_type=url&url_1=".$fileurl."&tos=1"); echo $result; } PHP: how can i get the curl to call to the page i am posting me vars, and stay there untill all uploads will be finished. i hope some one can help me. I need some help. thanks