Darkwoods Posted October 8, 2008 Share Posted October 8, 2008 hi im trying to intergate with my curently form an simple file upload system... what i want to do is when i upload the file i want it to send the location dir of where the file is uploaded into mmysql database would anyone please help on where to start? thank you Link to comment https://forums.phpfreaks.com/topic/127551-php-file-upload-system-echo-dir-link-help-plz/ Share on other sites More sharing options...
R0bb0b Posted October 8, 2008 Share Posted October 8, 2008 The manual covers a lot of examples: http://us3.php.net/features.file-upload Link to comment https://forums.phpfreaks.com/topic/127551-php-file-upload-system-echo-dir-link-help-plz/#findComment-659915 Share on other sites More sharing options...
Darkwoods Posted October 8, 2008 Author Share Posted October 8, 2008 what i ment for example to echo 'www.link.com/file.com/whatever.zip'"; Link to comment https://forums.phpfreaks.com/topic/127551-php-file-upload-system-echo-dir-link-help-plz/#findComment-659925 Share on other sites More sharing options...
JasonLewis Posted October 8, 2008 Share Posted October 8, 2008 Yeah, after you've uploaded it you have the filename so you could just go: echo "http://www.link.com/file/".$_FILES['filebox']['name']; Once you have uploaded the file, you should have the directory and the name of the file. It shouldn't be too hard to echo out the address of the file. Link to comment https://forums.phpfreaks.com/topic/127551-php-file-upload-system-echo-dir-link-help-plz/#findComment-659929 Share on other sites More sharing options...
aschk Posted October 8, 2008 Share Posted October 8, 2008 Once you've "uploaded" the file you MUST use move_uploaded_file() because in it's original uploaded format it's nothing more than just a tmp file which will get deleted shortly thereafter. Link to comment https://forums.phpfreaks.com/topic/127551-php-file-upload-system-echo-dir-link-help-plz/#findComment-659985 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.