Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 06-10-2009, 10:39 AM   #1
Advanced Warrior
 
John Henderson's Avatar
 
Join Date: Oct 2008
Location: West Sussex, UK
Posts: 601
Thanks: 264
Thanked 189 Times in 134 Posts
Default Technology for generating webpages? (...but not dynamically)

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   Reply With Quote
Old 06-10-2009, 09:11 PM   #2
Forex Millionaire Maker
 
Join Date: Jun 2009
Location: Oregon USA
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Technology for generating webpages? (...but not dynamically)

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   Reply With Quote
Old 06-11-2009, 06:04 AM   #3
Advanced Warrior
 
John Henderson's Avatar
 
Join Date: Oct 2008
Location: West Sussex, UK
Posts: 601
Thanks: 264
Thanked 189 Times in 134 Posts
Default Re: Technology for generating webpages? (...but not dynamically)

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 ).

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   Reply With Quote
Old 06-11-2009, 05:26 PM   #4
Forex Millionaire Maker
 
Join Date: Jun 2009
Location: Oregon USA
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Technology for generating webpages? (...but not dynamically)

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   Reply With Quote
Old 06-12-2009, 12:44 AM   #5
Senior Warrior
 
yaji's Avatar
 
Join Date: Oct 2007
Location: USA
Posts: 480
Blog Entries: 2
Thanks: 9
Thanked 4 Times in 4 Posts
Default Re: Technology for generating webpages? (...but not dynamically)

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 (Offer to warriors only: Hosting at BEST companies, FREE for a year or 1 cent first month. PM me if interested. 30 or 45 days money back guarantee.)
Hypnosis Weight Loss Fun Info about Hypnosis Weight Loss | Cheap Car Insurance
Visit Mesothelioma: New Mesothelioma Info Disclosed
Cat Dandruff All about Cat Dandruff. A Must-Read for Cat Lovers
yaji is offline   Reply With Quote
Old 06-12-2009, 04:08 AM   #6
Advanced Warrior
 
John Henderson's Avatar
 
Join Date: Oct 2008
Location: West Sussex, UK
Posts: 601
Thanks: 264
Thanked 189 Times in 134 Posts
Default Re: Technology for generating webpages? (...but not dynamically)

Quote:
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   Reply With Quote
Old 06-12-2009, 04:13 AM   #7
Advanced Warrior
 
John Henderson's Avatar
 
Join Date: Oct 2008
Location: West Sussex, UK
Posts: 601
Thanks: 264
Thanked 189 Times in 134 Posts
Default Re: Technology for generating webpages? (...but not dynamically)

Quote:
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   Reply With Quote
Old 06-16-2009, 01:51 PM   #8
Gary
 
GB2008's Avatar
 
Join Date: Jan 2009
Location: Dallas, TX
Posts: 135
Blog Entries: 1
Thanks: 13
Thanked 9 Times in 9 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to GB2008
Default Re: Technology for generating webpages? (...but not dynamically)

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   Reply With Quote
Old 06-18-2009, 12:02 AM   #9
Advanced Warrior
War Room Member
 
Ken Durham's Avatar
 
Join Date: Jun 2009
Location: Chesterton, IN
Posts: 923
Thanks: 129
Thanked 193 Times in 153 Posts
Default Re: Technology for generating webpages? (...but not dynamically)

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.

Webmaster Services
List Your Wealth Building Systems and Services for Free

Insanity is doing the same thing over and over and expecting a different result ~ Einstein
Insanity is doing the same thing over and over and never getting the same results ~ Ken

Ken Durham is offline   Reply With Quote
Old 06-18-2009, 05:40 AM   #10
Website Designer
War Room Member
 
robdraw's Avatar
 
Join Date: Jul 2008
Posts: 38
Thanks: 5
Thanked 2 Times in 1 Post
Contact Info
Send a message via Skype™ to robdraw
Default Re: Technology for generating webpages? (...but not dynamically)

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   Reply With Quote
Old 07-30-2009, 12:01 PM   #11
HyperActive Warrior
War Room Member
 
locpicker's Avatar
 
Join Date: Jul 2009
Location: Nickelsville VA
Posts: 157
Thanks: 2
Thanked 12 Times in 12 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile 
Default Re: Technology for generating webpages? (...but not dynamically)

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   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
dynamically, generating, technology, webpages

Thread Tools

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 07:46 AM.