Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4063886
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:47:03+00:00 2026-05-20T15:47:03+00:00

I have a photo viewer page that I need to make work with varying

  • 0

I have a photo viewer page that I need to make work with varying numbers of photos without lots of intervention on my part. My plan is to autogenerate the HTML for things like thumbnails so that I can use one loop instead of copy-pasting a bunch of the same code.

So, I can do this with JavaScript or with PHP. As I understand it, PHP will be faster because it will be cached with everything already generated. Am I right about that? Are there advantages to using JS?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:47:04+00:00Added an answer on May 20, 2026 at 3:47 pm

    you would be best off using php and a database or folder of images. PHP will allow google to index the images in image search, also php insures that all browsers view it correctly. Also if you have a large number of photos you would have to send all the data to the browser on load which would slow down the load time. Javascript can be effective for retrieving the next page of data via ajax or JSON, improve the user interface or doing complex interactions with the user, outside of that I wouldn’t recommend javascript for this task.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a photo viewer that I am creating to learn Silverlight and
How to create a photo viewer in wp7. I have some 10 to 25
I have photo gallery code that does image re-sizing and thumbnail creation. I use
I have a photo gallery web page where a single <img src="XXX" /> element's
I have a photo gallery I would like that every time a user does
So we have a photo like this (source: vkontakte.ru ) How to detect that
I have a PHP photo gallery that reads the GPS coordinates from images. I'd
I create a photo viewer for fb photos in a FB canvas application. Therefore
I have created a simple photo gallery viewer, and I would like to preload
I have a number of photos of people on a page and I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.