Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Hosting and Servers
  4. Serving from an ADSL Server

Serving from an ADSL Server

Scheduled Pinned Locked Moved Hosting and Servers
c++databasejavascripthtmlsysadmin
5 Posts 2 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bram van Kampen
    wrote on last edited by
    #1

    Hello, We have a small business, a small chain of regional laundrettes. They all work with Software, written by myself in CPP/MFC which runs on XP on the counter and shop terminals. None of these terminals have anywhere ever been connected to the internet. The Next project is to set up a system of access via the internet, so that customers can see the status of their orders, but, more importantly, that management gains access to a long list of info about what happens in the shop. At first trials it shows that I need a different interface for mobile phones than for say LapTops. What must I do in say "index.html" to show the different pages dependent on the device. The Next step is, that all CGI/ISAPI requests be passed on to my local server. Need Software on both sides of the connection to achieve this.On the Client side I would prefer to use JavaScript. On my local server it will have to be for a CGI or ISAPI: C/CPP/MFC It will then be my task to write the software to produce a page on a customers phone or computer, from what the local db shows us. Happy to do that, provided whether I know if it is a phone or a Laptop. :)

    Bram van Kampen

    J 1 Reply Last reply
    0
    • B Bram van Kampen

      Hello, We have a small business, a small chain of regional laundrettes. They all work with Software, written by myself in CPP/MFC which runs on XP on the counter and shop terminals. None of these terminals have anywhere ever been connected to the internet. The Next project is to set up a system of access via the internet, so that customers can see the status of their orders, but, more importantly, that management gains access to a long list of info about what happens in the shop. At first trials it shows that I need a different interface for mobile phones than for say LapTops. What must I do in say "index.html" to show the different pages dependent on the device. The Next step is, that all CGI/ISAPI requests be passed on to my local server. Need Software on both sides of the connection to achieve this.On the Client side I would prefer to use JavaScript. On my local server it will have to be for a CGI or ISAPI: C/CPP/MFC It will then be my task to write the software to produce a page on a customers phone or computer, from what the local db shows us. Happy to do that, provided whether I know if it is a phone or a Laptop. :)

      Bram van Kampen

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      This is probably the wrong forum. Sounds like you need an Architecture/Design first. Laptop and phone are generally very different devices and attempting to shoehorn an app that is well fitted for a laptop to a phone using claimed generic solutions do not work well. On the other hand if your functionality fits well on a phone completely then making it work on a laptop is easier. Your 'server' will require a service application and that means it must run as a windows service. I think even XP allows the service to do nothing but run a batch file which makes that implementation easier but that doesn't give you much control. Otherwise you need to write an actual service. I suggest you become familiar with logging if you do not already use that. Not sure how you are going to run a javascript server on an XP box. I will note that Apache, older versions, ran on XP so you could run that as a server. Those older versions are not up to date and consequently could have security vulnerabilities. I doubt you will be able to run nodejs and I doubt IIS for that box ran javascript (not on the server.) It ran VB Script I believe but you would need to use javascript for phones/laptops which you could inject into the pages that your serve. But if I recall you had to inject it directly at least that was the only way I saw it done on XP. On XP, of course, the server will be restricted by the memory. You could use an html front end only if you restrict functionality in the front end. That should make things easier. As the service provider if you want to remotely manage the device while providing a different experience for your users you might want to plan that from the beginning. You will need to plan for authentication and authorization and how you remove access when an employee leaves. That is a process question and not a technology one.

      B 1 Reply Last reply
      0
      • J jschell

        This is probably the wrong forum. Sounds like you need an Architecture/Design first. Laptop and phone are generally very different devices and attempting to shoehorn an app that is well fitted for a laptop to a phone using claimed generic solutions do not work well. On the other hand if your functionality fits well on a phone completely then making it work on a laptop is easier. Your 'server' will require a service application and that means it must run as a windows service. I think even XP allows the service to do nothing but run a batch file which makes that implementation easier but that doesn't give you much control. Otherwise you need to write an actual service. I suggest you become familiar with logging if you do not already use that. Not sure how you are going to run a javascript server on an XP box. I will note that Apache, older versions, ran on XP so you could run that as a server. Those older versions are not up to date and consequently could have security vulnerabilities. I doubt you will be able to run nodejs and I doubt IIS for that box ran javascript (not on the server.) It ran VB Script I believe but you would need to use javascript for phones/laptops which you could inject into the pages that your serve. But if I recall you had to inject it directly at least that was the only way I saw it done on XP. On XP, of course, the server will be restricted by the memory. You could use an html front end only if you restrict functionality in the front end. That should make things easier. As the service provider if you want to remotely manage the device while providing a different experience for your users you might want to plan that from the beginning. You will need to plan for authentication and authorization and how you remove access when an employee leaves. That is a process question and not a technology one.

        B Offline
        B Offline
        Bram van Kampen
        wrote on last edited by
        #3

        Well, first of all, thanks for your response. If this is the incorrect forum, please advise me of the appropriate one if you know which that is. The question was heavily condensed, I am taking on something very big. I am not proposing to run a website on XP. Rather, we will have Win10 Gateway computers locally. These will receive requests via port 80, (the only port allowed by our ISP). This will result in a Proprietary database Queery on the XP Computer, returning a Proprietary result. The latter queery is resolved over the local (wired) network between the Win10 Internet Client, and the Local XP Database server. It is here, in the Internet Client where my ISAPI needs to know the nature of the device that sent the request, so that the ISAPI software can generate the HTML appropriate to the requesting device. (Which will be passed up the chain back top the original user). We have also a large number of static (html) pages, containing essentially Text. Any idea how to make these universal for Phone and Computer? Many Kind Regards :):)

        Bram van Kampen

        J 1 Reply Last reply
        0
        • B Bram van Kampen

          Well, first of all, thanks for your response. If this is the incorrect forum, please advise me of the appropriate one if you know which that is. The question was heavily condensed, I am taking on something very big. I am not proposing to run a website on XP. Rather, we will have Win10 Gateway computers locally. These will receive requests via port 80, (the only port allowed by our ISP). This will result in a Proprietary database Queery on the XP Computer, returning a Proprietary result. The latter queery is resolved over the local (wired) network between the Win10 Internet Client, and the Local XP Database server. It is here, in the Internet Client where my ISAPI needs to know the nature of the device that sent the request, so that the ISAPI software can generate the HTML appropriate to the requesting device. (Which will be passed up the chain back top the original user). We have also a large number of static (html) pages, containing essentially Text. Any idea how to make these universal for Phone and Computer? Many Kind Regards :):)

          Bram van Kampen

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          There is a architecture forum somewhere here. But you are asking about a big project and it will not cover that. Since you are not limited to XP you can look at either nodejs or IIS since both run javascript. You can buy books about both.

          Bram van Kampen wrote:

          We have also a large number of static (html) pages, containing essentially Text

          Reports on a phone still need to be viewable. So you are still going to need to design from that perspective.

          B 1 Reply Last reply
          0
          • J jschell

            There is a architecture forum somewhere here. But you are asking about a big project and it will not cover that. Since you are not limited to XP you can look at either nodejs or IIS since both run javascript. You can buy books about both.

            Bram van Kampen wrote:

            We have also a large number of static (html) pages, containing essentially Text

            Reports on a phone still need to be viewable. So you are still going to need to design from that perspective.

            B Offline
            B Offline
            Bram van Kampen
            wrote on last edited by
            #5

            Well, I have done big projects before. I wrote a suite of software for Laundrettes and dry cleaners, incorporating accounting systems etc. The next step is to get 'On Line' and provide our customers with details of their accounts, but, more importantly, to give in good time me and my partner access to the more intimate details of the business from a sunny beach in the bahama's. Once I Discover how to distinguish between the two (Mobile or Computer)at the server end, I can redirect to the appropriate web pages. We have only 20 static ones,Very infrequently updated. not a difficult task to do manually. We do not advertise tru this page, we merely use it as an interface for our clients, to discover the state of their order. :):)

            Bram van Kampen

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups