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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.