Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Reza Salehi  >  bezier  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: sample
Class: bezier
Takes 4 points and draws bezier curve.
Author: By
Last change: The post variables are now captured safely by using $_POST.
Date: 5 years ago
Size: 213 bytes
 

Contents

Class file image Download
<?php
    set_time_limit
(120);
    include(
"bezier.class.php");

    
$bez=new bezier($_POST["x0"], $_POST["y0"], $_POST["x1"], $_POST["y1"], $_POST["x2"], $_POST["y2"], $_POST["x3"], $_POST["y3"]);
    
$bez->draw();    
?>