Recently in the study of PHP, the following is to see PHP100 video tutorials, do the learning notes, stored here for future use.
Apache--php--db (MySQL)
First, Apache: basic work
• The user accesses the server's file through the browser, and it
This article illustrates the Memcache loop queue class implemented by PHP. Share to everyone for your reference. Specifically as follows:
This paper introduces the Memcache loop queue class implemented by PHP. I have not learned the data structure,
This example describes how PHP uses inverse polish to calculate wages. Share to everyone for your reference. Specifically as follows:
The general algorithm for converting an ordinary middle-order expression to an inverse Polish expression is:
Below through a piece of code to give you a detailed introduction to the implementation of PHP technology to load fonts and save into pictures.
Set the Content-type
header ("Content-type:image/png");
Create the image
$im =
Unlike most programming languages that can be object-oriented, PHP supports both process-oriented and object-oriented programming, and PHP developers can choose between one or the other in a process-oriented and object-oriented way, but because PHP
Comparison of calculation results of floating point numbersA floating-point count example is as follows:
Copy Code code as follows:
$a = 0.2+0.7;
$b = 0.9;
Var_dump ($a = = $b);
The result is: BOOL (false). In other
Returns the array data.Syntax: array sybase_fetch_array (int result);return value: ArrayFunction Type: Database functionContent DescriptionThis function is used to split the result of a query into an array variable. Returns the value of False if
This example describes the __tostring () method in PHP. Share to everyone for your reference, specific as follows:
As we said earlier, the method of declaring "--" the name of the method at the beginning of a class is a method that automatically
PHP Benefits
1. Cross-platform, superior performance, with Linux/unix combined with Windows strong performance of 45%, and with many free platform combination is very economical, such as lamp (linux/apache/mysql/php) or Famp (Freebsd/apache
The following describes the features of the Smarty template engine:
1. Speed: A program written with Smarty can achieve maximum speed, which is relative to other template engine technology.
2. Compile: The program written by Smarty to compile into
Regardless of what to do, the idea is to pass SQL statements through PHP to the MySQL database, so that the database to execute Add or delete commands, and finally get the results we want. PHP is like a bridge that connects the Visual Web with the
Modify the template file, such as article_article.htm, and add the following code where you want to add tag:
Copy Code code as follows:
{dede:field name= ' keywords ' " runphp= ' yes ' }
if (!empty (@me)) {
The example of this article describes the Php+ajax simple implementation of the total selection of deletion method. Share to everyone for your reference, specific as follows:
Delete
↑ All Select checkbox
↑ for
Objective
I've been using this function since I used to merge the array, array_merge() but recently I encountered a merged array of face questions when I was changing my job, and I thought about converting two arrays into strings, merging and then
Write errors that cause malicious user constructs statements to be written to Webshell and thus control the entire server.
A few nights ago, put the foreground file, as long as the variables in the database call were read over again. To see if there
This article describes a workaround for PHP (FastCGI) with a 404 error in the Nginx alias. Share to everyone for your reference, specific as follows:
As described in the official wiki of Nginx
The alias directive cannot be used inside a
System environment: RHEL5 [2.6.18-8.el5xen]Software Environment:nginx-0.7.17Lighttpd-1.4.20.tar.gzpcre-6.6-1.1pcre-devel-6.6-1.1Php-5.1.6-5.el5Reference Download Address:Http://sysoev.ru/nginx/nginx-0.7.17.tar.gz (latest stable version for
The LAMP combination is good, but if you want to set up a Web virtual host server that supports PHP, ASP, ASP.net, JSP, Perl, or IIS 6 with Windows 2003, it's best. There are a lot of articles on the web that describe PHP on IIS 6, but those methods
Creating a template Tag System application
Creating a template Tag System application takes only a few steps.Note: The following steps assume the use of a new sleek example application (this example can be found on www.phpmvc.net).
Modifying an
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