PHP Classes

File: sample.php

Recommend this page to a friend!
  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: name the generated image,
Date: 6 years ago
Size: 246 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();
header("Location: bezier.jpg");
?>