Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 10th Jun 2009, 09:39 AM   #1
Advanced Warrior
 
John Henderson's Avatar
 
Join Date: 2008
Location: West Sussex, UK
Posts: 556
Thanks: 251
Thanked 188 Times in 132 Posts
Default
Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

Can someone please refresh my memory?

Back in the stone ages (2000-2001), I remember learning that there were two ways to get a computer to generate your webpages. The first was dynamically, where the machine uses ASP or PHP to generate a page "on the fly".

The second way involved feeding the content for any required webpages into a script/program, which would then generate the static pages offline. The computer-generated HTML pages could then be uploaded to the server.

Can someone remind me which technology is used to do this? Would such a task normally be done with Perl scripts?
John Henderson is offline  
Unread 10th Jun 2009, 08:11 PM   #2
Warrior Member
 
Join Date: 2009
Location: Oregon USA
Posts: 13
Thanks: 6
Thanked 3 Times in 3 Posts
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

This can be done with just about any scripting language that has access to the file system of the web server. You can use have all of your content in XML for example, and use XSLT scripts to transform the XML into HTML or any other ascii format for that matter. Can you describe your particular problem and maybe I can propose a solution?
tonymanso is offline  
The Following User Says Thank You to tonymanso For This Useful Post:
Unread 11th Jun 2009, 05:04 AM   #3
Advanced Warrior
 
John Henderson's Avatar
 
Join Date: 2008
Location: West Sussex, UK
Posts: 556
Thanks: 251
Thanked 188 Times in 132 Posts
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

Thanks for your answer, Tony. I'm currently refreshing my website building skills with a book on CSS; I'm hoping to build my own site, but the last site I created was in 2001 (complete with HTML tables and spacer GIFs to keep all the elements where I wanted them :rolleyes: ).

After CSS, I expected that the next skill I would need to learn was some basic PHP, but I've been alarmed at the number of posts that I have seen from Warriors who have had their PHP sites cracked. A few have commented that static HTML pages present a much smaller opportunity for malicious exploitation, and this triggered the memory I mentioned in the opening post of there being two ways to generate pages; one server-side and one client-side.

Perhaps a more time-efficient way to generate pages (without having to learn Perl) would be simply to save as much of the common HTML code as possible in a template in Dreamweaver (or similar program).
John Henderson is offline  
Unread 11th Jun 2009, 04:26 PM   #4
Warrior Member
 
Join Date: 2009
Location: Oregon USA
Posts: 13
Thanks: 6
Thanked 3 Times in 3 Posts
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

It might be good to use a program such as NVU, FrontPage or DreamWeaver that lets you build and publish HTML sites. Like you said you can use templates to define the look and feel of the overall site, and simply create pages that use the templates. Once the work is done you can publish the whole site in one shot using any of the above mentioned programs.
tonymanso is offline  
The Following User Says Thank You to tonymanso For This Useful Post:
Unread 11th Jun 2009, 11:44 PM   #5
Senior Warrior
 
yaji's Avatar
 
Join Date: 2007
Location: USA
Posts: 310
Thanks: 17
Thanked 13 Times in 11 Posts
Blog Entries: 2
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

Dynamic page is still the way to go, as your web site expands. because now is different from years ago, people wanted personalized info and they wanted to add their info, all dynamically.

To prevent attacks: add security check into your code; back up your site more frequently.

Thanks, Yaji

Hypnosis Weight Loss Fun Info about Hypnosis Weight Loss | Cheap Car Insurance
Cat Dandruff All about Cat Dandruff. A Must-Read for Cat Lovers
yaji is offline  
The Following User Says Thank You to yaji For This Useful Post:
Unread 12th Jun 2009, 03:08 AM   #6
Advanced Warrior
 
John Henderson's Avatar
 
Join Date: 2008
Location: West Sussex, UK
Posts: 556
Thanks: 251
Thanked 188 Times in 132 Posts
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

Originally Posted by tonymanso View Post

It might be good to use a program such as NVU, FrontPage or DreamWeaver that lets you build and publish HTML sites. Like you said you can use templates to define the look and feel of the overall site, and simply create pages that use the templates. Once the work is done you can publish the whole site in one shot using any of the above mentioned programs.
That sounds like a great plan, Tony!
John Henderson is offline  
Unread 12th Jun 2009, 03:13 AM   #7
Advanced Warrior
 
John Henderson's Avatar
 
Join Date: 2008
Location: West Sussex, UK
Posts: 556
Thanks: 251
Thanked 188 Times in 132 Posts
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

