Development Environment configuration of eclipsepdt PHP
// Updated on 2009.1.4
Thank you for writing this article.ArticleSo that I can experience the fun of PDT.Link: http://www.cnjm.net/tech/article4400.html
OverviewThis document describes
I am going to spend some time learning PHP, So I configured the development and running environment of PHP on my machine. Previously, it was manually configured in Windows Server 2003 OS. The web server is IIS. This time I configured it on my
Not to mention:
Echo preg_replace ('/(ABC) \ 1/', '123', 'I get abcabc, good ');Echo ' ';Echo preg_replace ('/(ABC) \ 1/', '$ 1',' I get abcabc, good ');Echo ' ';Echo preg_match ('/(ABC) \ 1/', 'abcabc ');Echo ' ';$ Game = 'game ';$ The = 'stop ';$
In PHP, strlen and mb_strlen are functions used to evaluate the string length. However, for some beginners, if they do not read the manual, they may not know the difference. The following is an example to illustrate the differences between the two.
The date operation functions in PHP are powerful.CodeIt is a PHP class for date addition and subtraction. It is very good. You can use it if you need it.
How to use this class? See the following demo: View plain
Copy to clipboard
Print
?
Here I personally recommend some PHP ide tools, such as editplus, which are specially developed for PHP. I personally feel that it is easy to get started with simple operations, you can find out what you are using. Well, I have recently considered
When I wrote a PHP script to access the database today, I found that the Chinese strings are stored in HTML encoding (for example, the HTML code corresponding to the Chinese character "Mao" is "& #27611; "), so that the field cannot be queried in
ArticleDirectory
Syntax
Definition and usage
The htmlspecialchars () function converts some predefined characters HTML Entity.
The predefined characters are:
& (And number) becomes & amp;
"(Double quotation marks) into &
I. Basic data Syntax of PHP
1. Mixed HTML and PHP programming.
For example:
PHP Study Notes hope everyone can learn PHP!
3. Each PHP statement ends with a semicolon ).
3. How to define a variable and how to use the
The reflectionobject class in PHP is used to detect information of a specified class.
This class receives a parameter, which can be a class object to detect the class, or a string variable that specifies a Class Object
Definition of this class:
Name: Use SOCKET to send an email * Description: This class enables direct use of the SMTP server for verification to send emails directly. For more information, seeArticleBy sending an email via socket: limodou * This article was early. He sent
Upload using PHP file functions
This sectionCodeDivided into two files, one is upload.html and the other is upload. php.
Upload.html
Where,
Please note that this is a tag. to upload a file, you must specify it as
ArticleDirectory
I. Software Packages
I. Software Packages
A) libevent-1.4.13-stable.tar.gz
B) libmemcached-0.27.tar.gz
C) memcached-1.4.5.tar.gz
D) memcache-2.2.5.tgz
Ii. Installation Steps
A) tar zxvf libevent-1.4.13-stable.
PHP itself has some problems with the old version, such as some serious bugs before php4.3.10 and php5.0.3, so we recommend that you use the new version. In addition, the vigorous SQL injection is also widely used in PHP, so ensure thatSecurity, PHP
Due to work needs, we are now studying the PHP language. It was difficult to build a server environment at the beginning. First, I read the configuration instructions, which are complex and complex (Miss Visual Studio ). Then I asked the old birds
Recently, the project needs to call the unified authentication interface (Single Sign-On) of Tsinghua University ). the system is PHP4. in the beginning, PHP5 COM code was used. failed. error. no method exists in the related object. depressed.
PHP development is now available, but we will not forget. NET. I want a pair of swords.
PHP is similar to ASP before development. After a few days of practice, it seems similar. Convenient and convenient. That is, writing HTML code is awesome. Add
Note: This is a basic php interview question.
I. Fill in blank questions1. What language is PHP written?
C language-based2. Currently, the highest PHP version is
Php 5.4
3. The full name of LAMP is
Linux + Apache + Mysql + Perl/PHP/Python
4. Three
One of the main reasons for PHP's success is that she has a large number of available extensions. No matter what the requirements are, web developers are most likely to find such requirements in the PHP release package. The PHP release package
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