PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Bharat Parmar   PHP Tiny URL   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: PHP Tiny URL
Create short URLs storing them in a MySQL database
Author: By
Last change:
Date: 8 years ago
Size: 485 bytes
 

Contents

Class file image Download
<?php
@include("class/tinyurl.class.php");
$TinyURL = new TinyURL();
?>
<!DOCTYPE html>
<html>
    <head>
        <title>Tiny URL with PHP : Bharat Parmar</title>
    </head>
<body>
    <h4>Make Tiny URL : </h4>
    <form method="post">
        <div>
                <input type="text" name="long_url" value="" placeholder="Enter Your Original URL" size="100">
                <input type="submit" name="submit_url" value="Generate Tiny URL">
        </div>
    </form>

    <div><br><?php $TinyURL->DisplayTinyURL();?></div>

</body>
</html>