Functional description of all functions: lib_time.php Gmtime () P: Get the time stamp of the current GMT/$0 Server_timezone () P: Get the server's time zone/$0 Local_mktime ($hour = null, $minute = NULL, $second = NULL, $month = NULL, $day = NULL,
Development habits and PHP code 1, accurate understanding of various concepts. There are new things going on all the time, and words too literally and little knowledge are bad for the development work.//I've come across people who understand that
Some can query IP location, identity card location, mobile phone ownership of the interface.
Because some interfaces need to provide routing, the following code if JS can not directly read, you can return the results through PHP, and then through JS
PHP with more and more! Security issues are even more important! Here to explain if security configuration php.ini Security Configuration I (1) Open PHP Safe mode PHP's Safe mode is a very important embedded security mechanism, can control
PHP Basics Tutorial: Files uploaded in binary form and put into database
conn.php:
index.php:
uploading Files to server
index_ok.php:
";
} Else{echo "File upload failure!!";
echo "";}
We want to count the number of people who visit the site over a period of time, there are a variety of solutions, you can use cookie,session combined with text or database to record the number of user visits. This article will use PHP, combined with
mysql| Shopping Cart
if (! $session &&! $scid) {
$session = MD5 (Uniqid (rand ());
Setcookie ("SCID", "$session", Time () + 14400);
}/* Last number are expiration time in seconds, 14400 sec = 4 hrs * *
Class Cart {
function Check_item ($table,
mysql| Pagination |
/* Store the table structure of the posts------------------------------------------------------
CREATE TABLE Bbsrow (
bbsrow_id Int (6) NOT NULL auto_increment,//posting ID number
Bbsrow_auth varchar NOT NULL,//Post
Class Cdbabstract {
var $_db_linkid = 0;
var $_db_qresult = 0;
var $RowData = array ();
var $NextRowNumber = 0;
var $RowCount = 0;
function Cdbabstract () {
Die ("Cdbabstract:do not create instances of cdbabstract! Use a subclass. ");
}
function
session| page This script is used to enter the password for the user and to determine if the password is correct.
If correct, go to the Welcome page.
if ($login) {
Include (".. /include/config.inc.php3 ");
Session_Start ();
$right _enter= ' 0
mysql| Counter | graphic /***
Hit_count table only one field Hit_count
Page_visit_record table is used to control an IP one day and only produce a counter beat
CREATE TABLE Page_visit_record (
Visit_time datetime DEFAULT ' 0000-00-00 00:00:00 ' not
excel| data
. NET encapsulates Excel-related classes, the following are events triggered by clicking the Excel Output button in the program's winning toolbar, provided that you have Excel installed in your system.Here is my code, with a note stating:
Paging | show
Messagelist.do-> messagelist.jsp
Use messagelist.do?start=0 to display the first page
Parameter description:
List: Information listing
Start: Starting position
Page: The number of information displayed per page
Previous: Up page start
Program | performance | optimization
This article according to the Hibernate help document, some network books and the project experience reorganization, only provides the main point and the idea, the concrete method may leave a message to discuss,
As a result of the company's project needs, I have hibernate on a number of related query research, now summarized as follows, for friends reference.
Introduction to Hibernate Hibernate is an JDO tool. It works by creating a mapping relationship
js| Design | network
the network teaching platform is a network teaching system for teachers and students, with the development of Jsp+xml+sql server, the system structure and function of the platform are analyzed in detail, and the key
apache| Server | performance | optimization
testing and improving performance
The Apache server has been designed to be as fast as possible, and even if you use a machine that is not configured with a high configuration, you don't need to make too
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