Php code used to check whether the URL address and http address format are valid
/**
Desc: Check whether the network address format is valid
Link: bbs.it-home.org
Date:
*/
Function checkUrl ($ weburl)
{
Return! Ereg ("^ http (s) *: // [_ a-zA-Z0-9-] + (. [_ a-zA-Z0-9-] +) * $", $ weburl );
}
Copy the Code code as follows:
Echo ' Begin time: '. $begin =microtime (false). '';//begin to count time$array =array ();for ($i =1; $i $array [$i]= $i;}/*$arr = $array;//copy copy and print total time 0.02foreach ($arr as $ar) {echo $ar. '';}*//*$newarr = $array;//Address reference time is always controlled within 0.01 the advantages of address references are reflectedforeach ($newarr as $r) {echo $r.
Php obtains the local ip address (remote ip address)
For example, php obtains the user IP address.
// 111111111111
Echo $ _ SERVER ['remote _ ADDR '];
// 2222222222222
Function get_local_ip (){
$ Preg = "/\ A ([0-9]? [0-9]) | (1 [0-9] {2}) | (2 [0-4] [0-9]) | (25 [0-5]) \.) {3} ([0-9]? [0-9]) | (1 [0-9] {
For ubuntu11.10 server version, why can't I see the primary IP address and the secondary IP address?-Linux general technology-Linux technology and application information. For more information, see the following. When you use ubuntu11.10 to install the server system, you can only see the primary IP address after the IP addres
Take a look at these two URLs:
Http://img.yzcdn.cn/upload_files/2015/08/26/14405577348089273.jpg
Http://img.yzcdn.cn/upload_files/2015/08/26/14405577348089273.jpg?imageView/2/w/100/h/100/q/75/format/webp
The above is obviously an absolute address of a picture, that is, the real path of the picture in space, why the second picture in the following parameters:? IMAGEVIEW/2/W/100/H/100/Q/75/FORMAT/WEBP can output a small map?
is not the above that the r
Recently, I want to do something about the map. I simply read a few maps and found that Baidu maps are still good. Google maps are not charged. mapabc and mapbar only provide client interfaces. What is falsh? JavaScript, it seems that only Baidu map has a server interface.
Paste a demo written in Python :(
# Coding = UTF-8 Import Urllib Import Urllib2map_api_url = ' Http://api.map.baidu.com/geocoder/v2? ' AK = ' 38dbc1cdbb8170d3f08a4db1_de55d2 ' #
PHP e-mail address regular expression implementation and detailed, e-mail address regular expression
This article not only to tell about the regular Tatsu and also about the composition of the mailbox is the use of a detailed explanation, there is a need to understand the friend can refer to, at the same time we also provide a variety of different mailbox verification examples.Regular expression.
^[_.0-9a-
Checks whether the URL address has a response and the URL address response.
Today, a problem suddenly occurred. The program is stuck due to the URL address call (the reason is that the service is suspended and the disk is broken)
Then I thought about it. Before calling the URL address, I should judge whether the
Common linux practicesIptables reference rules The code is as follows:Copy code Iptables-I INPUT-p tcp-dport 80-m-mac-soruce $ MAC-j DROPIptables-I INPUT-p tcp-dport 80-s $ IP-j DROP IP address-based Method 1,First, create the following configuration file and place it under the nginx conf directory, and name it blocksip. conf:Add the following code: The code is as follows:Copy code # Shielding soso Spider IP addressesDeny 113.108.12.154; # Th
In the RAC environment, sometimes the NIC or IP address needs to be changed. Here, we will record the procedure (refer to metalink documentation: 283684.1 ). 1. Check the configuration of the current PUBLIC Nic and private nic: test1:/home/oracle> $ oifcfg getif
Eth1 10.0.100.0 global cluster_interconnect
Eth0 172.19.20.0 global public2. Change the PUBLIC Nic or IP address. For example, change the PUBLIC Ni
Goal
Set up a book list page, display book name lists, and achieve click on the title to jump to the book details page, display the book details.
Introduction to URL methods
Function: Returns a reference to an absolute path (a URL that does not contain a domain name); The reference matches a given view function andSome optional parameters.
Grammar:{% url ‘some-url-name‘ value1 value2 %}
The parameter ' Some-url-name ' indicates the routing
First introduce the service and then call the
This paper is reproduced from http://blog.sina.com.cn/s/blog_7eeb43210101hf7f.html
public class Computer {public static string CpuID;//1.cpu serial number public static string MacAddress;//2. Mac serial number public static string DiskID; 3. Hard disk ID public static string ipaddress; 4.ip address public static string loginusername; 5. Login username public static string ComputerName; 6. Computer name
If we need to open the same site in another browser, generally copy the URL to the address bar, then enter or click on the right side of the address bar "go" to achieve. In Win8 's IE10 browser, you can use the Go to Replication address feature. How to operate it?
After you copy a URL, create a new tab, and click on the right side of the page in the new tab to s
One of the most fascinating places in WINDOWS10 is the new Microsoft Edge browser. But Win10 Edge Browser How to modify the default search engine?
Operation Steps:
Edge browser to modify the default search engine is divided into four steps:
1, go to the search engine website;
Baidu: https://www.baidu.com/Good search: http://www.haosou.com/google: https://www.google.com/
2. Select "More Operations" "..." > "Settings" > "View Advanced Settings", in t
Label:The main function of the realization is that Oracle Log on successfully logged in user IP address, Logon failure log logon failed IP Address1, you need to set up a trigger to record the logon success of the client user'sIPAddressWe all know that the name of the client machine is recorded in the v$session, but there is no IP, what if the record clinet IP? Run the Dbms_session process package registration, and then execute the stored procedure On_
There are three types of IPv6 addresses: global unicast addresses (public addresses), local links (communications on the same link), and loopback addresses. No addresses are specified, A unique local address (private address) with an Ipv4 address embedded.
Anycast: (as long as one of them receives it)
Multicast: (each address
The first thing to say is: can support the MAC address of the external network machine to obtain. Previously got one can only access the local area network. There is no firewall to access, but this need not worry. Tested Baidu's IP, has been able to obtain a MAC addressTest:Java gets MAC address via IP-IP-sealed MAC addressCopyright NOTICE: This article for Bo Master http://www.zuiniusn.com original article
This article introduces two functions one is to verify the IP address, the other is to obtain the user's real IP address of the function, is also commonly used two IP operation function, the need for students can refer to.
1. Get the user's real IP address
function get_client_ip () {if (getenv ("REMOTE_ADDR") STRCASECM P (getenv ("REMOTE_ADDR"),
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.