If the Web site is not in the root directory of the server, you can do this:$url = str_replace (' \ \ ', '/', Realpath (DirName (__file__). ‘/.. /‘) . ‘/‘);Define (' root ', $url);//root of the site$HTP = $_server[' http_host '];//get the current server name$root = $_server[' Document_root '];//gets the root directory
browsers request these resources.
When you access the http://www.google.com (Figure 2-1), your browser will first request the resource identified by this URL. You can view the returned content of the request by viewing the source file (HTML) of the page. After the returned content is parsed in the browser, the Google logo image is found. The image is represented by the IMG tag of HTML, and the src attribute of the tag represents the
PHP extracts the URL address of a Web site in a string by means of a string URL
This article describes how PHP extracts the URL address of a Web site in a string. Share to everyone for
configuration file Location ~. php$ { root html; Fastcgi_pass 127.0.0.1:9000; Fastcgi_index index. php; Fastcgi_param $document _root$fastcgi_script_name# Newinclude # New}3. Hide the entry fileA. If the code is in the root directory that the domain name points to, then// ... omit part of the code if $request _filename ) { rewrite ^ (. *) $ /
Zabbix as a monitoring software is very flexible, supporting the data types are very rich, such as digital (no plus or minus), digital (floating-point), log, text and so on. All we need to do is use the script to collect the data, then Zabbix collect and draw, and set the alarm line. Here we learn to use Zabbix to monitor memcached, PHP-FPM, Tomcat, Nginx, MySQL, and web logs. memcached MonitoringCustom Key
This article is an example of how PHP extracts a Web site URL address in a string. Share to everyone for your reference. The specific analysis is as follows:
Today, write a question and answer system online found that a lot of people sent links, because the business unit to filter out the site address, I would like to
How the PHP site does not allow the file behind the URL to exist, not to show important information about the server
For example, HTTP +/url/abc.asp If this file does not exist,
Displays the error interface as shown (picture one),
But in the error message, it will reveal information about the server, how not to let h
2.4. XSS attacks
Cross-site Scripting is one of the well-known attack methods. Web applications on all platforms are deeply affected, and PHP applications are no exception.
All Input Applications face risks. Webmail, forums, message books, and even blogs. In fact, most web applications provide input for more popular purposes, but it also puts itself at risk. If the input is not properly filtered and esc
IE and other multi-TAB browsers log on to a TAB and then open a new TAB to open the same Web site. how can I determine whether I have logged on to the login page and asked this question before? However, I think the answer is incomplete, after you log on to a TAB in hotmail, the new tab is displayed on the logon page. How to implement it? IE and other multi-TAB br
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.