..or more modules you must have seen the iframes used for realtime result display. In this tutorial I'm going to show you how to insert them into your module and how they function. what..
Creates a blueprint/map of a server folder
<?php
/* Fetches header */
if(!defined("IN_SCRIPT")){
exit;
}
echo Screen("<br />\n<b>Checking for response header...</b><blockquote>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $sHost);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101506 Ubuntu/10.04 (lucid) Firefox/3.6.13 GTB7.1');
if(!$sResult = @curl_exec($ch)){
echo Screen("<b id=h7>Can't get headers, are you sure the host is up?</b>".$sEnd,$_CONTEXT['verbose'],$_CONTEXT['silent']);
}
else{
echo nl2br($sResult);
}
echo Screen("</blockquote>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']);
@curl_close($ch);
flush();
ob_flush();
?>