473,662 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scalability of PHP image galleries

There are a lot of PHP image gallery scripts out there. I wondered what
would be the ones that would scale for very big collections and heavy use.
Hundreds of users maybe thousands of users at a time and huge DBs of images.
Provided I had the hardware...

If you cited some names or links - I'd like to investigate it for my own
personal techie interest.

Thanks
Jan 22 '06 #1
3 1155
I hear you should recode whatever it is using mysqli functions and avoid
using variables injected into an SQL statement. use mysqli_prepare( ) and
its related functions to feed your parameters in. MySQL can then cache SQL
statements. whatever helps I guess.

"leegold" <go******@world post.com> wrote in message
news:1BRAf.1180 3$jd5.343@trndd c02...
There are a lot of PHP image gallery scripts out there. I wondered what
would be the ones that would scale for very big collections and heavy use.
Hundreds of users maybe thousands of users at a time and huge DBs of
images.
Provided I had the hardware...

If you cited some names or links - I'd like to investigate it for my own
personal techie interest.

Thanks

Jan 23 '06 #2
On Sun, 22 Jan 2006 20:06:21 +0000, leegold wrote:
There are a lot of PHP image gallery scripts out there. I wondered what
would be the ones that would scale for very big collections and heavy use.
Hundreds of users maybe thousands of users at a time and huge DBs of images.
Provided I had the hardware...

If you cited some names or links - I'd like to investigate it for my own
personal techie interest.

Thanks

It'll scale to orders of magnitude higher if you don't store the images
in the database... just save filenames.

Jan 23 '06 #3
Hello,

on 01/22/2006 06:06 PM leegold said the following:
There are a lot of PHP image gallery scripts out there. I wondered what
would be the ones that would scale for very big collections and heavy use.
Hundreds of users maybe thousands of users at a time and huge DBs of images.
Provided I had the hardware...

If you cited some names or links - I'd like to investigate it for my own
personal techie interest.


The problem of image galleries is that they serve too many images at
once per page. This kills Web servers like Apache 1.x that need to fork
too many processes and that kills the database server if you use
persistent connections.

For serving too many images at once it is better to use a multithreaded
HTTP server like thttp. For the page scripts, you can use Apache as
usual. Read here for a more detailed explanation of the problem:

http://www.meta-language.net/metabas...ve-connections

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Jan 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2302
by: Lorenzo Bolognini | last post by:
Hi all, i'm looking for a free image gallery generator in ASP 3 on ASP+. I've already looked on sourceforge.net but no one seems to fit my needs which include: - admin area to create/destroy galleries, - upload/remove images, - placing comments on images. Could you please point me to someone?
2
286
by: Shabam | last post by:
I have a dotnet application and it allows users to store images. These images are partitioned by directories so as to prevent overflow of files in any specific folder. However, for scalability reasons I have 2 questions: 1) How can I increase disk space infinitely as the need arises, without changing the path structure? Are there solutions that will allow me to pile on more servers and the total disk space would be recognized and...
10
6767
by: cjparis | last post by:
Hello everyone. If anyone can give me a hand I would be gratefull Am doing a site which requires a moving element and have used DHTML to do it. Have a simple Browser detect script to sort IE from Netscape. IE is ok but the Netscape browser including Firefox and Safari are not working now. Not sure why. The idea is that when you mouseover the arrows the gallery div moves to left and right. I have changed the script and now the image...
11
2157
by: timmyb | last post by:
I have an image that is supposed to be in a centered div in the center of a page. It looks fine in IE7. But in Firefox, the image is pushed way over to the right. http://www.barmannphotography.com/index1-test.php I've tried adding display:block; directives to the div, to the div above it and to the containing div, to no avail. I've also tried clearing below the navigation bar and that hasn't
4
23893
by: tswaters | last post by:
Alright, so generally I'm using document.createElement("IMG").... but, I've noticed something just recently that made me switch to "new Image()" What I'm doing is creating a photo gallery of sorts, where i basically want to supply a total # of images, rows/cols max thumb/full image and let the script do the work. The solution I've opted for is to load the images once and change their size / position / visibility to show "thumb galleries" or...
11
5811
by: shapper | last post by:
Hello, I am displaying an image on a few pages. The image size is 50 px height and 50 px width. In some pages I need the image to be 30x30 px in others 40x40 px and in others 50x50px. Can I scale the image using CSS? Thanks,
2
7920
by: saveyongba | last post by:
Hello, I am new to this website so I hope I'm doing this correctly.... Some of the pages on my website are image galleries, and when you roll your cursor over a small image icon, a full-sized version of the actual image shows up to the right. However, I am unable to view some of the small image icons in Internet Explorer; they show up as tiny empty squares. The strange thing is that I can see the icons perfectly in Firefox. Here is an...
0
2709
by: aromes | last post by:
Hi, How to grab pictures out of online Flash image galleries? I will have the same question for hp/javascript online photo galleries as well (but will post them in their relevant sections unless you want to kindly reply here). Thanks so much
1
2284
by: aromes | last post by:
How to Grab pictures out of online JAVASCRIPT image galleries? Thanks so much
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8768
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.