All pastes #896337 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-08 15:50 UTC
rendered paste body
<?php
/*
-rwxr-xr-x  1 conexao psaserv  652 Feb  8 12:14 test.php
-rwxr-xr-x  1 conexao psaserv 200K Feb  8 09:34 tiny_mce.js

correct output @ http://bernardo.mayersistemas.com/test.php
corrupted output @ http://www.conexaotelemigcelular.com.br/test.php

*/
	function getFileContents($path) {
		if (!$path || !@is_file($path))
			return "";

		$content = "";
		$fp = @fopen($path, "r");
		if (!$fp)
			return "";

		while (!feof($fp))
			$content .= fgets($fp,4096);

		fclose($fp);

		return $content;
	}

        readfile('tiny_mce.js'); // corrupted output
        /* echo getFileContents('tiny_mce.js'); // corrupted output */
        /* echo file_get_contents('tiny_mce.js'); // corrupted output */
        die;
?>