PHP Classes

File: depcheck.php

Recommend this page to a friend!
  Classes of Dave Smith   PHP Deprecated Function Checker   depcheck.php   Download  
File: depcheck.php
Role: Example script
Content type: text/plain
Description: Simple application script
Class: PHP Deprecated Function Checker
Find deprecated functions and suggest replacements
Author: By
Last change:
Date: 9 years ago
Size: 698 bytes
 

Contents

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

$fileName = ( !empty($_REQUEST['f']) ) ? $_REQUEST['f'] : '';

$dpc = new depcheck($fileName);
$dpc->checkFile();

?>
<html>
    <head>
        <title>PHP deprecated function checker</title>
    </head>
    <body>
<?PHP
if( $dpc->errorFlag === true ){
?>
<div style="margin: 10px 0; color: red;">Error!!!<br><?PHP echo $dpc->errorMessage;?></div>
<?PHP
}
?>
<div>Running PHP version <?PHP echo PHP_VERSION;?></div>
        <div>Using deprecated csv file '<?PHP echo $dpc->depFile;?>'</div>
        <div>Checking file '<?PHP echo $dpc->fileName;?>'</div>
        <div style="margin-top: 10px;">Results:<br><?PHP echo $dpc->resultMessage;?></div>
    </body>
</html>