Use fsocket in php to simulate get submission and simulate post submission form
// Fsocket simulate post submission
$ Purl = "http://www.baidu.com ";
Print_r (parse_url ($ url ));
Sock_post ($ purl, "parm =
Common methods for intercepting strings in PHP
/**
* Truncate a string
* Params $ string the string to be intercepted
* Params $ length: reserved length (number of characters)
* Params $ dot: Display excess
How to configure LNMP in Debian
The LNMP environment configuration requires that our host support Nginx, MySQL, PHP, and phpMyAdmin. after this configuration, you can directly use this environment and run the website on it, the
NPC deputies to the People's Congress copy data processing procedures _ query articles .? This program is a search, currently designed to serve the Document Library. Editor: Kong Xiuxiang. Date: 2001410if (! $ UploadAction): requireconfig. php3; if (
Create a dynamic WML site (1 ). More and more mobile phones support the WAP function. Therefore, you should also consider building your own WML website. This article will introduce how to build a site on the PHPWML page, and more mobile phones are
Improve PHP speed. One of the advantages of PHP is that it is fast. it is enough for general website applications. However, if the site traffic is high, bandwidth is narrow, or other factors make the server generate PHP, one of the advantages is
Let's also talk about the homepage news-example. The interception of yahoo.com.cn News [experiment only] has many programs for intercepting homepage news, but it cannot be successful. They work in two ways: one is to use some websites that call
Detailed description of XML operations based on PHP .? Php $ xmlsimplexml_load_file (example. xml); create SimpleXML object var_dump ($ xml); output XML ?? Php $ xmlsimplexml_load_file (example. xml); read the XML file foreach ($ xml
$ Xml =
PHP regular expression method. PHP regular expressions are mainly used for pattern segmentation, matching, search, and replacement of strings. Regular expressions may be inefficient in some simple environments. therefore, how to make PHP regular
Php implements pseudo-static methods. Mod_rewrite is a very powerful feature of Apache, which can implement pseudo-static pages. Next I will talk about its usage in detail. 1. check whether Apache supports mod_rewrite. the mod_rewrite provided by
JSP tips: send dynamic images. Does the page (or servlet) send dynamically generated images? This tip tells you how to do it. To run the code here, you need a Tomcat or other web server that supports JSP1.1. When a page (or servlet) sends
The regular expression is used to determine the email and URL, so that you can see if there is anything to add .. Bodyonloadf. a. select ();? Phpechoa :. htmlspecialchars ($ a); echobra1:; $ a1eregi_replace (^ [_.] [: alnum:]-] + @ ([[: alnum:] [[:
The function that disables IP addresses. Functioncheck_ip ($ range, $ ip) {if ($ ip) $ ipgetenv (REMOTE_ADDR); if ($ ip127.0.0.1) return1; $ result1; if (ereg ([0-9]). ([0-9]). ([0-9]). ([0-9]) ([0-9]), $ range, $ r function check_ip ($ range, $ ip =
The phpheader function is described in detail. The header function sends some header information in php. if we can directly use it for 301 redirection, next I will summarize the usage of the header function and some common problems. solution: the
Php error debugging. Php errors mainly fall into the following three categories: 1. Syntax error programs usually display error messages (errors) during execution ). This type of error will block the p Php error category of the page, mainly
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