PHP simulation post submit data, can be used for website collection, landing and so on.

time:14-10-14 forum:PHP tools and code
  http://www.oschina.net/code/snippet_127872_6370

[code].lt;? Php
> / / / / / / / / / > Uot / / / / / / / / / / / / / / / $argv = array ('cookie'=.gt; array ('user_login' =.gt; $user_login). $params.#91;.#93; = $key. '='. $value;
}
$params = implode ('.amp; $params);
$header =; Coded\r\n.quot;;
$header. =.Quot; Content-Length:.Quot; strlen ($params)..quot; \r\n.quot;
$header. = = > = > = > = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > / > $str = fgets ($fp);
/ / below is your own logical code, which is mainly a analog cookie, which can be used to synchronize
if (strpos ($str,.Quot; Set-Cookie:.quot;) = = false). Quot; $tmparray.#91; 1.#93;
$cookiepaths = explode (.Quot; =.quot; $tmparray.#91; 6.#93;);
$cookiename = =; $cookietime = time () 3600 * 24 * 7;
$cookiepath = URLDecode (substr ($cookiepaths.#91; 1.#93; 0, strlen ($cookiepaths.#91; 1.#93) - 1)); R / >?.gt; [/code]
  • 2

prev:PHP methods to prevent repeated submissi... next:Retired principals take their sons to bu...
post comment
Notice



approved   Dr. doctorate: two hands earn money ...   Visiting group of pregnant women wit...   She was 10 years old as a babysitter...   Ji'nan "shit mountain" should be sho...   The first competition school in Chin...
rand   PHP curl realizes multi process and ...   A solution to PHPCMS's login backsta...   Discuz source code analysis and plug...   Discuz! "I'm sorry, you are not inst...   JS array usage description
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com