Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 12th, 2006, 12:57 AM
engcomp engcomp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 7 engcomp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 42 m 39 sec
Reputation Power: 0
Run .exe from server?

I have a little program that sells in small numbers by direct mail for AU$47. The program is not Australia-specific, so it might have a world market via the web.

The program ships with a CONTROL.DAT file, which contains licensing information. I generate this file manually by running an in-house .exe program.

If I do offer the program on the web, I propose to use PayPal as a facilitator. Upon receipt of payment by PayPal, the purchaser is sent to a web page I nominate.

On this page, the following should happen:
1. the server runs the .exe file that generates CONTROL.DAT, using information gathered on the form that sends the prospect to PayPal; and
2. the program and control file are zipped and emailed to the purchaser.

Is this feasible? What would I need to do to make it happen?

This is a first posting, thank you in advance for your help.

Reply With Quote
  #2  
Old September 12th, 2006, 02:17 AM
arunsudhir arunsudhir is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 4 arunsudhir User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 33 sec
Reputation Power: 0
IS your platform windows?? can you include more details?? Anyway.. you can run it from a cgi script. Yours will be similar o the scenario decades back when people used to run C executables from cgi programs. Direct the webpage to a cgi script and call the exe from the cgi... But this is highly not recommended... If you can, port everything to a j2ee environment .. which will be efficientt, scalable and faster...

Reply With Quote
  #3  
Old September 12th, 2006, 02:17 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 997 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 26 m 27 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
You could alter the exe file slightly, and run it in the CGI-BIN of the webserver.

You'd then have to add a lot of HTML code to the exe though.

Easier way is probably to make the registration page in PHP, and have it call the .exe using the system() function.
__________________
This is my code. Is it not nifty?

"The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools."
---Douglas Adams


Join the Itsacon fanclub!    
Zero Tolerance: Spammers banned so far: 280

Reply With Quote
  #4  
Old September 12th, 2006, 04:55 AM
engcomp engcomp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 7 engcomp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 42 m 39 sec
Reputation Power: 0
Thank you very much.
Yes, the program (controlgen.exe) is a Windows program.
I shall try to run it from a CGI script, like "decades back".
Amazing how people have forgotten more than I'll ever learn.

Reply With Quote
  #5  
Old September 12th, 2006, 04:57 AM
engcomp engcomp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 7 engcomp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 42 m 39 sec
Reputation Power: 0
However, my web host runs the server with Unix.
Surely, that will make a difference?

Reply With Quote
  #6  
Old September 12th, 2006, 05:41 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 997 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 26 m 27 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
yes, it will make a difference.
You'll have to recompile it for linux/unix.

But you'll have to do that anyway if you plan to modify it to be a cgi-bin executable.

Reply With Quote
  #7  
Old September 13th, 2006, 02:03 AM
engcomp engcomp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 7 engcomp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 42 m 39 sec
Reputation Power: 0
Thank you, all, for your interest in this topic.

It seems that the best course might be to write the whole routine in PHP. However, wouldn’t that make the licensing code visible to the whole world? Also, I think the task might be over my head because I have never done PHP. Would someone be interested in helping for a fee?

Reply With Quote
  #8  
Old September 13th, 2006, 02:29 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 997 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 26 m 27 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
No, it won't make the code visible to the world. Only to people with access to your server directories. And if your server is well configured, that should be only you and your system administrator. From the web, ypu can only view the output of the script, not the script itself, the parser makes sure of that.

As for converting it, I might be interested. I'll send you a PM.

Reply With Quote
  #9  
Old September 13th, 2006, 06:06 AM
engcomp engcomp is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 7 engcomp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 42 m 39 sec
Reputation Power: 0
Quote:
Originally Posted by Itsacon
No, it won't make the code visible to the world. Only to people with access to your server directories. And if your server is well configured, that should be only you and your system administrator. From the web, ypu can only view the output of the script, not the script itself, the parser makes sure of that.

As for converting it, I might be interested. I'll send you a PM.


Dear “itsacon”
Thank you for your interest.
You are familiar with PayPal? For one of my other programs, purchasers pay at PayPal and then get redirected to a download site. The actual licensing happens when the purchaser emails to me an ID number and I return a licence number.
For the little program in question, this process is far too cumbersome. Therefore, I have an automated process in mind, which involves the following steps:
1. after reading the sales copy, the reader hopefully goes to the order page;
2. there the prospect enters three pieces of information – (i) a program name; (ii) a user name; and (iii) an email address;
3. having entered the information, the prospect clicks a ‘Buy Now’ button and is taken to PayPal;
4. when PayPal has received a payment, the purchaser is redirected to my ‘Thank You’ web page;
5. the ‘Thank You’ page must result in an email to the purchaser with instructions what to do with the attached .ZIP file.
The PHP (or other) code of the ‘Thank You’ page must achieve the following:
1. it must collect the three pieces of information entered on the order page;
2. it must process this information into a text file called ‘CONTROL.DAT’, which contains the program name and a scrambled version of the user name (the scrambling routine comprises 91 lines of SELECT CASE statements);
3. it must generate a .ZIP file comprising the PROGRAM.EXE file plus CONTROL.DAT plus possible other files to be determined (like readme.txt, program.hlp, etc);
4. it must send the generated .ZIP file to the given email address.
Hopefully, this is a reasonable description of the task? Please let me know what you think? Including your thoughts about the fee?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Run .exe from server?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT