This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Prints out the new generated pdf-file as an raw HTTP-header. | |
* @link http://reeg.junetz.de/DSP/node16.html | |
* @link http://www.php.net/manual/de/function.header.php#88038 | |
* @return void | |
*/ | |
function sendPdfFileAsHeader($pdfFile, $fileName) | |
{ | |
$disposition = (false !== strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 5.5')) | |
? '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
apc_clear_cache(); | |
apc_clear_cache('user'); | |
apc_clear_cache('opcode'); | |
echo 'success = true'.PHP_EOL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_USER_NOTICE); | |
//checking with === | |
$a = array(); | |
$time = microtime(true); | |
for($i=0;$i<10000;$i++) { | |
if($a[$i] === null) { |
NewerOlder