ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.