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 04-26-2012, 05:33 PM   #1
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Open Source Web Interface?


I want to create a CGI/PHP interface for a program I'm working on, but really don't know where to begin as I have never worked with it before. I'm hoping there is an existing open source framework, or at least some good examples.

Essentially, I am looking to create something very similar to the interface that is common on any standard wireless router. It will have a few tabs, be able to load/parse data from text files stored on the system, be able to run shell commands on the local device, etc.

I've found LuCI, which is precisely what I'm looking for...except it is intended for embedded devices and uses Lua.

I'm looking for something that could be dropped into any modern HTTP server (Lighttpd, Apache), and just work without the user having to install anything unusual.

Any ideas?
 
Old 04-28-2012, 10:48 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321
I don't understand the question. "How can I create a PHP/Javascript/HTML website that looks like a wireless routers and that doesn't require third party PHP libraries to be installed?"

Quote:
It will have a few tabs
Instructions for doing tabs in CSS are everywhere.

Quote:
be able to load/parse data from text files stored on the system
You mean it will have forms with <input type="upload"> buttons? And file upload handlers on the backend? Isn't this covered by the official PHP docs?

Have fun writing the parsers in PHP.

Quote:
be able to run shell commands on the local device, etc.
That will have to be done server-side. The server will provide a URL that will execute the shell commands when POSTed to. The client-side code (which can just be a POST form) can then POST to that URL. You don't need to use CGI for this.

Last edited by dugan; 04-28-2012 at 11:18 AM.
 
Old 04-29-2012, 05:19 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I'm not sure how I can word the question any better.

Log into any home router, and look at the interface. I want to do that, but without having to actually write it all from scratch.

The only project I have been able to find so far is actually targeted for routers and other embedded devices, and relies on things like haserl. I'm not actually going to run this on an embedded device, so I am looking for something that doesn't require that.
 
Old 04-29-2012, 05:24 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321
You're going to have to write it from scratch.
 
Old 04-29-2012, 05:47 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It seems blatantly impossible that nobody has ever published a framework or template for developing a web-based software user interface, and every time anyone has ever wanted to do one they started with a completely blank slate. I can find thousands and thousands of templates for web sites, but nobody has ever done even one for a UI?

I guess I will just keep looking.
 
Old 04-29-2012, 06:26 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321
Quote:
Originally Posted by MS3FGX View Post
It seems blatantly impossible that nobody has ever published a framework or template for developing a web-based software user interface,
A framework for developing one is quite different from a prebuilt one. There are plenty of frameworks for developing them, one of the newest and most buzz-worthy of which is the Twitter Bootstrap.

If I were to do this, my first choice for a technology stack would probably be Twitter Boostrap and meteor.js. Meteor doesn't fit your requirement of not requiring any dependencies though.

Last edited by dugan; 04-29-2012 at 06:44 PM.
 
  


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
CUPS web interface doesn't open ? tuxuser19 Ubuntu 8 05-16-2014 09:04 PM
Open source equivalent to Citrix web interface / Xenapp / whatever rosv Linux - Software 6 01-26-2014 01:09 AM
unable to open web interface in smoothwall 3 arulsenthil13 Linux - Newbie 1 02-10-2011 08:24 AM
LXer: The Great Open Source Netbook Interface Race LXer Syndicated Linux News 0 01-06-2010 04:30 AM
LXer: Sun To Open Source Java System Web Server and Web Proxy Technologies LXer Syndicated Linux News 0 08-03-2008 07:50 PM

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

All times are GMT -5. The time now is 10:50 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