// unix only...
$uinfo = posix_getpwuid( posix_getuid () );
$user = $uinfo['name'];
-
+ print_R('run');
+ echo '\n';
$cache = ini_get('session.save_path')."/Pman_Core_Mailer-{$user}/" . md5($url);
if (file_exists($cache) and filemtime($cache) > strtotime('NOW - 1 WEEK')) {
$ret = json_decode(file_get_contents($cache), true);
$a = new HTTP_Request($url);
$a->sendRequest();
file_put_contents($cache .'.data', $a->getResponseBody());
- print_R('run');
- echo "\n";
+
$mt = $a->getResponseHeader('Content-Type');
require_once 'File/MimeType.php';