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 8098283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:02:01+00:00 2026-06-05T22:02:01+00:00

I’m building a site to display my comics- but I’ve read some tutorials (

  • 0

I’m building a site to display my comics- but I’ve read some tutorials (Elated.com CMS design with images) that advocate for using the database to store the file extensions, and use a more object oriented approach. I’m not doing that as of right now because I didn’t see the need, as I manage files through FTP, and users won’t be adding content. So, before I continue I’d like some peace of mind that my current architecture is okay.

Right now, My pages get images from the filesystem as such:

<?php
$dir = "../images/*";
foreach(glob($dir) as $image) {
$total = count(glob($dir . "*"));
?>
        <span class="comicBG"><a href="./viewComic.php?image=<?php echo $image ?>"><img src="./thumbnailer.php?img=<?php echo $image ?>&mw=&mh=" /></a></span>

<?php } ?>

Clicking on a comic displays that comic on a template:

<?php $myImage = $_GET['image']; ?>

 <center><img src="<?php echo  $myImage  ?>" /></center>

Can I continue on this way?

Thank you

  • 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-06-05T22:02:02+00:00Added an answer on June 5, 2026 at 10:02 pm

    You can definitely start that way but I guess it all depends on what your end goal is. If you simply want to be able upload your comics to the /images/ directory and have the script display thumbnails and links, then you are good… but if you think you’ll ever want more functionality than I would recommend at least working from a database. For example it would be quite easy to store information about how many times each comic thumbnail was clicked on, or perhaps the screen resolutions of the people visiting and looking at the comics so you can then adjust the size of your comics accordingly. Just a couple of ideas, but might be worth your time.

    EDIT: Here is a sample table structure just to give you some ideas to start with.

    cartoon_id           int(11)         auto-increment    primary
    title                varchar(32)
    filename             varchar(32)
    description          varchar(256)
    num_views            int(11)
    last_view_dt         datetime
    order                tinyint(3)
    

    You could get fancy and setup a second table that you insert the view information into (date, time, ip_address, comic, etc) and could generate some fairly interesting stats.

    Sample data would like the following:

    cartoon_id:          1    (would be generated automatically)
    title:               "Awesome Man!"
    filename:            "images/cartoons/awesomeman1.jpg"
    description:         "This was my first cartoon, created in 2002, etc..."
    num_views:           2300  (this would setup to just auto increment when viewed)
    last_view_dt         2012-07-21
    order                1     (could use this to determine the order in which comics are displayed on the thumbnail page)
    

    Could go on and on but I think you get the point.

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

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace

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.