Originally Posted by yaji View Post

Dynamic page is still the way to go, as your web site expands. because now is different from years ago, people wanted personalized info and they wanted to add their info, all dynamically.

To prevent attacks: add security check into your code; back up your site more frequently.
You're right Yaji, when the time comes to allow users to alter pages, I'll have to employ PHP or something similar. In the meantime, I'll stick to static pages -- that will be one less thing for me to worry about while I'm "learning the ropes" of IM.
John Henderson is offline  
Unread 16th Jun 2009, 12:51 PM   #8
Gary
 
GB2008's Avatar
 
Join Date: 2009
Location: Dallas, TX
Posts: 135
Thanks: 13
Thanked 8 Times in 8 Posts
Blog Entries: 1
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

For my money - I would start learning PHP now. You're on a learning curve anyway, so why learn HTML and then learn PHP? You can still create static pages, but generated through PHP, and on the way you'll get a handle on creating functions and include files (to save a lot of repetitive typing). Then, when it's time to start being a little more creative with dynamic content, modifying your website won't require a complete re-write...

As far as having PHP websites "cracked" - just be smart about any information you gather in forms and any scripts receiving POST or GET variables (you'll learn about those as you go ) - if your script is not open to receiving any information from the viewer, then how can they hack your code? And as you start requesting information from your viewers, there are plenty of PHP samples out there to filter out bad inputs and protect you.

GB2008 is offline  
Unread 17th Jun 2009, 11:02 PM   #9
Advanced Warrior
War Room Member
 
Ken Durham's Avatar
 
Join Date: 2009
Location: Chesterton, IN
Posts: 936
Thanks: 128
Thanked 187 Times in 146 Posts
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

A lot depends on how large your site is going to be and what you do with it.
Implementing a shopping cart with static pages just won't happen.
If you have 100,000 pages, upkeep will overwhelm you plus it would take years to create all of the pages.

To battle both the hacking issues and to give an SEO friendlier site I am working on a system to make html pages from most of my dynamic pages.
If a page ever needs to be changed you update via the administrator that updates the pages content in the database and also rewrites that specific .html page with the new content.
This way the site is static in sorts but also has dynamic capabilities.

yes, I am....
Ken Durham is offline  
Unread 18th Jun 2009, 04:40 AM   #10
Website Designer
War Room Member
 
robdraw's Avatar
 
Join Date: 2008
Posts: 38
Thanks: 5
Thanked 2 Times in 1 Post
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

I agree with GB
I use all the time a half / half solution First I create the pages statically then cut and paste the divs into their own files and call them from the main file. This way when you change one div it changes site wide, also for example I may want to put certain elements on one page and not another, like a banner add in the left column. Using this method I just call that file. You dont have to know much PHP for that either. Just how to call an external file into the script which is done like so
Example
<!-- Start of Header -->
<?php include "includes/html/header/index_header.html";?>
<!-- End of Header -->
<!-- Start of Left box and nav menus -->
<?php include "includes/html/column/left_column.html";?>
<!-- End of Left box and nav menus -->
<!-- Start of Right box and affiliation menus -->
<?php include "includes/html/column/right_column.html";?>
<!-- End of Right box and affiliation menus -->
<!-- Start of main Contents -->
<?php include "includes/html/contents/main_contents.html";?>
<!-- End of main Contents -->
<!-- Start of Footer -->
<?php include "includes/html/footer/footer.html";?>
<!-- end of Footer -->

This is a bit time consuming to start but saves loads of time in the long run as you make a new page all you need to do is copy into it the files you want to use.
Also as you advance with PHP you can update easier with more dynamic functions.

The most amazing wealth generation Package ever is up till 31st December
http://tinyurl.com/xmasblowoutsale
robdraw is offline  
Unread 30th Jul 2009, 11:01 AM   #11
HyperActive Warrior
War Room Member
 
locpicker's Avatar
 
Join Date: 2009
Location: Nickelsville VA
Posts: 209
Thanks: 4
Thanked 19 Times in 18 Posts
Default
Re: Technology for generating webpages? (...but not dynamically)
Share on: 
fb share twitter share gplus share more share

Beware of sql injection when using php with mysql as well. You can lose control of your databases. I am just studying this myself so i do not have all information on this yet but from what I have been reading someone can do a lot of damage to your website and even hijack it.
locpicker is offline  
Closed Thread


Bookmarks

Tags
dynamically, generating, technology, webpages


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:21 AM.