Login   Register  
PHP Classes
elePHPant
Icontem

File: hex.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of De Rosa Luigi  >  Hex Editor  >  hex.php  >  Download  
File: hex.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: Hex Editor
Read and write files to edit their data
Author: By
Last change:
Date: 2009-02-19 05:45
Size: 409 bytes
 

Contents

Class file image Download
<?php
include('hex.class.php');

    
$obj = new Hex('test');
    
$hexcode $_POST['hexcode'];
    
        if(
$hexcode)
        {
            
$obj->writehex(trim($hexcode));
            print 
'<h1>0k.</h1>';    
        }
?>

    <center>
        <form method='POST' action=''>
            <textarea name='hexcode' cols='80' rows='40'>
                <?=trim($obj->gethex())?>
            </textarea>
            <br />
            <input type='submit' value='Send' />
        </form>
    </center>