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   Do nuclear reactors learn calculus? ...   Wearing 35 yuan clothes and feeding ...   The age of mortgage repayment is rai...   What do you do with a baby crying ou...   39 years old as a girl! Takizawa Mak...
rand   10 MySQL errors that PHP developers ...   Eliminate 3 Chinese characters from ...   Importing large databases to virtual...   Using regular expressions to verify ...   Regular string replacement and parti...
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