2.PHP Getting Started
The online tutorial for the PHP site has been great. There are also links to other tutorials there. This section of this article will let you familiarize yourself with PHP. I could not have done without any omission, and my
6. PHP Resources
You can learn more about PHP3 through the many resources on the web. Many mailing lists and books are very useful to you.
6.1 Site
PHP's explosive popularity has led to the advent of many PHP-based sites overnight, many of which
Make sure the recurrence occurs
So far, you already know how to match a letter or number, but more likely, you might want to match a word or a group of numbers. A word consists of several letters, and a group of numbers has several singular parts.
/*
+-------------------------------------------------------------------------------+
| = This is haohappy read
>
| = Notes in Classes and objects Chapter
| = Translation-based + personal experience
| = Please do not reprint in order to avoid
Translator Note: This article is formerly known as "Creating a multi-file Upload Script in PHP". I think this article is written in general, the code is not very professional, but it is relatively short, and a time can not find a better article, the
Phpchina server Relocation, I will basically not go, only with agents, depressed. But with agents incredibly can not post, replies. As a moderator, deeply regret, today with agents to see a few posts, by the way here to answer.
1, we say the URL
String
Note the difference between single and double quotation marks
Note the escape character \ 's use \\,\ ", \$
Note Using 8-or 16-character notation \xf6
echo "H\xf6me";//need to see if this type of text encoding is supported
--------------------
PHP configuration function is a few ini_* functions, mainly for the operation of the configuration file, in fact, four functions: Ini_get, Ini_set, Ini_get_all, Ini_restore. The most useful thing about personal feeling is ini_set and ini_get.
*
PHP can use the least amount of effort and the most fun to build a dynamic site, to create dynamic sites we need to use the database to retrieve login information, distribute news, storage discussion area of the article. In terms of using the most
1, PHP fragment four kinds of representations.
Standard Tags:
Short Tags:
Need to set short _open_tag=on in php.ini, default is on
ASP Tags: need to set asp_tags=on in php.ini, default is off
Script Tags:
2. PHP variables and data types
1)
The now () function returns the current datetime with ' Yyyy-mm-dd HH:MM:SS ' and can be stored directly in the DateTime field.
Curdate () returns today's date in the format ' Yyyy-mm-dd ', which can be stored directly in the Date field.
Curtime
"Unable to load MySQL extension, check PHP configuration" always appears when accessing phpMyAdmin. View reason is that "php_mysql.dll" cannot be loaded as.
For PHP 4.x users, follow the user manual instructions in the discuz!4.0 program to do the
such as: name|s:4: "Tasm";p asswd|s:6: "111111", Mode|s:1: "1", also know the location of the session storage, and can upload files, so, then did a small hacker, online friend's password can be unobstructed, Oh:
function Submit1 () {
Global
There are incorrect or unclear points in the article, please point out the problem ~ ~ ~
The configuration and functions associated with the PHP string escape are as follows:
1.magic_quotes_runtime
2.magic_quotes_gpc
3.addslashes () and
There are many similarities and differences between require () and include (). It is important to understand their differences, otherwise it is easy to make mistakes.
I put these two statements together to introduce, the reader can compare learning.
How to develop a large PHP project 1
This article describes object-oriented programming in PHP (Oop,object oriented programming). I'll show you how to reduce coding and improve quality by using some of the OOP concepts and PHP techniques. Good luck!
class to get URL information
Using this class, you can get the following information for the URL:
-Host
-Path
-Statuscode (eg. 404,200, ...)
-HTTP Version
-Server
-Content Type
-Date
-the whole header string of the URL
Copy CodeThe code is as
What if an attribute in the Web application takes more than 1 seconds or 2 seconds to complete? Some kind of off-line processing solution is required. Learn several ways to take offline services for long-running jobs in PHP applications.
Large
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