Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

scripting languages: explanation sought

Featured Replies

So as a web programming noob I don't understand whether scripts are written in-line or if they're called from the directory to generate certain content on a page (I guess both are possible). In a hypothetical situation where there's a database of products (so many that it's more convenient to maintain a database of products/descriptions rather than have an html page for each), how could I generate the description part of the page within the center column of my formatted HTML template? Should I just dynamically generate every page with print statements that print every line of the template?

 

As an afterthought, is there a security risk involved with keeping scripts in your directory? Is there a way to prevent users from calling them outside the pages that are being generated?

 

Any info is greatly appreciated.

Well I would recommend using PHP MySQL for this kind of thing.

You are correct, it would be easier to use database to dynamically generate content, rather than having a separate html page for every product. There is the question however, how would you change details on the database?

You would be best using a open source like OSCommerce or something similar. It allows you to update product details and then makes it easy to integrate into your existing site to display the products. There is no security risk involved as server side scripting languages like php have no front end display, it generates content on the server and sends output to the browser.

Hope this information helps.

 

Regards,

 

Mike from www.everydayprint.co.uk

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.