Python CGI programmingWeb browsing
To better understand how CGI works, we can click a link or URL on the webpage:'Print'
'Print ''print 'Hello Word! This is my first CGI program 'print ''print '"print" "print"
"Print" Hello % s "% (first_name,
With the rise of internet technology, web-based applications have become the mainstream in the management and interaction of embedded devices. This program structure is the B/S structure that everyone is very familiar, that is, running a web server
PHP operating mode has 5 minutes:1) CGI Universal Gateway Interface (Common Gateway Interface))2) fast-cgi resident (long-live) type CGI3) CLI command line run (Interface)4) ISAPI mode (used in Windows)5) Web module mode (module mode for Web server
Introduction to CGI/HTML Web access through the Boa Server in Embedded Linux:
Step 1: port the boa Program
1. Download Boa Source Code
2. Generate the MAKEFILE file
3. Modify the MAKEFILE file
4. Compile
Step 2: Configure Boa
Step 3: Boa execution
PHP Security-attacks and solutions that may occur during CGI installation. if you do not want to embed PHP into server software (such as Apache) as a module for installation, you can choose to install it in CGI mode. Or use PHP to encapsulate
Transplantation of Cgic library
Cgic is an open source standard C library that supports CGI development, and can be used for free, with only a public statement in the developed site and program documentation to show that the program uses the Cgic
If you do not want to embed PHP into the server-side software (such as Apache) as a module installation, you can choose to install in CGI mode. Or use PHP for different CGI wrappers to create a secure chroot and SETUID environment for your code.
CGI is an interface standard between an external application (CGI program) and a Web server, which is the process of passing information between a CGI program and a Web server. The CGI specification allows the Web server to execute external programs
My logic is to execute a shell script in the CGI that shows the WiFi data in the script-generated text in the browser. But the browser has been unable to display the normal, tangled for several days.
The shell script probably does this:
#! /bin/sh
Install win2K, IISIndexingService, FrontPage2000ServerExtensions, and InternetServiceManager (HTML). There are other installation methods. (According to the security principle, the minimum service + the minimum permission is the maximum security .)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.