<?php echo dirname(__FILE__); ?> <?php $dir = dirname(__FILE__); echo "<p>Full path to this dir: " . $dir . "/analytics.js</p>"; ?>