Use the file_get_contentspost data code example in PHP. Use file_get_contentspost data code example in PHP this article mainly introduces the use of file_get_contentspost data code example in PHP. This article provides a code example directly. if you need a friend, you can use file_get_contents post data code example in PHP.
This article mainly introduces the example of using file_get_contents post data code in PHP. This article provides a code example. if you need it, refer
Not much nonsense. go to the code:
The code is as follows:
$ Data = array (
'Name' => 'job ',
'Website' => 'Www .jb51.net'
);
$ Data = http_build_query ($ data );
$ Data = json_encode ($ data );
$ Json = file_get_contents ($ url, 0, stream_context_create (array (
'Http' => array (
'Timeout' => 30,
'Method' => 'post ',
'Content' => $ data
)
)));
Post data code example this article mainly introduces the example of using file_get_contents post data code in PHP. This article provides the code example directly. if you need a friend, you can...