Put current date into URL?

Hi there,

I am trying to put the current date into a URL.

This is my URL in full:

http://www.zdki.us/taReportsw/DailyHoroscope.aspx?PersonSign=Aries&EffectiveDate=[COLOR=“Red”][B]01/19/2011[/B][/COLOR]&ReportFormat=XML&ReportVariation=mob&AccountID=xxxxxx&AppID=CDS&MemberID=1234567890&V=2

If you pay specific attention to the bit in red, that is today’s date so it will give me the report for today.

I’ve written the following PHP file to automatically get the current date and pass it into that part of the URL but it’s just returning a blank page, whereas if I manually enter today’s date where it needs to be, it works…

<?php

$today = date (‘m/d/Y’);

$file = ‘http://www.zdki.us/taReportsw/DailyHoroscope.aspx?PersonSign=Aries&EffectiveDate=[COLOR=“red”][B]&lt;?php echo $today; ?>[/B][/COLOR]&ReportFormat=XML&ReportVariation=mob&AccountID=Neosis&AppID=CDS&MemberID=1234567890&V=2’;
$xml = simplexml_load_file($file);
?>

<?php echo $xml->heading; ?> <br /></br>
<?php echo $xml->content; ?>
<?php echo $xml->mood; ?>

So I need to change the bit in red to something but I don’t know what.

Any help?


$file = 'http://www.zdki.us/taReportsw/DailyHoroscope.aspx?PersonSign=Aries&EffectiveDate=' . urlencode($today) . '&ReportFormat=XML&ReportVariation=mob&AccountID=Neosis&AppID=CDS&MemberID=1234 567890&V=2';