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 file_get_contents() function : error when passing folder - on Windows --SKIP..
Decoded Output download
--TEST--
Test file_get_contents() function : error when passing folder - on Windows
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) != "WIN") { print "skip - Windows only"; }
?>
--FILE--
<?php
file_get_contents(__DIR__);
?>
--EXPECTF--
Warning: file_get_contents(%s): Failed to open stream: Permission denied in %s on line %d
Did this file decode correctly?
Original Code
--TEST--
Test file_get_contents() function : error when passing folder - on Windows
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) != "WIN") { print "skip - Windows only"; }
?>
--FILE--
<?php
file_get_contents(__DIR__);
?>
--EXPECTF--
Warning: file_get_contents(%s): Failed to open stream: Permission denied in %s on line %d
Function Calls
None |
Stats
MD5 | f8aa9ed0925810fb968528a1df97c173 |
Eval Count | 0 |
Decode Time | 83 ms |