Because the company needs, the project behind us will be developed using the PHP ctemplate engine. Here, I am just the one months I learned, and my understanding of writing. If there is an incorrect, or inaccurate description of the place, I hope
PHP Version: 5.2.9
MySQL version: 5.1.34,installer version
For example, my PHP installation path is E:\php5.2.9
Apache Configuration:
, new addition: index.php
In
, new add: AddType application/x-httpd-php. php
Search
This will collect some of the PHP functions I used in my work. Have their own written, there will be online collection. This article is constantly updated in
1. Print array functions
function _print ($array){Echo ("
" ); Print_r
The PHP code that executes on the server is typically used to respond to HTTP requests from the client. One of the simplest PHP files is this:
According to the HTTP standard, an HTTP message is generally divided into two parts: the HTTP
This article mainly explains the configuration of Xdebug in PHP 5.3 under Windows:
My configuration is as follows:
[Xdebug]Zend_extension = "E:/program Files/php/php_xdebug-2.1.0rc1-5.3-vc6.dll"; Note that the full path is used
This address is Dnspod's official API list.
http://support.dnspod.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=43
There are so few connections:
Https://www.dnspod.com/API/Info.Version get the version number of the API
Https://www.
AJAX Polls
In this AJAX example, we will demonstrate a voting program that allows the Web page to get results without reloading.
So far, do you like PHP and Ajxa? Yes:No:
This example consists of four elements:HTML Form JavaScript PHP page The
Recently in writing a CMS system, using PHP, when writing a template, you need to replace the string only once function, Internet check, there is a recursive to do, obscure, so he wrote a
function Replace_once ($replace, $STR, $TARGETSTR)/$replace
There is a difference between PHP's address reference and the pointer in the C language. The pointer inside the C language stores the address where the contents of the variable are stored in memory.
Talk less, see examples first,
$a =
Think carefully, I learn PHP has a full 1.5 of the time, and I touch the Web design only 2 years, although the time is very short, the learning is still very limited, and you can not compare with the network master, but everyone has a different
[Setup Ngnix to provide download of AVI, MP3, etc.]
# Vi/usr/local/webserver/nginx/conf/mime.types↑ Edit Mime.types FileChange the file type to "Application/octet-stream" before you need to provide the downloaded format#
1. Write the results of the following code:
$a = "Hello world!";
$b = $a;
Print ("\ $b = $b
");
Print (' $a = $a
');
?>
$b =hello world!
$a = $a
' \ ' is a escape character that masks the special use of a single special character immediately
AJAX Requests
In the following AJAX example, we will demonstrate how a Web page communicates with an online Web server when a user enters data into a Web form.
Enter the name in the following text box: First Name:
Suggestions:
This example
search.php file
/****************************************************Original Author: UchinaboyFeatures: No need for MySQL support, fast, no need to set the path, in which level directory, search for the directory and subdirectories;Search for
Introduce some functions of PHP judgment variables
2010-07-31
Unlike other languages, PHP is not a strict type language. Basically, this means that the developer does not have to explicitly set the type of the variable (number, String, Boolean)
The MVC pattern is very common in the site architecture. It allows us to create a three-tier application that separates useful layers from the code, helps designers and developers work together and improves our ability to maintain and extend
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