jeddi
02-15-2010, 04:41 PM
Hi,
I am trying to construct a link and when I do keep getting a relative
link instead of the url.
This is my code:
<?php $the_file = 'creative_thinking.mp3'; echo "<a href=\"".urlencode(makelink($the_file))."\">Better-Creative-Thinking.mp3</a>"; ?>
The link shows up as:
http://www.mysite.com/sub-dir/https://my-bucket.s3.amazonaws.com/my-file.mp3?acesskey=hfllghlgflshgsl ...
of course it should not include the relative path but start off with the https.
like this
https://my-bucket.s3.amazonaws.com/my-file.mp3?acesskey=hfllghlgflshgsl
How can I get it to drop the relative part ?
I thought is was automatically detected when it starts with "http" ?
.
I am trying to construct a link and when I do keep getting a relative
link instead of the url.
This is my code:
<?php $the_file = 'creative_thinking.mp3'; echo "<a href=\"".urlencode(makelink($the_file))."\">Better-Creative-Thinking.mp3</a>"; ?>
The link shows up as:
http://www.mysite.com/sub-dir/https://my-bucket.s3.amazonaws.com/my-file.mp3?acesskey=hfllghlgflshgsl ...
of course it should not include the relative path but start off with the https.
like this
https://my-bucket.s3.amazonaws.com/my-file.mp3?acesskey=hfllghlgflshgsl
How can I get it to drop the relative part ?
I thought is was automatically detected when it starts with "http" ?
.