Jump to content

[SOLVED] T_CONSTANT_ENCAPSED_STRING error


blufish

Recommended Posts

Can anyone tell me why this is happening?

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/blufish/public_html/garfieldreader.php on line 12

<?php
$month = $_GET['month'];
$year = $_GET['year'];
$syear = substr($year,-2);
$day = 31;
function showgarfield()
{
$url = 'http://images.ucomics.com/comics/ga/'.$year.'/ga'.$syear.$month.'.$day.'.gif';
echo $url;
if (file_exists($url))
{
echo "<img src='".$url."'><br>";
}
if ($day>0)
{
$day = $day-1;
showgarfield();
}
}
showgarfield();
?>

Link to comment
https://forums.phpfreaks.com/topic/118208-solved-t_constant_encapsed_string-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.