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

  • SEARCH
  • Home
  • 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 4234956
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:25:50+00:00 2026-05-21T02:25:50+00:00

I’m trying to figure out how to do this. Or if I should use

  • 0

I’m trying to figure out how to do this. Or if I should use the physical disk to store all my files.

I want to be able to save themes that I make for my site to my database (i’m using my own framework) I originally was making themes in placing them in their own folder and uploading them to a themes folder, but since then I have redone my site to let other people create accounts and let them make their own themes and save them for later use.

I’m now using SMARTY template engine so now I have 1 folder called tpl and in that folder I have a few template files.

markup.tpl
site.tpl

and css.php
and js.php

these I hope will load in the css/js from the database.

But my issue is that in the CSS file there could be references to 50 images, how can I save those images along with the CSS file?

I didn’t know what would be easier to manage, images uploaded to my server with some hashed filename or have the images saved onto the database. If the images are in the database would it be easier to manage and organize? What if a user deletes their account, I would need to hunt down all the theme files and delete them one by one, especially the images. I imagine if the files are on the server, then deleted the rows that link to their unique ID would be alot easier…

Anyways, I’m trying to find the best method that would have less stress on my server or make modifying themes files via my online editor simpler when saving.

  • 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-21T02:25:50+00:00Added an answer on May 21, 2026 at 2:25 am

    Don’t forget there is a limit to the size of MySQL BLOB columns so files would need to be broken over multiple rows. I feel in general that seeing as though the file system was written to handle file operations it is the best place for files.

    Databases are effective where you have text that you need to search or operate against. They are not as effective with binary files.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and

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.