If your users can not find the page he wants, how to give him a friendly reply, and you know that this error has occurred, look at the following program, is used to customize the 404 error page and send notifications to the network management of
Nginx
is a lightweight
Web
Server
/
reverse proxy server and e-mail (
IMAP/POP3
) proxy server, and in a
Bsd-like
issued under the agreement. By the Russian program designer
Igor Sysoev
developed for Russian large-scale portals and search
Dynamic real-time publishing of news programs, you can automatically arrange the display order according to the release time. A news file consists of a text file stored in a specified directory, and when there is news, the program automatically
# sendmsg.php
Require "func.php";
if ($b 1) {
if (Is_user_exits ($fromname) and Check_user_password ($fromname, $password)) {
Sendmsg ();
echo "Success!"
}
?>
###############
# setup.php
# This is the initialization program, only after the
This is the online statistics section of my Multi-user statistics
Gb_temp table:
Temp1 User ID
TEMP2 Overview IP Address
Temp3 online//made a mark, because other functions also use this table
Temp4 Landing Time
$onlinetime the longest offline time
PHP as a server-side scripting language, like writing simple, or complex dynamic Web pages such a task, it is fully capable. But this is not always the case, sometimes in order to achieve a function, you have to rely on the operating system external
function: Upload photos, display the upload time, image name, image size, picture description.
Description: 1. Some page space may not support the temporary file operation after uploading, it can only be a different try.
2. The program can
UNTITLED
Include "connect.inc.php";
if ($subject) {
$query = "Select Name,email from User";
$res = mysql_query ($query);
$row = Mysql_fetch_array ($res);
while ($row) {
Mail ($row [' email '], $subject, $row [' name ']. ": N". $text. " N China
Because of the reasons for the work need to install a file exchange on the LAN thing, can also be made into a file to download the function block.
With the Php,mysql,apache is now the process of writing to paste out, because this reference to Oso
upload.php
This is the upload file interface, with any editor can be made to look good. It is important to note that the table
Enctype= "Multipart/form-data" section. This must not be wrong, or the server will not know you are uploading files.
The
1. If statement
An If statement is an important feature in most languages, and it executes program segments based on conditions. The IF statement in PHP is similar to C:
if (expr)
Statement
As discussed in the expression, expr is computed as its
In our site design process, often use multi-conditional query, the source of this article is a second-hand housing query example. In this case, we are going to be able to find the information that we need through a number of conditions, such as
PHP and COM
If you're an adventurer and you're running PHP on a CGI, ISAPI, or Apache version of the Windows system, you can also get the COM functionality of the system. Now, the work of explaining COM (the Component Object model of Microsoft) is
Class Management Section:
Home: superadmin.php
Include ("class/config.php");
if ($superadmin) {//If the administrator has logged in, password verification
if (! ( $supername = = $supervisor) | |! ($superpass = = $SUPERPSW)) {
echo "Password Error";
Three first page press release to make your update easier (ON)
--------each time in the first page to add a message, add two words, you have to upload the entire page, it is not worth! So like the blue wind this lazy like a once and for all, real
1. Log in to Sina Cloud, create apps, fill apps, and use SVN to manage your code.
2. Go to code management and get SVN repository information.
Clone the code on the SAE and customize the folder name. Execute commands under Phpstorm's
Let your PHP support GIF, PNG, JPEG
When RedHat6.2 is compiled and installed in PHP manual, it is found that only GIF images can be processed and JPEG images cannot be processed. Later know that PHP processing images, using the GD library, and the
Password query: class/querypsw.php
Ask for password
Include "config.php";
Ask the class registration question password
if ($class) {
$headers. = "content-type:text/html; Charset=gb2312n "; Mime type
$subject = "Ask the class
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service