LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-10-2007, 08:42 PM   #1
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
embedded web programs??


Hello,

So I have really no idea how to do this and my knowledge of web programming is fairly small unforunatly. I have an application that I would like to run over the web. When it finishes I would like the user to be able to download the output file which is created.

Also there's one more thing I would like it to do if possible. That is pop-up another window showing an image that the program creates. The image is made in a new window anyway on the program, an X11 window.

Any help would be great thanks.

PB
 
Old 02-10-2007, 10:14 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
That depends a lot on how the application works.

If there needs to be interaction with the application as it is running then a Java applet is probably the best approach.

If all the parameters can be provided before the application runs then the application can be written in any language and a web language like php can be used to start the application pass in the parameters, gather the output and return it to the user.

If the application will use a lot of resources when running then you will want to be very careful how you allow users to trigger it and how you actually link it into the web architecture.
 
Old 02-11-2007, 03:04 PM   #3
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Thanks graemef.

I'll probably want both at the end of the day. But I'm getting started on the non-interactive one first. I don't know javascript, which leads me to a question, any good links to get started?

One more question for you, you said
Quote:
be very careful how you allow users to trigger it and how you actually link it into the web architecture.
Can you explain a bit more what you mean?

Cheers,
 
Old 02-11-2007, 09:23 PM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
If anyone can trigger the application, and the application is resource hungry, then it would be very easy for me (a nasty person if you got to know me) to lock up your system. I just write a script that calls you application thousands of times in a loop so that it will get to a point that your server is unable to do anything other than run the application.
 
Old 02-12-2007, 11:31 AM   #5
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Good point.I wasn't sure what you mean, if you were thinking malicious or if you were thinking problems with the serve.

Thanks
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Implementing an embedded Linux web app framework LXer Syndicated Linux News 0 08-06-2006 02:21 AM
Web Editing Programs dudeman41465 Linux - Software 4 06-30-2005 03:14 PM
web promotion programs barrythai Linux - Software 0 06-15-2005 02:55 AM
Best web editors and graphic programs bluefusionx Linux - Software 5 11-02-2004 01:24 PM
Web site promotion programs. barrys Linux - Software 0 07-27-2004 12:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration