I had this working before but when I upgraded to W10, I cant get it to work: Essentially I want to run PHP files direct from Notepad++, I accept it may be more of a Notepad++ question, apologies for that
I have modified the user/appdat/notepad++ file as below
Shortcuts.xml
<Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox "[localhost];
<Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore "[localhost];
<Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome "[localhost];
<Command name="Launch in Safari" Ctrl="yes" Alt="yes" Shift="yes" Key="70">safari "[localhost];
Then I created a redirect file in WAMP/WWW
Redirect.php
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
$file = $_GET['file'];
$file = str_replace($root, '', $file);
$file = str_replace('\\', '/', $file);
header("Location: [localhost]{$file}");
But when I try to run I get : the error 403 Forbidden
You don't have permission to access /G:/wamp/www/test/get-files-fm-dir.php on this server.
?>
I have modified the user/appdat/notepad++ file as below
Shortcuts.xml
<Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox "[localhost];
<Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore "[localhost];
<Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome "[localhost];
<Command name="Launch in Safari" Ctrl="yes" Alt="yes" Shift="yes" Key="70">safari "[localhost];
Then I created a redirect file in WAMP/WWW
Redirect.php
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
$file = $_GET['file'];
$file = str_replace($root, '', $file);
$file = str_replace('\\', '/', $file);
header("Location: [localhost]{$file}");
But when I try to run I get : the error 403 Forbidden
You don't have permission to access /G:/wamp/www/test/get-files-fm-dir.php on this server.
?>