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 Quote Link to comment 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 Quote Link to comment 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'"; Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
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.