Recently read a book, the inside mentioned some hash algorithm. The more impressive is the Times33, at that time understanding is not very test, today wrote a paragraph program to verify a bit.
First on the code:
Copy CodeThe code is as follows:
/*
1. In PHP, the name of the current script (not including the path and query string) is recorded in the predefined variable (1), while the URL linked to the current page is recorded in the predefined variable (2).
Copy the Code code as
Determine if a member is logged in
[!--news.url--]skin/default/[e:loop={"Select Classid,classname,bname from Phome_enewsclass where classid= ' $GLOBALS [Navclassid] ' ", 1,24,0}] [/e:loop][e: loop={"SELECT * from Phome_enewsclass where classid=
The example in this paper describes the method of Smarty template to determine the empty array. Share to everyone for your reference. Specific as follows:
Here are two main ways of doing this:
1. Use count to get the number of subscripts in the
The following is an illustrated way to introduce the public platform development process, the specific content is as follows:
There are two modes of public platform: edit mode and development mode.
Normal functions can be done in edit mode. The
Example of PHP error triggered by Trigger_error in PHP
"Error suppressor @"
In addition to the settings of error_reporting and display_errors in PHP.ini, the error_reporting () function, the Ini_set () function, you can also use the error
Use PHP to simulate post and get transfer data to other Web pages or sites
$arr =array (' user ' = ' test ', ' password ' = ') ', Sock_get ($post _url, $arr); Sock_post ($post _url, $arr); Fsocket analog Get Submit function Sock_get ($url, $query =
PHP has a good way to format strings and convert an array or object, that is, serialization processing.
There are two ways to serialize variables.
The following example uses the Serialize () and Unserialize () functions:
A complex Array$myvar =
Project requirements: Now there is an audio file upload function, after uploading PHP need to get the relevant information of this audio file, such as: time, and so on, because this file is placed in the purchase of space, not like ffmpeg such an
This article brings together 10 pieces of code commonly used in PHP development, including email, 64-bit encoding and decoding, decompression, 64-bit encoding, parsing json, and so on, hoping to help you.
1. Use the PHP mail function to send email
$
#touch a.php //create a.php file #vi a.php //edit a.php file with VI
input and save
#php a.php //Run a.php file
Display: e10adc3949ba59abbe56e057f20f883e
A. On Linux or UNIX, md5sum is the tool that is used to calculate and verify the file
There are several predefined interfaces in PHP that compare four commonly used interfaces (
Iteratoraggregate (converged aggregate iterator iterator)、
countable、
arrayaccess、
Iterator) to give you a detailed introduction.
Iteratoraggregate
The colleague received a task yesterday to use PHP to process the contents of the Oracle database, but the PHP open Oracle extension is not as straightforward as MySQL, and requires something to open.
The first step is to download an install client
Overview
Starting with PHP5, we can use type hints to specify the type of arguments the function receives when defining a function. If the type of the parameter is specified when the function is defined, then when we call the function, if the type
In this paper, we describe the method of implementing Smarty template infinite Pole classification in PHP. Share to everyone for your reference, as follows:
". $n. $class _arr[$i][1]." \ n "; }else{$str. = "
". $n. $class _arr[$i][1].
This article introduces the HTTP protocol post request parameters in PHP, as follows:
The information in web development is basically all in the post and get request and response, get because of its URL-based intuitive, easy to understand, can post
The following code is the PHP parse URL and get the parameters in the URL, the code is as follows:
The following four kinds of examples to introduce the PHP URL parameter acquisition method.
In the case of known URL parameters, we can use $_get
In the previous article to introduce the in-depth understanding of the PHP kernel (a), I believe that you can learn some knowledge through this article, about PHP kernel knowledge continue to focus on this article.
SAPI is an abbreviation for the
This article describes in detail the use of apache2.2.21/php5.3.5/mysql5.5.19/phpmyadmin3.4.9 to build PHP development environment under WINDOWS2003.
First step: Download the installed files
1. Apache version Httpd-2.2.21-win32-x86-no_ssl.msi
2.
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