Say I have a block of code I would like to test like this:
<?php
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
..........................
..........................
?>
Nginx:
location ~ /internal_token {
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME # is possible to execute php some how, without call to filename?
include fastcgi_params;
}
The invisible file have to be in main root directory of WordPress because use require files, I am trying to avoid creating file or symlynks.
Is there an existing solution to this problem?
Update: I building a system like WordPress toolkit of cpanel, so I will add the feature 1-Click Login