Hi I'm somewhat new to PHP. I know the basics like connecting and manipulating a MySQL database but I haven't delved too far into what PHP has to offer. I came about a problem recently that I would like to know if it is possible for PHP to solve...
So I run a fairly large web site that focuses on large image galleries. The image galleries are just basic html pages that are created from one of those programs that automatically create image galleries. I noticed the load times weren't that great as the images ranged from 75kb-300kb... My solution to this would be to add this script to load the next image in the gallery while the person views the current image.
(in the header)
img1 = new Image();
img1.src = "load_next_image.jpg";
The problem I am having is how would I get it so my program that creates image galleries knows to put the next image in the "load_next_image.jpg" area? My program right now doesn't have an option and I'm no programmer genius to manipulate it.
I've seen PHP do a lot of neat things and was wondering if it could some how know what the next image in the directory is... is this possible? If someone could please help it would make my day. Thanks!
Is this possible? PHP to read next image in directory
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users