|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-09-02 11:17 UTC] jeroen@php.net
[2001-09-02 11:57 UTC] jeroen@php.net
[2001-09-02 16:52 UTC] jeroen@php.net
[2001-10-28 12:10 UTC] jeroen@php.net
[2001-10-28 12:34 UTC] sniper@php.net
[2002-03-02 10:47 UTC] jimmy at _ANTISPAM_lusidor dot com
[2002-03-02 10:50 UTC] derick@php.net
[2002-03-07 13:11 UTC] mvl at lionsolutions dot nl
[2002-03-07 13:28 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 19:00:02 2025 UTC |
?php if(is_uploaded_file($userfile)) { $FileNameAdd = $FileName; //Prefix for filename using uniqid(); $FileNameAddDB = $DBFileName; //Including prefix used for database $filename = $HTTP_POST_FILES['userfile']['name']; //Filename as selected by user $FileExt = substr(strrchr($filename, "."), 1); if(array_search($FileExt, $Extensions) == FALSE) { ?> <font class="warning">Not allowed to upload this file.</font> <?php exit(); } $DBFileSize = $HTTP_POST_FILES['userfile']['size']; $DBFileName = $FileNameAddDB.$filename; move_uploaded_file($userfile, $Mapping . $FileNameAdd.$filename); ?> Didn't compile anything just use the compiled version as download from website. When I upload a file bigger than 10 MB, it takes a very long time (if it uploads) I adjusted all the needed variables in php.ini. I'm using it for files (>150MB) over a Lan network. I've tried a ASP uploader and it does the same file in less then three minutes. PHP was working for 30 minutes and still wasn't done. I think this is a bug in the code. Marcel van Leeuwen Netherlands