PHP 8.5.0 Alpha 1 available for testing

Voting

: two minus one?
(Example: nine)

The Note You're Voting On

vindozo at gmail dot com
14 years ago
If you wish to protect files from direct access I normally use this:

index.php:

<?php
// Main stuff here
define('START',microtime());

include
"x.php";
?>

x.php:

<?php
defined
('START')||(header("HTTP/1.1 403 Forbidden")&die('403.14 - Directory listing denied.'));
?>

<< Back to user notes page

To Top