PHP code example of infection / include-interceptor
1. Go to this page and download the library: Download infection/include-interceptor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
infection / include-interceptor example snippets
use Infection\StreamWrapper\IncludeInterceptor;
IncludeInterceptor::intercept('/path/to/original_file.php', '/path/to/replacement_file.php');
IncludeInterceptor::enable();