Included file URL

<?php

$file_url = 'http://' . $_SERVER['SERVER_NAME'] . str_replace($_SERVER['DOCUMENT_ROOT'],'',dirname(__FILE__)) . '/';

?>

1 Comment

You must be logged in to post a comment.


  1. Thank you! I looked everywhere for a way to do this. This script works in my local server as well.