Differences between _ FILE _ and $ _ SERVER [SCRIPT_FILENAME]
Echo $ _ SERVER ['script _ filename'].'';
Echo _ FILE __;
Run a. php to obtain:
Require 'a. php ';
Learn CGI scripts (scripts)CGI meaning is Common Gateway Interface, a browser-based input, a program method that runs on a Web server. CGI scripts enable your browser to interact with the user, to find a noun in a database, to provide comments you
Background
A colleague raised the question of how to get the current file name in a JavaScript file that was dynamically inserted in the browser.
In addition to the server output a filename, there should be only the following three ways to get it
Script Programming Knowledge Points:* FILE=/USR/LOCAL/SRCtest=${file#*/}: $TEST result is usr/local/src, with/as keyword, delete all strings from the left number first/and key/left.dest=${file##*/}: $DEST result is src, with/keyword, delete the last
In-depth exploration of Windows Script Technology
ArticleAuthor: zzzevazzz
To enableCodeClean and use the PHP tag of the forum for processing. (No vbs label, code label is not easy to use, depressing)If you reprint this article, make
This article mainly introduces an example of a simple Web server implemented by Shell scripts. the Web server implemented in this article is very simple and practical and can be used when you do not want to install nginx, apache, and other large WEB
The popularity of the internet has made our world a better place, but it has also made people unhappy. When you receive a message with the theme "I Love You", when you click on an attachment with a mouse that is almost shaking with excitement, when
In my daily work, I often encounter the problem of merging SQL scripts. For example, there are many SQL script files that need to be generated in a certain order into a combined SQL script file, and then published to the user's SQLServer server.
In
The command line has a fairly high reputation for Linux users. Unlike other operating systems, the command line is a scary proposition, but for the experienced Daniel in the Linux community, the command line is the most recommended and encouraged to
Suppose you want to test the web and some CGI, and you don't want to trouble Apache to install the full package. This quick shell script may be just the thing you need.
In short, a Web server is an application that sends a local text file to a
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.