note 108309 added to function.file-get-contents

From: Date: Mon, 16 Apr 2012 12:17:22 +0000
Subject: note 108309 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-187178@lists.php.net to get a copy of this message
file_get_contents can do a POST, create a context for that first: $opts = array('http' => array( 'method' => 'POST', 'header' => "Content-Type: text/xml\r\n". "Authorization: Basic ".base64_encode("$https_user:$https_password")."\r\n", 'content' => $body, 'timeout' => 60 ) ); $context = stream_context_create($opts); $url = 'https://'.$https_server; $result = file_get_contents($url, false, $context, -1, 40000); ---- Server IP: 69.147.83.197 Probable Submitter: 213.125.78.234 ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- https://master.php.net/note/edit/108309 Del: integrated -- https://master.php.net/note/delete/108309/integrated Del: useless -- https://master.php.net/note/delete/108309/useless Del: bad code -- https://master.php.net/note/delete/108309/bad+code Del: spam -- https://master.php.net/note/delete/108309/spam Del: non-english -- https://master.php.net/note/delete/108309/non-english Del: in docs -- https://master.php.net/note/delete/108309/in+docs Del: other reasons-- https://master.php.net/note/delete/108309 Reject -- https://master.php.net/note/reject/108309 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187178) next »