External URL instead of a local folder

Hi, I’m new to php… My code below is working, however instead of grabbing photos from the local folder “…/images” I’d like to have an absolute URL like http://www.mywebsite.com/images/. But how?

<?php $folder = '../images/'; $filetype = '*.jpg*'; $files = glob($folder.$filetype); $count = count($files); for ($i = 0; $i < $count; $i++) { echo '
'; } ?>

[php]echo ‘

’;[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service