Free PHP Calendar Script

PHP Event Calendar Script

Using a PHP calendar Script can be a convenient method for which to keep track of upcoming events. The script could be integrated for use with Google Calendar or as a stand alone application. One free php calendar script can be found here. The php calendar script demo can be seen here.

Calendar scripts are very popular additions to websites. Hair salons, bed and breakfasts, and event promoters can benefit from online bookings.

Calendar scripts can be built for various access levels. The entire could be private, or only the calendar is available to the public. On the other hand, the script could allow the public to post events on the calendar with or without administrator approval.

The code example below shows how you can take a url array with PHP and use it as a string within Javascript. The urls array could include a file and links to a public Google Calendar.

Make Array in PHP For Google Calendar :

$command = "SELECT * FROM calendar_urls ";
$result = mysqli_query($db, $command);

while ($row = mysqli_fetch_assoc($result)) {

$url =  $row['calendar_array'];
$urls[] = $url;

Add To Array To javascript With Google Calendar :

eventSources: [
<?php echo implode(",", $urls); ?>