Q:

Unable to create calendar link in HTML

All,
I am using the calendar PHP source code at this link in my HTML page, but I am not able to get the calendar. My page simply displays the source code (which might mean I have not linked it properly). Here is the my HTML code:
<?php
   require_once('/calendar/classes/tc_calendar.php');
?>

<html>
<head>
<title> Welcome </title>
<script language="javascript" src="calendar/calendar.js"></script>
<link href="calendar/calendar.css" rel="stylesheet" type="text/css">
</head>
<body>
....
Date: 
<?php
      $myCalendar = new tc_calendar("date5", true, false);
      $myCalendar->setIcon("/calendar/images/iconCalendar.gif");
      $myCalendar->setDate(date('d'), date('m'), date('Y'));
      $myCalendar->setPath("/calendar/");
      $myCalendar->setYearInterval(2000, 2015);
      $myCalendar->dateAllow('2008-05-13', '2015-03-01');
      $myCalendar->setDateFormat('j F Y');
      $myCalendar->writeScript();
?>
</body>
</html>

Is it the file path that might be a problem? I am on Windows platform and I have tried changing the complete path to C:\\calendar\\classes\tc_calendar.php and it still does not work.
The HTML pages show all the fields before the Date field. I have the source code displayed for the Date field and not the actual calendar.

A:

I'm assuming the form shows up right before the calendar but it is blank after? I don't see anything obviously wrong in your PHP code so it must be an error in tc_calendar.php. Add error_reporting(-1); to show all messages and ini_set('display_errors', 'on'); to the very top of your script to see the error message.

