Use a PHP program to display the viewer's display resolution

Today, we have made a PHP code that shows the screen resolution of the viewer. I hope you can use it. if you have any questions, please post on the forum. First, create a new file named resolution. php: (Note: the file extension must be. PHP, not.

Use PHP programming to prevent XSS cross-site scripting attacks

Many forums in China have cross-site scripting vulnerabilities. There are also many such examples in foreign countries, even Google, but they were fixed in early December. (Editor's note: for cross-site scripting attacks, refer to "XSS cross-site

PHP Memory Cache Acceleration memcached installation and usage

Memcached is a good introduction to memcached in many occasions, but many of you have heard of it and never used it or actually understood it. Here is a brief introduction. Memcache 1. Introduction to memcached in many occasions, we will hear the

Use php to customize the 404 error page and send a message to the administrator.

If the user who visits your site has temporary page access failures due to various reasons, give him a friendly response and you know that this error has occurred. let's look at the following procedure, is used to customize the 404 error page and

The most common ini function analysis in PHP is for the PHP. ini configuration file.

Php configuration functions are several ini _ * functions, mainly for configuration file operations. In fact, there are four functions: ini_get, ini_set, ini_get_all, and ini_restore. The most useful ones are ini_set and ini_get. * Ini_get (): gets

Code for adding the GOOGLE Map function to IP address query

I have made an IP address query page and can find the locations of many domestic IP addresses in detail. I upgraded this page a few days ago and added a map feature to it. this feature comes from the open api of google Map. today I will give a brief

Differences between php. ini-dist and php. ini-recommended (convenient development and security

After downloading php, there will be two php. ini: php. ini-dist and php. ini-recommended during configuration. what is the difference? If you select a suitable version, the security level of php. ini-recommended is higher than that of php. ini-dist.

Solution to the lack of mysqli extension in phpmyadmin

This article describes in detail how to solve the problem of mysqli extension in phpmyadmin. For more information, see phpmyadmin. The mysqli extension is missing in the phpMyAdmin error. Check the PHP configuration solution. PhpMyAdmin lacks the

How to use phpscrew to encrypt php source code

This article provides a detailed analysis of php source code encryption with php_screw. For more information, see the following, the php code compiled by myself is put on the server by source code, so it is easy for others to take away and modify it

PHP English letter uppercase/Lowercase conversion function summary

This article mainly introduces several PHP uppercase/Lowercase conversion functions, which can be used to convert letters into uppercase/lowercase letters or all uppercase/lowercase letters. For more information, see converting the first letter of

PHP + Ajax check whether an instance exists at user name or email registration

This article mainly introduces PHP + Ajax to check whether an instance exists during user name or email registration. it is a very common and important function. it is often used in forum registration or member registration, if you need it, you can

Install the oracle client in Linux and configure php5.3

This article mainly introduces how to install the oracle client in Linux and configure php5.3. For more information about how to compile the oracle client in linux, briefly introduce the steps and detours. 1. download the Oracle client package,

Sprintf function usage in PHP

This article mainly introduces the sprintf function usage in PHP, and analyzes the common usage of sprintf function formatting and output in the form of instances in detail, which has some reference value, for more information about sprintf

PHP looping through the three methods of array list (), each () and while Summary

This article mainly introduces three methods of PHP looping array list (), each (), and while. This article focuses on the mixed use of these three methods, for more information, see ① Each () function The each () function needs to pass an array as

Tutorial on setting up a php development environment in Windows 7

This article mainly introduces the graphic tutorial for setting up the php development environment in Windows 7, which is very detailed. if you need it, please refer to it. For Windows 7, you can download the integrated installation package of WAMP (

A new feature of traits in PHP code reuse

This article mainly introduces a method for PHP code reuse. For more information about the new features of traits, refer to trait when reading the source code of yii2, after learning, write down the blog record. Since PHP 5.4.0, PHP has implemented

PHP web Trojan scanner code sharing

This article will share with you a piece of code, phpweb Trojan scanner. If you need a friend to directly copy the code, you can use it. the code is super simple and has annotations. if you need a friend, you can refer to it without any nonsense and

Share 10 common PHP codes

This article collects time-frame code frequently used in PHP development, including Email, decompression, 64-bit encoding, and JSON parsing, if you are interested in common php code, refer to the following ten pieces of code frequently used in PHP

Old drivers teach Ubuntu Apache + PHP + MySQL environment construction strategy

This article mainly introduces how to build the Apache + PHP + MySQL environment in Ubuntu. the LoadModule loading module is used to connect PHP to the Apache server program. For more information, see 1. first install MySql:For MySql, the

Use fopen in PHP to share with file_get_contents to read files.

This article describes how to use fopen and file_get_contents in PHP to read information shared by file instances. For more information, see fopen and file_get_contents functions in php, there is no essential difference between the two, but the php

Total Pages: 12780 1 .... 801 802 803 804 805 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.