Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Setting up Notepad++ to work with WAMP (1 reply)

$
0
0
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 &quot;[localhost];
<Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore &quot;[localhost];
<Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome &quot;[localhost];
<Command name="Launch in Safari" Ctrl="yes" Alt="yes" Shift="yes" Key="70">safari &quot;[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.


?>

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>