1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ASP TO HTML Help?

Discussion in 'BlackHat Lounge' started by howard_hughes, Sep 1, 2010.

  1. howard_hughes

    howard_hughes Elite Member

    Joined:
    Jul 23, 2009
    Messages:
    5,048
    Likes Received:
    3,684
    Occupation:
    Just Another Digital Marketer!
    Location:
    "Insta Rank"
    Home Page:
    Hi Guys,

    Need some help on this one..

    I have hostgator linux hosting which wont allow asp pages.

    Now I've already paid for a year.

    The problem is.. There's a site that needs to be hosted on this hosting plan.. but its in ASP:(

    Is there a converted that can convert ASP to HTML?

    Or Is there any other solution except buying another hosting..??
     
  2. shin610

    shin610 Regular Member

    Joined:
    Jun 23, 2010
    Messages:
    224
    Likes Received:
    89
    You should better have it converted to php if you want to keep it dynamic.

    If you just want a static copy, then run in in a localhost iis and save it as html
    Posted via Mobile Device
     
  3. howard_hughes

    howard_hughes Elite Member

    Joined:
    Jul 23, 2009
    Messages:
    5,048
    Likes Received:
    3,684
    Occupation:
    Just Another Digital Marketer!
    Location:
    "Insta Rank"
    Home Page:
    I want to keep the design as it it coz its not really my site.
     
  4. shin610

    shin610 Regular Member

    Joined:
    Jun 23, 2010
    Messages:
    224
    Likes Received:
    89
    There are program such as webzip which can download an entire site.

    The question is: at the moment is the website running somewhere?
     
  5. howard_hughes

    howard_hughes Elite Member

    Joined:
    Jul 23, 2009
    Messages:
    5,048
    Likes Received:
    3,684
    Occupation:
    Just Another Digital Marketer!
    Location:
    "Insta Rank"
    Home Page:
    you got it wrong.

    What I meant to say is -

    Someone else owns the site. He gave me the pages to host his site on my hosting.

    Problem is - the pages are in .ASP but my hosting is linux hosting which doesnt support asp.
     
  6. shin610

    shin610 Regular Member

    Joined:
    Jun 23, 2010
    Messages:
    224
    Likes Received:
    89
    1. install IIS on your home pc
    2. copy the website in the localhost folder
    3. save the pages in html format (either with "save as.." or some batch tools)
     
  7. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    I'm afraid it's not that simple. If the pages are .asp and have actual ASP code in them, then merely changing the file extension won't be good enough. What will end up happening is that the ASP code itself will be displayed on the web page. If the site's functionality is to be maintained, then it will need to be properly converted to PHP. There's no "tool" to do this. What you need is a programmer who knows both ASP and PHP or a programmer who understands the functionality of the site and can simply reproduce it in his/her own style using PHP.
     
  8. shin610

    shin610 Regular Member

    Joined:
    Jun 23, 2010
    Messages:
    224
    Likes Received:
    89
    He said it will be fine for him just to have the html processed output, he doesn't care to have it re-written in php.

    So, if he has the ASP source files, all he has to do is run the website on a localhost supporting ASP (Microsoft IIS).
     
  9. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    260
    Where did he say this? It may have been implied in his first post based on his wanting to "convert" ASP to HTML, but the fact that he asked how that could be done demonstrates his lack of understanding of the differences between static and dynamic web pages. It sounds like the owner of the ASP site also shares this lack of understanding, else why would s/he even suggest hosting it on a Linux server?

    Furthermore, you made the first reply in this thread, where you offered two suggestions:

    It's clear from your reply that you did not know whether he wanted the site to be dynamic or static. So again, where did the OP say that he wants only the HTML and does not want the site's dynamic functionality to remain? Did you have some private communication with howard_hughes that is not visible here?

    The OP clearly stated that he "needs" to host the ASP site on his HG plan. If that's the case, then the pages will need to be re-coded as HTML or PHP. If he wants only the HTML and merely changes the file extensions from .asp to .html, then any ASP code in those pages will be displayed in plain text on the web pages and will appear as gibberish to the site's visitors. Also, any of the site's functionality obtained via ASP will be lost/broken.

    As for hosting the site on his home PC, that will undoubtedly be more trouble than it's worth. He won't be able to turn the computer off (well, he could, but obviously that would result in the site being down), and he'll need a static IP. There are also security risks involved with hosting a site on a home PC. Let's not forget performance, either: if the site gets a lot of traffic, that could slow the PC to a crawl and/or crash it. Last but not least, ISPs are typically not fond of people hosting websites on their computers.
     
  10. prototype1978

    prototype1978 Newbie

    Joined:
    Aug 8, 2010
    Messages:
    31
    Likes Received:
    4
    It depends on how many actual asp code is there in the files. asp codes usually are contained within the symbols <% %> .
    Does it use a database? If so it wont be so easy to convert it into html. If it doesn't, most probably an easy task