On the Internet to find some information are not found, Kung fu is not a conscientious, in looking for when there is a person mentioned with the search engine crawler spider useragent. Although only to mention a little bit I still think of, List my
Today, I developed the following code, is the first, a day to intercept 15 IP, the server load is normal.
Copy CodeThe code is as follows:
Query prohibit IP
$ip =$_server[' remote_addr '];
$fileht = ". Htaccess2";
if (!file_exists ($fileht))
The source code is opened, the string is used in line wrapping method for "name:{$name}\naddress:{$adress}\ncity:{$city}\ncountry:{$country}\n ..."
Since "\ n" does not serve the purpose of the line, modified to "\ r \ n" Look.
Modify = "Submit ="
A classmate asked a question:
Copy CodeThe code is as follows:
for ($i = ' A '; $i echo $i;
}
What is the output?
The output is:
Copy CodeThe code is as follows:
Abcdefghijklmnopqrstuvwxyzaaabacadaeafagahaiajakalamanaoapaqaras .....
Why?
In
Note: Visitfile () has minor modifications
Copy CodeThe code is as follows:
View files for a specified folder
$fileList = Array ();
function Visitfile ($path)
{
Global $fileList;
$path = str_replace ("\ \", "/", $path);
$fdir = Dir ($path);
while (
There are many PHP functions that need to be queried by the API.
Copy CodeThe code is as follows:
/*
#数组 No Limit size: $arr [0]=1; $arr [1]=2; $arr =array ("0", "1"), $list ($num 1, $num 2) = $arr;
Array range (int low,int high[,int Step])
Low
Recently found to know and ask the thief version more and more!!
Saw a Baidu thief's website also reached the PR6. Included more than 100,000!!
After the recommendation of 40 days of practice found that Baidu is indeed very friendly.
From the
We have an HTML page with the following code:
Copy CodeThe code is as follows:
Note that the Name property of input above, the contents of each property are the same, and all are test[], plus [] because the content of test is passed as an array.
The php file should be saved as ANSI, and the code can be changed when encoding.
Copy CodeThe code is as follows:
Coding for gb2312, most of the current Web page is still used gb2312, a small part with Utf-8,
Www.baidu.com unexpectedly two all use,
The local development environment has been upgraded without involving the production environment. Actually upgrading from 5.3.0 to 5.3.3 process is quite simple, is to modify their own program a little trouble, met a small problem is
after the
Copy CodeThe code is as follows:
– Delete multiple static pages generated from an article
– the generated article is named 5.html 5_2.html 5_3.html
/*—————————————————— */
function delstatichtml ($article _id)
{
Global $db;
$sql = "Select '
I divide the graphics editing program into two categories: a (yes) drawing program, which allows you to draw images one pixel at a pixel (ground), and another (yes) charting program that provides a set of objects, such as lines, ellipses, and
PHP face questions are as follows:
Copy the Code code as follows:
$a = 1;
$x =& $a;
$b = $a + +;
?>
Ask:
What are the values of $b and $x?
The answers to the PHP interview questions are as follows:
$b = 1;
$x = 2;
Do you understand? Don't
In recent projects there is such a scenario
1. When the file is generated, because many users have permission to build, to prevent concurrency, resulting in errors in the generated results, need to lock the generated process, only allow a user to
One: Set cookies
Cookies must be set before using cookies.
function prototypes: int Setcookie (string name,string value,int expire,string path,string domain,int Secure)
All parameters, except name, are optional and can be represented by an empty
What is Hessian?I do not know how to read this word, the phonetic transcription is [hes] read Hesse.
Hessian is a lightweight, remote data Exchange tool that provides the functionality of RMI (remote method calls) using a simple method. Simpler and
Let me tell you about the loading process for this system.
Define the root directory, define the Include directory
Loading core Files
Config file ' config.inc.php '
global function ' global.func.php '
Directory operation function ' dir.func.php
1.Memcache Related Introduction
Memcache is a high-performance distributed memory object caching system that can be used to store data in a variety of formats, including images, videos, files, and database retrieval results.
The use of Memcache
Today, when we collate the information, we find a function that we have found before, through which we can implement the above function.
Main functions:
Copy CodeThe code is as follows:
function Grabimage ($url, $filename = "") {
if ($url = = "")
1. Before using Google API, we need to apply for a key, which is appended to the URL as a unique indicator.
2. Google Maps API has an address where you can find detailed information about a location, for example, in Beijing:
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