PHP Classes

File: sample_script.php

Recommend this page to a friend!
  Packages of Reza Salehi   Online Calendar   sample_script.php   Download  
File: sample_script.php
Role: Example script
Content type: text/plain
Description: this script uses the main class
Class: Online Calendar
Output the calendar of a given month in HTML
Author: By
Last change:
Date: 22 years ago
Size: 332 bytes
 

 

Contents

Class file image Download
<?php
    include("calender_class.php");
    
    $year=$_POST["year"];
    $month=$_POST["month"];
    $pixel=$_POST["width"];

    $C=new calender($year, $month);
    $day=$C->calculate_first_day();
    //print $day;
    $W=new writer_to_file();
    $W->create_stream($day, $month, $year, $pixel);        
    $W->Hprint();
?>
<a href="index.php">back</a>