Page 1 of 1
Upload Form
Posted: Tue Jul 04, 2006 1:24 pm
by Maluendaster
Hello all, i want to make a form that can upload at the same time to rapidshare.de and megaupload.com , and then give me the links to download the file... how can i do this???
thank you....
Posted: Thu Jul 06, 2006 4:14 pm
by Maluendaster
Anyone can give a an advice on this???
Posted: Thu Jul 06, 2006 4:27 pm
by Christopher
There was an upload class that I wrote posted
here recently. If you want an example of how to use it I can provide one.
Posted: Thu Jul 06, 2006 5:34 pm
by Maluendaster
arborint wrote:There was an upload class that I wrote posted
here recently. If you want an example of how to use it I can provide one.
thank you, but that's too complicated for me right now, i was looking for something more simple....
Posted: Thu Jul 06, 2006 6:03 pm
by Christopher
Code: Select all
// include the files
$upload =& new A_Http_Upload();
if ($upload->fileCount() > 0) {
if ($upload->isUploadedFile()) {
$filename = $upload->getFileName();
if ($upload->moveUploadedFile()) {
$content .= "<p>The file <b>$filename</b> has been uploaded successfully.</p>";
} else {
$content .= "<p style=\"color:red;\">An error occured uploading $filename.</p>";
}
} else {
$content .= "<p style=\"color:red;\">Error with uploaded file.</p>";
}
} else {
$uploadform =& new A_Http_UploadForm($upload);
$content .= $uploadform->form('myform.php');
}
echo $content;
Posted: Thu Jul 06, 2006 6:13 pm
by dull1554
what he wants to do is at the same time much simpler and much more complicated. he wants to input a file and send it to 2 free upload sites for upload. what he also wants to do is then get the dynamically generated links. which IMO is gonna be fairly difficult without reading in the resulting upload pages and doing like a preg search for the links. maybe jsut make a plain old html page that has one input, pubmits it to 2 sites and loads the sites in a page with 2 frames.....