Image upload and file directory problems!

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Sun Apr 07, 2013 9:44 pm

Looks like move_uploaded_file() function in php should help you but take a look at what you have given as the second parmater of this function. It is given as a file name, it should be the path to the destination - Please read about this function from the manual http://it2.php.net/manual/en/function.m ... d-file.php.
What does '$user.jpg' need to be replaced with in order to show all the images uploaded by one specific user?..
pick all the images for that user and show them one by one. I see that in your images table, you are saving images using file name, location and time. You need to pick all images for a particular user from here and show them one by one.

johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Tue Apr 09, 2013 2:27 am

The destination should be folder name, please read the manual and take look at the example shown there
http://php.net/manual/en/function.move- ... d-file.php

Post Reply
  • Information
  • Who is online

    Users browsing this forum: dearanik and 2 guests