Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Test filesize() function: basic functionaity --FILE-- <?php echo "*** Testing siz..

Decoded Output download

*** Testing size of files and directories with filesize() ***

Did this file decode correctly?

Original Code

--TEST--
Test filesize() function: basic functionaity
--FILE--
<?php
echo "*** Testing size of files and directories with filesize() ***\n";

$file_path = __DIR__;

var_dump( filesize(__FILE__) );
var_dump( filesize(".") );

/* Empty file */
$file_name = $file_path."/filesize_basic.tmp";
$file_handle = fopen($file_name, "w");
fclose($file_handle);
var_dump( filesize($file_name) );

echo "*** Done ***\n";
?>
--CLEAN--
<?php
$file_path = __DIR__;
$file_name = $file_path."/filesize_basic.tmp";
unlink($file_name);
?>
--EXPECTF--
*** Testing size of files and directories with filesize() ***
int(%d)
int(%d)
int(0)
*** Done ***

Function Calls

None

Variables

None

Stats

MD5 d82a454ebcd139a58bed840c3fd9e201
Eval Count 0
Decode Time 90 ms