-
-
2. Re: PHP Gallery Upload Code
Awaddell9950 Feb 16, 2015 6:10 PM (in response to Nancy O.)Sorry for my late reply!
I'll try this out as soon as I'm back in class, but thank you Nancy!
-
3. Re: PHP Gallery Upload Code
Awaddell9950 Mar 6, 2015 1:35 AM (in response to Nancy O.)HI Nancy!
I've finally found the time to attack this, again. I'm a little stuck on the " $target = "upload/";" bit. I'm not really sure what I've to put in there.
-
4. Re: PHP Gallery Upload Code
osgood_ Mar 6, 2015 2:47 AM (in response to Awaddell9950)Awaddell9950 wrote:
HI Nancy!
I've finally found the time to attack this, again. I'm a little stuck on the " $target = "upload/";" bit. I'm not really sure what I've to put in there.
Thats a folder named 'upload' on the server where your uploaded images will be strored.
So if you want to store your images in a folder named 'pictures' then asign that to the $target variable:
" $target = "pictures/";"
You know you need a working server for this to work, right - either a local set up or remote one, have you got either of those set up?
-
5. Re: PHP Gallery Upload Code
Awaddell9950 Mar 6, 2015 4:22 AM (in response to osgood_)Hi there!
I'm using 000webhost to test the website. When I upload an image, I made sure it was a relatively small .jpg image, it gives me the, "sorry, there was a problem with your file.".
I've got a folder called "images" so would my target be " $target = "images/"
I think? I appreciate the fast response, by the way!
-
6. Re: PHP Gallery Upload Code
osgood_ Mar 6, 2015 7:07 AM (in response to Awaddell9950)Check to see if FILE UPLOADS is enabled on the server.
Insert the below piece of php code in a blank Dreamweaver php document and save it as php_info.php - upload to server - browse to it and see what information is returned. Scroll down the list to 'Core' and look for file_uploads - it should say On
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
-
7. Re: PHP Gallery Upload Code
Awaddell9950 Mar 9, 2015 2:12 AM (in response to osgood_)I've checked the document's core, and file_uploads are 'on'.
I'm not really sure where to go from here, haha
-
8. Re: PHP Gallery Upload Code
Awaddell9950 Mar 9, 2015 2:55 AM (in response to osgood_)Okay, I've got it to work, finally.
I just need to display the images automatically, somehow. Is there a tutorial that carries on from the upload code?


