Today, porting a program to a remote server has a number of unusual errors, no local errors, and a variety of problems after the server. The problem that you are experiencing for the first time is summarized later and will be updated continuously
1.
The PHP session variable is used to store information about user sessions, or to change settings for user sessions. The session variable holds information that is a single user and is available to all pages in the application.
Understanding: Session
when we develop the app interface, we often need to process HTML Rich text strings, with many useful functions in PHP for us to use
functions you need to use:Str_replace () string replaces Html_entity_decode () HTML string to HTML tag strip_tags ()
1. JavaScript function Type:(a), the first kindfunction Test (param) { return 111;}(ii), the second type ofvar function (param) { return 222;}Note: Inside the applet is param:function () {}This is actually the same wording!(iii), the third
A friend wants to build a website in PHP. The website address is www.hefeipet.com.
Select a CMS and which one? Is a problem.
At present, there are too many php cms files on the internet, domestic and foreign.
To open source
I used to set the sender suffix. This migration server forgot to record it from the beginning.
1: first, modify/etc/hosts. It is said that Sendmail uses the local domain name set in hosts. The solution is as follows:
127.0.0.1 aizher.com
1. Introduction to PhP accelerator eaccelerator;
Eaccelerator is a free and open source PHP accelerator. It optimizes and dynamically caches content, improves the cache performance of PHP scripts, and enables PHP scripts to be compiled, the
As we all know, when register_globals = on in PHP. ini, various variables are injected with code, such as request variables from HTML forms. In addition, PHP does not require initialization before using variables. This may cause insecurity. If
When talking about web page encryption, you have to introduce the PHP encryption tool Zend encoder.
Why is Php encryption required?
Because PHP is a scripting language, the source code is easily exposed after the release. Especially when using a
1. Sax, that is, simpleAPIForSimple Application Interface of XML and XML
Specific steps: & #9312; create an XML Parser and use the xml_parser_create function. The parameter is encoded and the return value is the corresponding parser resource.
First, let's take a look at the code of the uploaded form:
Code:
Type = "hidden" name = "max_file_size" value = "2000000"> file: Here are a few things to pay attention to. First, read this sentence ,Here we adopt the POST method, and some browsers
We often optimize cache settings on the server, but we seldom pay attention to the client cache, accurate to the browser cache mechanism.
In fact, each browser has a cache policy, which temporarily caches each browsed file in a special folder. When
In addition to multiple processes, PHP can also support running in non-blocking mode, which is very powerful: d
This article is transferred from IBM developerworks, and I will try again later to create an original article :)
---------------------
1. Install libevent
Because the libevent class library is required for installing memcached, install libevent first.
1. Download
# Wget
Http://www.monkey.org /~ Provos/libevent-2.0.12-stable.tar.gz
2. Extract
# Tar xzfv
In the Linux environment, PHP compiles Parameter Parsing. If you need to resolve this issue, please transfer it. The parameters are described in great detail. Also, I posted an article on the website 5iphp for the first time. Please pay more
/**** By fallen moon shadow * Please mail me when you find errors!*/// Contains common database operations// Include 'db. Class. php ';// Contains the smarty database operation class library// Include "Smarty/libs/smarty. Class. php ";// Of course,
I haven't used PHP for a long time
Today I installed it.
Unable to load dynamic library 'C:/program files/PHP/EXT/php_mysql.dll
Cause: php_mysql.dll depends on libmysql. dll
Although this file exists in the PHP installation directory, and I also
PHP has many mechanisms and functions, which are actually magicians. If you repeat them to make good use of them, or even simple applications, they will have amazing results. Here is an ob_start () function.
The ob_start () function is used to open
Problem description: a PHP script testdb to connect to a remote database. php, run: http: // localhost/testdb in the browser. php, error: Can't connect to MySQL server on '10. 60.56.220 '(13), but run php testdb locally. php, but normally connected
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