New to PHP - Photo Gallery
Posted: Thu Jun 25, 2009 3:33 pm
Hey
Here is my explanation of what I want to do, this is as simple as it gets. Actually, it can be even more simple..
- Search a directory of images
- Resize images to 600px wide (Can PHP actually resize the file or does it just shrink it for the browser?)
- Display the images
There is a lot more to this that I want to do but i'm leaving all of that out.
My main concern is I'm sick of manually resizing images and manually creating thumbs and I want to know if PHP can do this for me?
My first step would be to just iterate thru the a directory checking or even getting the image sizes for starters...
I have some code already but the getimagesize function isn't working for me I get this error: Warning: getimagesize(/newsite/impact/HPIM1816 thumb.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /mnt/w0002/d13/s02/b02d93c5/www/newsite/news.php on line 72
Any help?
Here is my explanation of what I want to do, this is as simple as it gets. Actually, it can be even more simple..
- Search a directory of images
- Resize images to 600px wide (Can PHP actually resize the file or does it just shrink it for the browser?)
- Display the images
There is a lot more to this that I want to do but i'm leaving all of that out.
My main concern is I'm sick of manually resizing images and manually creating thumbs and I want to know if PHP can do this for me?
My first step would be to just iterate thru the a directory checking or even getting the image sizes for starters...
I have some code already but the getimagesize function isn't working for me I get this error: Warning: getimagesize(/newsite/impact/HPIM1816 thumb.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /mnt/w0002/d13/s02/b02d93c5/www/newsite/news.php on line 72
Any help?