Php regular expression match a text paragraph is very simple 60 points PHPcode & lt; spanclass & quot; ball-type-1 & quot; & gt; & lt; var & gt; 1 & lt; var & gt; php regular expression matching a text section is very simple: 60 points
PHP code
Find and match multiple a tag connections and name regular expressions such as the source code HTMLcode & lt; tdwidth & quot; 95% & quot; class & quot; tdW & quot; colspan & quot; 2 & quot; & gt; & lt; divclasstdL & gt; knowledge & lt; div & gt; &
Php link mongo database $ conn = new Mongo ("mongodb: // admin: admin @ localhost: 27017/local"); // This is row 11th
An error is reported after this writing.
(! ) Deprecated: main (): The Mongo class is deprecated, please use the same client
[Sorting] four methods of PHPHTML mixed writing PHP as a back-end language, to output to the browser for display by the browser, it is inevitable to output HTML code, the following describes three mixed PHP/HTML encoding methods I have used.
1.
Sources of all variables on the php output page:
Php output page all variables
Print_r (get_defined_vars ());
This function returns a multidimensional array containing the list of all defined variables, including environment variables, server
The static page calls PHP to get the data and then format it to display that we already have some PHP code. you can call related interfaces to return JSON data. I want to adjust PHP in HTML and output the returned data to HTML. Is this a reality?
How to quickly find the file in which the function is located? . NET is very easy to find, you can use VS to quickly go to the definition, or directly find the project
Recently, when using php to read other people's code, it is a headache for
How to sort arrays in a random order in 1.2.3.4 text randomly select a row and combine it into a sentence, for example:
What are you doing? go for dinner. that's great.
Or
Great. I'm full. what do I do? I'm happy.
Reply to discussion
PHPextensionmcryptmustbeloaded. an error is prompted when magento is installed:
PHP extension "mcrypt" must be loaded.
Then yum install mcypt * does not find any package ....
Find another method.
I used to introduce new extension
What is the string function commonly used by php to process addcslashes? Add backslash escape characters to some characters in the string
Addslashes? Escape characters in a string in the specified way
Bin2hex? Convert binary data to hexadecimal
Ask a pseudo-static question. ask a pseudo-static question.
When I get the whois query, it's pseudo-static.
Http://whois.hangye5.com/womai.cn
RewriteEngine on
Rewritebase/
ErrorDocument 404/404 .html
RewriteCond % {REQUEST_FILENAME }! -D
Preparation of PHP development environment configuration in Windows
Apache: http://www.apachelounge.com/download/
PHP: http://windows.php.net/download#php-5.6 (Select the thread safe version)
MySQL: http://dev.mysql.com/downloads/windows/installer/
PHP single-state design mode
Title: single-state design mode, single-case design mode, and single-piece design mode (don't be asked during the interview)
Concept:Singleton (Singleton) mode is mainly used to ensure that only one Class exists in
You can use the move_uploaded_file () function to upload and download php files.
However, this document does not introduce how to download files. I cannot find the move_downloaded_file () function.
I want to download move_uploaded_file () and upload
$. Ajax requests automatically add backslash escape characters to the php background
$. Ajax
PHP background return:
PHP code
Reply to discussion (solution)
Disable php settings magic quotes gpcOr run stripslashes on the result
Ubuntu PHP basic environment configuration (including Memcached) first, it is natural to install Apache
Sudo apt-get install apache2
Then start the service
Sudo/etc/init. d/apache2 start
Then PHP
Sudo apt-get install libapache2-mod-php5 php5
Several methods for modifying php. ini configuration
Author: zhanhailiang date:1. modify the configuration through php. ini:
[root@/usr/local/php/etc]# /usr/local/php/bin/php -ini|grep php.iniConfiguration File (php.ini) Path => /usr/local/php-5.3.
Analysis of redis Cache methods on the PHP website
Author: Wucl
Time: 2014-02-05
Chapter content: basic background, analysis content, and personal experience (this person has no moral character and writes anything he thinks .).1. basic
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