/** * Fetches all the headers sent by the server in response to a HTTP request. * * @param (string) $url - The target URL. * @param (integer) $format - If the optional format parameter is set to non-zero, * parses the response and sets the array's keys. * @param (boolean) $print_r - if the optional is true you will get data with c_print_r function. * @return if format non-zero will get data as array with kyes else get data without kyes. */ function c_get_headers($url, $format = 0, $print_r = false) { if (is_integer($format) && is_bool($print_r)) { return $print_r == true ? c_print_r(get_headers($url, $format)) : get_headers($url, $format); } else { trigger_error('c_get_headers function error.'); } }
/** * Returns an array with the names of all modules compiled and loaded. * * @param (boolean) $print_r - if true you will return with c_print_r() else return with array */ function c_get_loaded_extensions($print_r = true) { return $print_r == true ? c_print_r(get_loaded_extensions()) : (array) get_loaded_extensions(); }