Log in

View Full Version : Image uploading/managing script



jzhang1013
05-15-2009, 02:29 PM
Hey guys, I'm looking for a script that I can use that will do the following on my server:


upload multiple images
be able to manage/organized said images (by thumbnails)
be able to create new directories
be seen only by me (well I guess if it is public, if I don't tell anyone about it, no one can mess with it)


Anyone have any suggestions?

xiofire
05-15-2009, 02:34 PM
It's not that hard.
When I was building my first photo gallery, people said "Oh, use the move_uploaded_file function."
I was stumped, then I came up with a system that uploads the file to a folder, and then publishes the name of the file to a MySQL database, then on the photo.php?id=(photo number) page, I have

<img src="../photo/uploads/<?=$filename?>" style="max-width: 500px;" />
Easy peasy.

jzhang1013
05-16-2009, 03:15 PM
bump anyone got anymore input. I'm sure you all should know what I'm talking about or maybe my description was a little off. I basically want a serverside image uploader/organizer just like what you see on photobucket or facebook.

traq
05-17-2009, 02:53 AM
question: if you don't want anyone else to be allowed to do this, and you're uploading the images anyway, why don't you just do it all from your ftp program? unless you want to be able to do it from remote locations, in which case you need a CMS (http://www.google.com/search?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=lpW&q=content+management+system&btnG=Search).

BTW, this:

...(well I guess if it is public, if I don't tell anyone about it, no one can mess with it)...

is the worst security measure possible. If it works, it's a coincidence.

jzhang1013
05-18-2009, 09:55 PM
question: if you don't want anyone else to be allowed to do this, and you're uploading the images anyway, why don't you just do it all from your ftp program? unless you want to be able to do it from remote locations, in which case you need a CMS (http://www.google.com/search?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=lpW&q=content+management+system&btnG=Search).

BTW, this:


is the worst security measure possible. If it works, it's a coincidence.
basically I want to visualize my directories, is there a simple serverside code/script for this?

traq
05-19-2009, 04:07 AM
most hosts provide some such program. I don't know who your host is, but look in your admin panel for something like this:
http://www.custom-anything.com/sand/webexplorer.jpg
However, I never use stuff like that. What I was actually suggesting is managing everything on your own machine: e.g., creating a folder for your webspace and organizing its subfolders, files, etc. the way you want them on your actual site. You can upload the whole thing once, then upload/ delete stuff as you update.
This might not work for you, but I find it useful because it gives me more direct control of all my site files, and it also provides me with "backups" of my work in various stages.

jzhang1013
05-19-2009, 10:49 PM
most hosts provide some such program. I don't know who your host is, but look in your admin panel for something like this:
http://www.custom-anything.com/sand/webexplorer.jpg
However, I never use stuff like that. What I was actually suggesting is managing everything on your own machine: e.g., creating a folder for your webspace and organizing its subfolders, files, etc. the way you want them on your actual site. You can upload the whole thing once, then upload/ delete stuff as you update.
This might not work for you, but I find it useful because it gives me more direct control of all my site files, and it also provides me with "backups" of my work in various stages.

exactly. I'm using hostgator.