Jump to content

Suggestions !?!


xofter2

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/199013-suggestions/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/199013-suggestions/#findComment-1044702
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.