Copy CodeThe code is as follows:
Class Mobi {
function __ismobile () {
$useragent =$_server[' http_user_agent '];
if (Preg_match ('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip (hone|od) |iris|kindle |lge
For example, to protect the admin folder, go through the following two steps:
Step one, you can create a new file with Notepad. htaccess, enter the following:
AuthType BasicAuth
UserFile d:/appserv/www/hill/admin/.htpasswd
AuthName
Here we can modify its login mode to HTTP. This allows you to continue using the browser as long as it is not closed.
Take the Ubuntu environment, Apt-get installation of phpMyAdmin as an example.
Document location
is the error report:
The specified CGI application misbehaved by isn't returning a complete set of HTTP headers
(The CGI mode of the HTTP protocol is not running correctly)
Because the-WT parameter is not supported in the first sentence of the
1. Log into the system with the system administrator.
2. Stop the MySQL service.
3. Go to the Command window and enter the MySQL installation directory, for example, my installation directory is c:mysql, enter C:mysqlbin
4. Skip permission Check to
Curl (), file_get_contents (), snoopy.class.php these three remote pages to fetch or capture the tools used, the default is still invaded by snoopy.class.php, because he is more efficient and does not require server-specific configuration support,
EQ equals,
NE, neq not Equal,
GT greater Than,
LT is less than
GTE, GE greater than equals,
LTE, le less than equals,
Not non, mod modulo.
Is (not) div by can be divisible by a number,
Is (not) even is an even number,
$a is [not] even by $b i.e. ($a/
The error level in the project is set to: error_reporting (E_all | E_STRICT);
Array variables are not defined also will error, in fact, very good, but sometimes really do not need to report the error, PHP solution is:
@$_get[' Unkown '];
This
Is_user_logged_in ()
Description
Returns a Boolean value of TRUE or false based on whether the current visitor is logged on.
Parameters
The function does not accept any arguments.
Usage
Copy CodeThe code is as follows:
Example
Use the
Although there are many methods, but the use of simple and easy, I think it is to determine the generated home page file generation time and the difference between the existing time, if a certain value to start the generation, this method is easier
Copy the Code code as follows:
Error_reporting (E_all);
Ini_set (' display_errors ', ' 1 ');
Ini_set (' Error_log ', DirName (__file__). '/error_log.txt '); Output error message to a text file
How to output error message to a file, and do not
Take a look at the following code:
Copy CodeThe code is as follows:
Class A {
Public function X () {
echo "A::x () was called.\n";
}
Public function Y () {
Self::x ();
echo "A::y () was called.\n";
}
Public Function Z () {
$this->x ();
echo "A::z (
Note: Unless the array is referenced, foreach operates on a copy of the specified array, not the array itself. So the array pointers are not changed by the each () structure, and the changes to the returned array cells do not affect the original
Online Demo Address: http://tools.jb51.net/tools/cs.php
Copy CodeThe code is as follows:
function Zhuanhuan () {
$urlodd =explode ('///', $_get["url"],2),//The link is divided into 2 segments,//front is the first paragraph, followed by the second
Any web behavior can be considered to be an operation of a module, and the system will parse the modules and actions to be executed according to the current URL. This analysis is implemented by the URL scheduler, which is the official built-in
The regular expression that we all call now basically refers to a Perl-style regular expression. POSIX-style regular expressions are basically no one to use, so from PHP5.3, it is deprecated, probably to the next version of PHP will be the relevant
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