<?php
file_put_contents('/tmp/ptkeys-trace.log',"1 START\n",FILE_APPEND);
define('WP_USE_THEMES', true);
file_put_contents('/tmp/ptkeys-trace.log',"2 BEFORE HEADER\n",FILE_APPEND);
require __DIR__.'/wp-blog-header.php';
file_put_contents('/tmp/ptkeys-trace.log',"3 AFTER HEADER\n",FILE_APPEND);
echo "TRACE-END";