xofter2 Posted April 19, 2010 Share Posted April 19, 2010 Hello, I want to create a php website which supports to upload files by admin, and which supports to attach images about the uploaded file. I have been reading a lot of tutorials but no one is about what I need. I'm novice into this, and I hope someone would be able to recommend me some tutorials about what I need. Here is a site that I like: http://www.lianasims3.net/index.php I don't want to copy this site, but I would like my site to have a similar system. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/199013-suggestions/ Share on other sites More sharing options...
ignace Posted April 19, 2010 Share Posted April 19, 2010 You are looking at a regular upload script both for your file and your images. You can combine them in one go. Here's an introduction http://www.tizag.com/phpT/fileupload.php And an example of an upload script http://www.w3schools.com/PHP/php_file_upload.asp <strong>Select your sims3 file:</strong> <input type="file" id="sims3_asset" name="sims3_asset"> <strong>Select your images:</strong> <input type="file" name="images[]"> <input type="file" name="images[]"> Access them using $asset = $_FILES['sims3_asset']; $images = $_FILES['images']; The last one $images is more trickier as you access each individual file like: $images['name'][0]; Returns you the first file. Quote Link to comment https://forums.phpfreaks.com/topic/199013-suggestions/#findComment-1044702 Share on other sites More sharing options...
xofter2 Posted April 19, 2010 Author Share Posted April 19, 2010 I will test them soon and I will get back if I'll need more indications. Thank you very much for your fast reply. Quote Link to comment https://forums.phpfreaks.com/topic/199013-suggestions/#findComment-1044846 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.