PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am looking for a solution to the following setup:
I have a folder that accepts uploads. People upload image files to that folder via the website interface. I then have another PHP page that outputs what is in the folder. This works fine but I would like to use all the code has to offer. To do that I need a script or something that would take the uploaded files and make a thumbnail file for each image. I would also need it to name the new file with a TN_ at the begining of the name. Does anyone make this script? Please help! To use or view the current page I am talking about go here... http://www.frankwatsonsworld.com/MENU/U ... pload.html
I just need something that will create thumbnails for images that are uploaded. I want to keep the upload system that is already there. I thought I had seen one of these a while back.
PERFECT!!!!!! That is exactly what I am looking for. Although I must say I am not positive on how to use it. Here is what I did, then maybe you can tell me what I have done wrong or left out...
I took that code and put it in a new file called thumb_make.php. I then put that new file in the image folder that my system uploads to. Then I went to that new page http://www.frankwatsonsworld.com/MENU/U ... b_make.php and from what I can tell, it's trying to work but I am missing something. Can you let me know what is missing or wrong? Thanks alot for this awesome script!
Well, first problem is that the current version of the script uses the latest GD library, so no gif support (it won't thumbnail gifs yet). I'm working on this in the next version.
Second problem is hard to tell unless I can see both the directory and the script. I know that the script was written such that you can drop it into any directory and it will allow you to browse dynamic thumbs of all pics.
Perhaps the problem is that you don't have GD installed.
At the top of the script type this: php_info();
Then run the script. It will tell you if you have GD at all.
Also, what is the OS/php version on your server?
next time just email that link.
You don't want the whole world to see your config.
Let me rework the code on my side to see what may trip you up.
I wrote it on an XP box but didn't really have OS in mind.
However, there is extraneous crap in it that I can get rid of.
Come to my site and sign up, then email me so I know it's you.
Then you can get into my web dev forum and we can work on this together a bit easier.