etsted 3 Posted January 31, 2014 Report Share Posted January 31, 2014 does anyone know how i can make a php video uploader script? Quote Link to post Share on other sites
Mudsaf 17 Posted February 1, 2014 Report Share Posted February 1, 2014 W3schools.com ~ Tutorial http://www.w3schools.com/php/php_file_upload.asp Tizag ~ Tutorial http://www.tizag.com/phpT/fileupload.php If you want video players etc you need to merge that with SQL. Quote Link to post Share on other sites
Luqman 0 Posted February 1, 2014 Report Share Posted February 1, 2014 any else referance or example script ? Quote Link to post Share on other sites
thescientist 231 Posted February 1, 2014 Report Share Posted February 1, 2014 (edited) just like in your last post, try searching. really it's no difference if you search for images, PDF, video, etc though. the filetype is usually irrelevant if you are doing file uploads, other than just typically validating the extension. but anyway, here's what i found on google. just like your last post, but changed it to video instead of image. https://www.google.com/#q=video+uploader+php&safe=off&tbm=vid and file upload in general http://www.w3schools.com/php/php_file_upload.asp http://www.php.net/manual/en/features.file-upload.php try something out, then let us know where you get stuck and show the code you tried. Edited February 1, 2014 by thescientist Quote Link to post Share on other sites
Luqman 0 Posted February 5, 2014 Report Share Posted February 5, 2014 Notice: Undefined index: pictures in /opt/lampp/htdocs/magazine/upload.php on line 2Notice: Undefined index: pictures in /opt/lampp/htdocs/magazine/upload.php on line 3 <?php $tmp_name =$_FILES ['pictures']['tmp_name']; $uploadfilename = $_FILES ['pictures']['name']; $savedate=date('mdy-Hms'); $newfilename = '/pictures/'.basename($savedate."_".$uploadfilename); if (move_uploaded_file($tmp_name, $newfilename)){ echo "<p> file terupload</p>n"; } ?> what is problem ? Quote Link to post Share on other sites
thescientist 231 Posted February 5, 2014 Report Share Posted February 5, 2014 (edited) the error seems to make it pretty clear. you don't have an index in the $_FILES array called pictures. What do you get if you output $_FILES, like with var_dump? Did you give your input file element in your HTML a name of pictures? You should really be testing for errors in the $_FILES array too. Edited February 5, 2014 by thescientist Quote Link to post Share on other sites
justsomeguy 1,135 Posted February 5, 2014 Report Share Posted February 5, 2014 If the uploaded file is larger than the post_max_size configuration option, then both $_POST and $_FILES will be empty. Quote Link to post Share on other sites
Luqman 0 Posted February 6, 2014 Report Share Posted February 6, 2014 how to sulution ? Quote Link to post Share on other sites
thescientist 231 Posted February 6, 2014 Report Share Posted February 6, 2014 try following this thread, since you are both asking the same thing, http://w3schools.invisionzone.com/index.php?showtopic=49500 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.