Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This may be a just a bit off subject, but really ... I'M DESPERATE!!!

I need to write Perl/CGI code on a laptop that is stand alone.
I have to use WIN200 and IIS5, because the work is for a project using SQL7.

Q: How do I get the server to display my pages using IE5?
It keeps telling me that the page is not available offline.

Here's a good sob story...

A contractor installed slylights in our home and scraped the texture off our cielings without testing it for asbestos, (10% found) so now I am out of my home and home office and working where ever I can find a quite place until the insurance stuff is resolved. Mostly offline.

Thanks,
Donzo

Replies are listed 'Best First'.
Re: Coding offline
by dragonchild (Archbishop) on Aug 03, 2001 at 21:34 UTC
    The short answer is you can't. Anything that is CGI is, by definition, a client-server application. Such a thing requires a network connection. If you're offline, you don't have a network connection.

    Now, what that means is that you cannot test it out. You can write anything you want into a text file, then test it when you're connected again.

    You also could download all the data and create the site on your laptop. You'd have to run some sort of webserver and use http://localhost/cgi-bin/my_cgi_script.pl as your address (or whatever the Win2k equivalent to that is). However, unless you feel comfortable handling all the administrative details, I'd suggest taking a quiet vacation.

    Sorry to hear about all that stuff, but ... yeah.

    ------
    /me wants to be the brightest bulb in the chandelier!

Re: Coding offline
by cLive ;-) (Prior) on Aug 03, 2001 at 21:55 UTC
    Get online, temporarily, and:
    • download Perl from ActiveState
    • download a personal web server - look here, for example.

    Once installed, you should be able to run scripts on the address http://localhost (read docs for particular server).

    Let's assume you can also get SQL7 installed on the laptop too, and off you go...

    HTH

    cLive ;-)

    PS - if you get stuck, repost and we'll see if we can advise (but drop the sob story, please! ;-)

      Yep, I've got all that, the only difference is PWS instead of IIS that I have now.

      I've got a copy right here.
      SQL7 in up and running.

      Thanks,
      Donzo

      PS - sob stories that bad huh? It is true though.
      Good thing I didn't post a link to the pics of the three kids! ;>)

        Hi, In order to test 'your' CGI Applications..
        You need
        1. SQL Server Running 
        2. IIS Running
        3. Should know How to serve HTML pages with IIS
        4. Should know how to serve CGI Pages with IIS
        5. Should know the database connection with your CGI script
        6. How to see the  served page ie.. http://localhost
        
        and you should have no problem..if no network connections are involved.
Re: Coding offline
by tachyon (Chancellor) on Aug 03, 2001 at 22:11 UTC

    You can test and run CGI scripts in an IDE like Perlbuilder2 You can get a free 14 day demo by following the link. I like this program but it is an (expensive) commercial app so you would have to pay if you want to use it for more than the 14 day trial. Should fix your problem in the short term anyway.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      If this is ever seen by anyone I thought I'd share the answer I found and offer my thanks.

      A: Microsoft loopback adapter. Do a manual device add. Configure it as a LAN and your down the road.

      thanks for trying. It was off subject, but I was really needing help.

      Donzo

Re: Coding offline
by Anonymous Monk on Aug 03, 2001 at 21:38 UTC
    From Donzo, (re:the 'Anonymous Monk' thing: sorry I forgot to log in) To be clear, I am running IIS5 and I can't get the pages to work.

    Thanks,
    Donzo