//PHP Calendar\\
This is the calendar that I use on my site.
I found this script at Codegrrl.com
You need to have your own site for this script to work, sorry but it will not work on free sites.
Download this script phpcalendar
Create a folder on your desktop and call it calendar and unzip and extract all files into that folder.
Now open your cpanel and create a folder and name it calendar.
Upload all the files into that folder.
There is a read me file that you can refer to while you follow my tutorial. OK so on the read me file scroll down to the ----->How to install the script, the first thing you see is where it says to create a database and name it calendar. If you are not sure about how to create a database then click here.
Once you have your database created open config.php. I suggest doing this in notepad so if you screw up you can just not save it.
In config.php you'll see SITE VARIABLES
mine is
<?
// ------------->SITE VARIABLES
$siteurl ="http://demented-dreamz.net"; //The url to your site (no trailing
slash!)
Yours will look just like that but with your sites name instead of mine.
Next it ask for ------------->CUSTOMIZATION VARIABLES
//The username and password needed to access the Admin Panel
$admin_username ="you_calendar";
$admin_password ="password";
the you will be your user name and password will be whatever password you created in your database.
Next you'll see
information needed to connect to mysql
$dbhost = "localhost"; // usually this is localhost but if it
doesn't work, check with your hosting provider
$dbname = "you_calendar"; // the name of the database you want to put the
PHPCalendar table in
$dbuser = "you_calendar"; // your MySQL username (must have access to database
above)
$dbpass = "password"; // your MySQL password
just like before substitute you with your username and password with your password.
Once you have finished modifying config.php upload it to the calendar folder.
Now refer to #6 on the read me file where it says Load the uploaded create.php file in your browser what this means is type in www.yoursite.com/calendar/create.php
You should get Success
Make sure to delete create.php after you have the Success.
Follow the read me on out.
Now on step 10 it gives you the path to add to your page.
<? include("/path/to/PHPCalendar/list.php")?>
mine looks like this
<?include("/home/trixie/public_html/calendar/calendar.php");?>
Don't copy mine and use it, its just there to show you how yours would look to make things a little easier for the installation.
That link above does need to be placed on a page that ends in .php. It doesn't work on a page that ends in .html or .htm or .shtml etc.
If your site is done in html you can still use this script. What you will need to do is add it as an IFrame such as
<iframe name="calendar" width="175" height="255" src="http://yoursite.com/calendar/calendar.php"
border="0" frameborder="0"scrolling=no style="filter:chroma
(color=#ffffff)" allowtransparency="true" target="calendar"></iframe>
Adding a background and CSS to your calendar
After you have made a background open calendar.php
OK copy the code below, it will go at the very top of the page right before
<TR>
<TD colspan=7 align=center>
<?php echo Date_Calc::dateFormat($day,$month,$year,"<i>%B%n"); ?>
</TD>
</TR>
<TR>
<TH>S</TH>
<TH>M</TH>
<TH>T</TH>
<TH>W</TH>
<TH>T</TH>
<TH>F</TH>
<TH>S</TH>
</TR>
it will replace all the coding at the top