A solution to incompatibility between PHP4 and PHP3: PHP4 is incompatible with PHP3, but this is mainly caused by PHP. ini in PHP4.
There are some differences in the settings. these changes mainly improve the efficiency of PHP4.
In the changes,
Imitating OSO forums (2) read. php (used to display related topics)
Problem
Subject: color = #993333>
Include "connect. inc. php ";$ Query = "select * from guestbook where id =". $
Basic operations of file systems
The code is as follows:
Error_reporting (2047 );/** Class I/O (snkedevil completed 03.25.04) (v1.0.0.0)** [Description]* This class is used to process the file system.** [Function]* *** List_dir ($ dir_path );*
Log on to login in php
Require "../include/DBClass. php ";
$ Username = $ _ POST ['username'];
$ Password = $ _ POST ['password'];
If (empty ($ username) | empty ($ password )){
Go_Msg ("Enter the user name and password! "," ../Default.html
Php code for a Chinese string truncation function in PHP:
--------------------------------------------------------------------------------
/**
* ** @ Author: Glad
* ** @ URL: http://www.cnpik.com/
* ** @ E_mail: lianxiwoo@sohu.com
* ** @ Use it as
The optimization of dedemsv3.1 HTML generation speed is due to version compatibility and other reasons. In fact, dedecms indexes are a bit messy. if the index is set appropriately, the generation speed of dedecmsHTML is affected, it is mainly used
[Php] a simple tutorial on my micro-Forum [completed] I have been working on ASP and recently started to learn PHP. The first work is this micro-Forum (also called the message book). although there is no technical content, it is difficult to get
Php injection code to facilitate the injection Test and save the following as Test. asp
The code is as follows:
$ Mysql_server_name = "localhost ";$ Mysql_username = "root ";$ Mysql_password = "password ";$ Mysql_database = "phpzr ";//?? Why ??$
This article mainly introduces a lottery program. The probability of winning the first prize is 0.12%, the probability of winning the second prize is 3%, the probability of winning the third prize is 12%, and the probability of winning other prizes
This article mainly introduces 10 small-known but very useful functions in PHP. For more information, see the rich built-in functions in PHP. many of them have been used, but there are still many functions that most of us are not familiar with, but
Recently, yii and yii have their own methods for uploading images. Simple code. The first view is test. php. The second part is controller: TestController. php.
1. test. php
The code is as follows:
'/Test/upload/' is changed to your
This article mainly introduces the limit method of the ThinkPHPCURD method. if you need it, you can refer to the limit method of the ThinkPHP CURD method, which is also one of the coherent operation methods of the model class, it is mainly used to
There are a lot of posts on the internet about ci and swfupload. However, they are not very complete. Therefore, I have summarized the advantages of these posts and sorted them out based on my actual experience, for more information, see codeigniter.
This article mainly introduces how Yii uses the CLinkPager paging method. if you need it, refer to this article to explain how to use the CLinkPager paging method in YII. Here we define pagination in the form of objects:
First, you can customize
This article mainly introduces four methods of ThinkPHP instantiation model, which has a wide range of practical values. if you need them, refer to the following four methods of ThinkPHP instantiation model, thinkPHP programming has very important
To Download php files, we need to use the header function to send the relevant information to the client browser, and then use the filesize function to read the file size and perform the download operation. let's take a look at the relevant examples.
This article describes in detail the php $ _ SESSION member logon instance, which has some reference value, if you are interested, you can refer to the php member login module, which is a simple module in website development. this example provides a
This article mainly introduces PHP + Ajax to implement the method of refreshing new pages, and analyzes in detail the specific steps and related skills of PHP and ajax to implement refreshing pages in the form of a complete example, the demo source
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