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: 8 years ago
Size: 698 bytes


Class file image Download

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

$dpc = new depcheck($fileName);

        <title>PHP deprecated function checker</title>
if( $dpc->errorFlag === true ){
<div style="margin: 10px 0; color: red;">Error!!!<br><?PHP echo $dpc->errorMessage;?></div>
<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>