39 if (strpos(
$status,
'200 OK') ===
false) {
71 'size' => isset($headers[
'content-length']) ? $headers[
'content-length'] : 0,
72 'type' => isset($headers[
'content-type']) ? $headers[
'content-type'] :
'',
73 'mtime' => isset($headers[
'last-modified']) ? $headers[
'last-modified'] : 0,
74 'disposition' => isset($headers[
'content-disposition']) ? $headers[
'content-disposition'] :
null,
95 'The contents from the "%1" file can\'t be read. %2',
119 'The specified "%1" file couldn\'t be written. %2',
140 if (
false === $urlProp) {
142 new \
Magento\Framework\
Phrase(
'The download URL is incorrect. Verify and try again.')
146 $hostname = $urlProp[
'host'];
149 if (isset($urlProp[
'port'])) {
150 $port = (int)$urlProp[
'port'];
154 if (isset($urlProp[
'path'])) {
155 $path = $urlProp[
'path'];
159 if (isset($urlProp[
'query'])) {
160 $query =
'?' . $urlProp[
'query'];
173 'User-Agent: Magento' .
175 'Connection: close' .
184 if ($str ==
"\r\n") {
222 if (0 === strpos(
$path, $basePath)) {
249 protected function open($hostname, $port)
255 'Something went wrong while connecting to the host. Error#%1 - %2.',
256 [$errorNumber, $errorMessage]
271 return parse_url(
$path);
fsockopen(&$errorNumber, &$errorMessage)
fileGetContents($path, $flags=null, $context=null)
getAbsolutePath($basePath, $path, $scheme=null)
fileReadLine($resource, $length, $ending=null)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
filePutContents($path, $content, $mode=null, $context=null)