Roughly calculate the online time. bug: the ip address is the same
/*
Create table 'DB _ online '(
'IP' char (20) default NULL,
'Time' char (20) not null default '',
'Name' char (200) not null default 'tourists'
) TYPE = MyISAM
*/
//
How to attack Common Vulnerabilities in PHP programs (I) the reason for translating this article is that the current articles on CGI Security take Perl as an example, and specifically introduce ASP, few articles about PHP or JSP security. The Shaun
Basic php knowledge: basic function knowledge. all languages are available. So here we only focus on:
1> definition: php does not need to define the return value type.
2> the function name is case-sensitive. However, when calling a function, it
Php Basics: Class and object (3) constructor and Destructor
PHP 5 allows developers to define a method in a class as a constructor. Classes with constructors call this method each time an object is created, so it is very suitable for initialization
PHP uses the ADODB database to implement the original correction version of the Access database. please read the previous article first.
Http://adodb.sourceforge.net/#download
Download this file locally
Decompress this file and put it in the adodb
Recommended common editors in php
In addition to calling functions at the front end, eWebEditor also has strong background management functions. it can effectively customize various functions of the editor as follows:Excel worksheet import
The Smarty technology is the essence of PHP. as the PHP version gradually increases, many methods may be too outdated, next I will talk about how to configure the latest PHP5.1.1 version.
The following is a step by step. Please note:
1. download
Two methods for PHP to support page rollback [go] During development, the information entered when the page is returned due to a form error is often lost. to support page rollback, you can achieve this in two ways.
First, use the Header method to
Hide the copyright method under the X-Space personal Space to hide the title of The X-Space personal Space. the file cannot be deleted because it is ZEND. We do not recommend that you delete it.
1. how to hide the copyright under the X-Space
The collection of php compilation of large-scale website problem set PHP has been quickly promoted for its ease of use, but the ease of use does not mean that it can be used well. In fact, many programmers use it to easily establish a WEB
Php desktop center (3) modify the database. after you enter the id, the program will list the data of that id. Then you can modify the file and write it into it.
Database data update
If (isset ($ id ))
{
If (! Mysql_connect ("localhost",
CMS (Content Management System) in PHP is called the whole site System and article System in Chinese. about 2004 ago, if you want to manage website Content, it is basically manually maintained, however, the ever-changing information flow, but
A php Forum program that imitates oso (one) I often use oso forums. I personally feel very good. so I developed a program on the oso interface to share it with you.
The program consists of three parts: Display the topic information, display the
Teach you how to use the graphic tutorials collected by DedeCms. this is the target website we want to collect.
-------------------------------------------------------------
Let's see how paging is set.
----------------------------------------
Clientdoesnotsuppauthenticationprotocol occurs during connection with MySQL or a later version. Solution: Client does not support authentication protocol occurs during connection with MySQL or a later version. Solution
Shell> mysql
Client does not
In Linux, when programming in MYSQL, the solution of inserting Chinese garbled characters is garbled. I tried many methods. for example, I first set the setting in vim to: set fileencoding = UTF-8 does not work, later, I thought it was right. it had
PHP operation file method Q & a php operation file Q &
Preface:
PHP supports operations on various types of databases, and also provides rich operation methods for file operations, many of my friends are still operating on files, but sometimes there
Dedecms prevents FCK from formatting your code in disorder. by default, FCK enables the XHTML formatting option. Therefore, some people use visual editing to modify the complete HTML file, the Head part may be changed to a different shape. the
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