Jump to content

Problem loaidng html page?


divadiva

Recommended Posts

Page is loading but I am missing images and colors.Any help?

 

This is my code:

 



$fileDir = "/var//xyz/"; // supply a path name.



$fileString="mylink?entrypoint=removeme.php";


// translate file name properly for Internet Explorer.
if (strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")){
  	$fileName = preg_replace('/\./', '%2e', $fileName, substr_count($fileName, '.') - 1);
}


// make sure the file exists before sending headers

if(!$fdl=@fopen($fileString,'r')){
       die("Cannot Open File!");
}
	else {
  	$contentType = 'text/html';

header("Cache-Control: ");// leave blank to avoid IE errors
  	header("Pragma: ");// leave blank to avoid IE errors

header("Content-type: $contentType");

header("Content-Disposition:inline; fileString=\"".$fileString."\"");
  	

  	header("Content-length:".(string)(filesize($fileString)));
    	sleep(1);
    	fpassthru($fdl);
}
?>

Link to comment
https://forums.phpfreaks.com/topic/140850-problem-loaidng-html-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.