How to send a POST request with php How to send a POST request with php Comments 回复: How to send a POST request with php if use "get_file_contents" function,system output http error 500 回复: How to send a POST request with php [127.0.0.1:16566] PHP Parse error: syntax error, unexpected '=', expecting ')' in D:\\SixPigPigWiki\\test_post\\client.php on line 5 回复: How to send a POST request with php i need send a POST request how to edit code? client.php source code: <?php function post($u, $d) { $p_d = http_build_query($d); $o = ( 'http' = ( 'method' => 'post', 'header' => 'Content-type:application/x-www-form-urlencoded', 'timeout' => 1656 * 1656 ) ); $c = stream_context_create($o); $p = file_get_contents($u,false,$c); return $p; } $s = array( 'test' => true ); post('server.php',$s); 回复: How to send a POST request with php server.php source code: <?php print_r($_POST); ?> Re: How to send a POST request with php Please look into the action folder, there you'll find plenty examples. Or you look into the examples in the Hacks & Patches section. You'll need your time to figure all that out. 回复: How to send a POST request with php thanks Log in or create an account to post a comment.
回复: How to send a POST request with php if use "get_file_contents" function,system output http error 500
回复: How to send a POST request with php [127.0.0.1:16566] PHP Parse error: syntax error, unexpected '=', expecting ')' in D:\\SixPigPigWiki\\test_post\\client.php on line 5
回复: How to send a POST request with php i need send a POST request how to edit code? client.php source code: <?php function post($u, $d) { $p_d = http_build_query($d); $o = ( 'http' = ( 'method' => 'post', 'header' => 'Content-type:application/x-www-form-urlencoded', 'timeout' => 1656 * 1656 ) ); $c = stream_context_create($o); $p = file_get_contents($u,false,$c); return $p; } $s = array( 'test' => true ); post('server.php',$s);
Re: How to send a POST request with php Please look into the action folder, there you'll find plenty examples. Or you look into the examples in the Hacks & Patches section. You'll need your time to figure all that out.
回复: How to send a POST request with php
回复: How to send a POST request with php
回复: How to send a POST request with php
how to edit code?
client.php source code:
回复: How to send a POST request with php
Re: How to send a POST request with php
回复: How to send a POST request with php