Solved

how the answers entered in ee is b'com html file!

Posted on 2004-10-24
221 Views
Last Modified: 2010-04-17
Just in a curiosity, I want to know how the expert-exchange website is displaying all the answers given by the experts as a html file. Is that any program is writing the answers as a separate html file? or the site is re-writing the url (like mod_rewrite). I want to know exactly what is happening. And, if the html files are generated by a program for each and every answer, what is the usage of this type of technique?

Thanks in advance,
0
Question by:vadivhere
    5 Comments
     
    LVL 10

    Expert Comment

    by:NetworkArchitek
    Hi vadivhere,
    This site is using a dynamic html system. You find this in many places like online forums and things of that nature. You should look up "dhtml," "xml," "php," and probably just generally "Dynamic HTML."  You are correct in that the page is generated via interaction with a database and other dynamic functions. For the most part "static" html files are not very much to be found on this, and many other, sites. You use this technique so that you can create html pages "on the fly," otherwise ever change in a page would have to essentially be manually created or using some kind of cumbersome technique. Dynamic HTML creation is very powerful! Hope this helps.

    Cheers!
    0
     
    LVL 5

    Expert Comment

    by:dynamicrevolutions
    http://www.experts-exchange.com/Programming/Q_21180891.html


    Q_21180891.html could be a path info, instead of a real file.im not saying EE is using this technique. but if you ask me to do it, i could use path info

    or maybe "Programming/Q_21180891.html" is the whole path info
    0
     
    LVL 1

    Expert Comment

    by:_yossa_
    EE uses dynamic page generation.
    Every page is probably processed by one script/application - whatever you call it. This script can check its URL and get a question ID from that url. And when you have a question ID you can create an output page.

    The .html extension of each page means nothing, because web server can be configured to serve PHP/ASP/JSP files with .html extension.
    0
     
    LVL 5

    Author Comment

    by:vadivhere
    But, when i searched some terms in google or any other search engine, it displays EE's page having HTML extension, that means the page is static and present in the webserver and it is crawled by the crawlers. If it is a dynamic page, definetly the search engine will left it out.

    I think, as NetworkArchitect told it is a "Dynamic Page Generation" by a ASP/PHP program and it is kept in the public accessable path and it is accessed by the search engines.

    If this is case, assume how much questions and answers are posted in this website and think the volume of the website.

    I need an exact answer of the usage of writing a dynamically entered content by the user into a static page is really usefull to let the search engine access the page? and Is that this the way EE is working?

    0
     
    LVL 1

    Accepted Solution

    by:
    re: vadivhere

    No, it doesn't need to be static page. Web crawlers cache all the pages which looks like static page, but they can also be dynamic pages.

    You can create a site where page names look like:
    www.server.com/directory/page__param1--value1,param2--value2
    www.server.com/directory/page__param1--value2,param2--value3

    Your local Apache can rewrite all the URLs and change:
    __  to   ?
    --   to   =
    ,     to &

    After rewriting your application sees the pages with normal parameters:
    www.server.com/directory/page?param1=value1&param2=value2
    www.server.com/directory/page?param1=value2&param2=value3

    Gor google that are separate pages and you will have a higher rank.


    EE can work the same way:
    http://www.experts-exchange.com/Programming/Q_21180891.html#12399113

    can be rewrited internally to i.e:
    http://www.experts-exchange.com/generate_page?channel=Programming&question_id=21180891

    Your idea of generating pages into disk and serving them as static files is also good, but it can be achieved in different way - by using caching proxies. (Apache with mod_cache, or Squid).
    When you use proxies you can set time after which the page expires and can be generated again.

    So, your problem is not trival and choosing a good solution depends on type of your application.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    This article is filled with multiple code samples and explanations for mathematical calculations. They are as follows: 1. General tips 2. Quadratic formula 3. Object collision 4. Projectile path General Tips       Here are some of my tips f…
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now