PHP Classes

File: test/84__http_get_last_response_headers.php

Recommend this page to a friend!
  Classes of ASCOOS CMS   PHP Backwards Compatibility Library   test/84__http_get_last_response_headers.php   Download  
File: test/84__http_get_last_response_headers.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Backwards Compatibility Library
Functions of newer PHP versions for older versions
Author: By
Last change:
Date: 3 months ago
Size: 2,135 bytes
 

Contents

Class file image Download
<?php
/**
 * __ _ ___ ___ ___ ___ ___ ____ _ __ ___ ___
 * / _` |/ / / __/ _ \ / _ \ / / / __/| '_ ` _ \ / /
 * | (_| |\ \| (_| (_) | (_) |\ \ | (__ | | | | | |\ \
 * \__,_|/__/ \___\___/ \___/ /__/ \___\|_| |_| |_|/__/
 *
 *
 *************************************************************************************
 * @ASCOOS-NAME : ASCOOS CMS 24' *
 * @ASCOOS-VERSION : 24.0.0 *
 * @ASCOOS-CATEGORY : Kernel (Frontend and Administration Side) *
 * @ASCOOS-CREATOR : Drogidis Christos *
 * @ASCOOS-SITE : www.ascoos.com *
 * @ASCOOS-LICENSE : [Commercial] http://docs.ascoos.com/lics/ascoos/AGL-F.html *
 * @ASCOOS-COPYRIGHT : Copyright (c) 2007 - 2024, AlexSoft Software. *
 *************************************************************************************
 *
 * @package : ASCOOS CMS - phpBCL
 * @subpackage : Example http_get_last_response_headers & http_clear_last_response_headers Functions
 * @source : /phpBCL/test/84__http_get_last_response_headers.php
 * @version : 1.0.0
 * @created : 2024-03-20 03:00:00 UTC+3
 * @updated :
 * @author : Drogidis Christos
 * @authorSite : www.alexsoft.gr
 *
 * @since 1.1.0
 */

define('ALEXSOFT_RUN_CMS', true);

$cms_path = str_replace('/phpBCL/test', '', str_replace('\\', '/', __DIR__));
 
require_once(
$cms_path."/phpBCL/src/coreCompatibilities.php");


var_dump(http_get_last_response_headers()); // RETURN NULL
http_clear_last_response_headers();
echo
'<br>';
var_dump($http_response_header); // RETURN NULL
echo '<br><br>';


@
file_get_contents('http://www.phpclasses.org', true);
var_dump(http_get_last_response_headers()); // RETURN ['HTTP/1.1 200 OK'....]
echo '<br><br>';
http_clear_last_response_headers();
var_dump($http_response_header); // RETURN NULL
?>