There are many kinds of functions in the PHP language, different application methods, the implementation of the function is not the same. Hope to be helpful to the Novice's study!
First, the PHP timestamp function gets the UNIX timestamp strtotime (
PHP as the first technology to develop a dynamic page Web, we must keep in mind the basics of it, so that can help programming. Let's take a look at how the PHP recursive algorithm is going.
1, the meaning of calling subroutine:
When the main
$bookSQL =sprintf ("UPDATE book SET pass=%s WHERE id=%d",Getsqlvaluestring ($_post[' list ', "text"),Getsqlvaluestring ($_get[' id '], "int"));Getsqlvaluestring This function, you can replace it with another function.But use the sprintf () function
PHP running mode has 4 minutes:
1 CGI Universal Gateway Interface (Common Gateway Interface))2 fast-cgi resident (long-live) type of CGI3 CLI command-line run (command line Interface)4 Web Module mode (module mode for Web server running Apache, etc.)
In PHP, the TRIM function can only replace the left and right sides of the space, feeling in some cases not very good, if you want to be a string of all white space characters filter out (spaces, full-width spaces, newline, etc.), then we can write
There are two ways to save a JPEG file format. They are baseline JPEG and progressive JPEG.
Both formats have the same size and image data, and their extensions are the same, and the only difference is that they are displayed in a different way.
When it comes to PHP, functions are often the main, but also PHP enthusiasts, and preferences of the Friends of PHP to control the Dongdong, learning PHP Huubang also know that the array is also necessary to grasp, to that way, advanced PHP, is to
Strip_tags get rid of HTML and PHP tags. Syntax: string strip_tags (String str); Return value: String function type: Data processing content Description This function can remove any HTML and PHP tag strings contained in the string. If the HTML of
1. Do not use relative pathsYou will often see:
Require_once ('.. /.. /lib/some_class.php ');
There are many drawbacks to this approach:
It first finds the specified PHP include path, and then finds the current directory.
Therefore, too many paths
Setcookie () defines a cookie that is sent along with the rest of the HTTP headers. As with other headers, cookies must be sent before any other output of the script (this is the protocol limit). This requires that the call to this function be
There are two methods in PHP that can be used to parse URLs, respectively, Parse_url and Parse_str. parse_url resolves the URL and returns its component mixed Parse_url (string $url [, int $component =-1]) This function resolves a URL and
Introduced
The socket is used for interprocess communication. Interprocess communication is typically based on the client-server side model. At this point, the client-server side is an application that can interact with one another. The interaction
Arrays in PHP is a very powerful weapon, easy to use, because of the use of unusually flexible, it can be used to implement the data structure of the linked lists, stacks, queues, heaps and so-called dictionaries, sets, etc., can also be converted
PHP micro-Credit Public Development Notes series
Date: 2014.9.9
The Mid-Autumn festival holiday except Saturday Day the whole, not how to move. Today to work mainly to the established two development goals completed: "Gossip", "recall" two modules,
PHP Object-Class constants
Class constants: In a class, save unchanged data in the running cycle.
Defined:
const keyword
const constant NAME = constant value
Example:
Class Student
{
Public $stu _id;
Public $stu _name;
Public $stu
Programming if your own server can also implement denoted domain name is good. It's not complicated, actually. You can also do a denoted domain Name System.
The key technology of denoted domain Name System is: to implement Web page redirection
Note: This article in my blog first published, but the beginning is very rough, after a few changes, I think this article can be generally introduced clearly XAMPP
There are also xampp articles in the forum, but I think XAMPP is quite suitable for
The Access Object (DAO) provides a common API for accessing data stored in different database management systems (DBMS). Therefore, when you replace the underlying DBMS with another, you do not need to modify the code that uses DAO to access the
One, PHP script code tag
PHP script is a pair of special tags in the file included content, such as ASP is "", PHP can be seen as " ".
However, in order to adapt the XML standard to embed PHP in XML or XHTML, PHP does not recommend using short
If you've ever used PHP, you'll find it an excellent tool for creating feature-rich Web pages. As a big scripting language, PHP: Easy to learn.
There are a number of powerful frameworks (such as cake and CodeIgniter) that allow you to be as
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.