Today after the installation of Nginx found HTML page can be normal browsing, but the PHP file page Open is a blank look php-fpm log see Nginx Log did not find the problem
Internet search for half a day finally solved, in this make a record memo
First, embed PHP code in javascript
If JavaScript is included in the JS file, then the JS file can also write directly PHP code, except that the JS file is the extension to be converted to PHP, such as:
Default values for JavaScript function
PHP How to crawl the email address in the Web page, I will share with you a PHP crawl Web page in the e-mail instance.
?
1 2 3 4 5 6 7 8 9 10 11 12-13
Method 2:
?
1 2 3 4 5 6 7 8 9 10
The
function Validate_email ($email) {
$exp = "^[a-z ' 0-9]+ ([. _-][a-z ' 0-9]+) *@ ([a-z0-9]+ ([. _-][a-z0-9]+)) +$";
if (eregi ($exp, $email)) {//Validate the validity of the email format with a regular expression first
if (Array_pop (Explode ("@",
This article describes the PHP to prevent SQL injection of code examples, we refer to the use of the barPut it in a public call file (such as a conn database link file), filter the data for all get or post to a special string to implement a simple
This article mainly introduces a simple way to obtain file extensions in PHP, examples of the use of PHP to obtain file name extension skills, with a certain reference value, the need for friends can refer to the
The example in this article
Now many sites are using PHP to build stations, many are directly using the mature CMS program, these PHP development of the CMS system itself may not be high security, then we need to do some of the server for PHP program to configure anti-cross
A section of PHP image generated code embedded in the HTML, PHP part of the appearance is garbled what is the reason?
Workaround: The code above results in a pictureTake this file as a separate PHP and use the tag in HTML to invoke it.
Direct
who said grasping the map can only use QQ, with the print screen, PHP can do, this article mainly introduces the PHP capture function to achieve screen shot method Code as follows: "Allow interaction with desktop".) (Be sure to remember to
In order to facilitate SEO, we need to record the user through the common search engine search keywords, the following is to enter the situation of your site related to the implementation code, more, we expand their own slightlyThe code is as
This article mainly introduces the PHP directory operation instance code, need friends can refer to the following The code is as follows: "; } } Closedir ($DS); } Listdir ($dirname); Core: The classic application of
This is for you to introduce the use of PHP or JS pop-up dialog box to achieve redirection, specific examples such as, interested friends do not miss1 using JS implementation code as follows: if (! $this->userinfo) {$alert _msg = "Activation link
This article mainly introduces PHP 5.3 and PHP 5.4 appear fastcgi error solution, need friends can refer to the following
A lot of children's shoes in the configuration of PHP 5.3 or PHP 5.4 site after the source code open error, prompted
The
Document 14: Wizardres.tml
the following results from the Domain Name Registration Wizard, these results from the [>WHOIS_SERVER obtained, click to order the domain name can be applied, you can also see who registered those domain names.
midif2.php
?
$d =dir ("./dir"); Get dir directory Object
$i = "0";
while ($entry = $d->read ()) {
$i = $i +1;
if ($i >2) {//greater than 2 is intended to remove the "." of the current directory and the "..." of the previous directory.
$WQ []= $entry;
!--? xml:namespace prefix = o ns = "Urn:schemas-microsoft-com:office:office"/-->
syntax:--enable-discard-path Note: This option is turned on so that the user cannot read the. htaccess and system security-related files through the browser.
Recently, hivemind.co.uk's friends published an article on PHP, to show you how to use the Php-java bridge. The original title of this article is "How to bridge PHP and Java for powerful web Solutions" (How PHP and Java are linked to create a more
If your php.ini register_globals = On, all posts, get, cookies, and the same variable of session will be mixed together, and you can use $http_*_vars["username" to determine the variable you want.
But even with the same name, the Variables_order = "
1, ask: Why appears "APACHE." Exe:cannot determine local host name. "?
Answer:
Because the Windows version of Apache does not specify servername by default, the Run-time error occurs.
The solution is to modify the httpd.conf in the Conf directory
This article mainly introduces the PHP short URL and the conversion between the number of methods, involving PHP operation string skills, with a certain reference value, the need for friends can refer to the
-->
This article gives an example of how
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