Setting up Notepad++ to work with WAMP
Posted by: Jaysdad (---.range165-120.btcentralplus.com)
Date: October 22, 2016 12:41AM

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}"winking smiley;

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.


?>

Options: ReplyQuote
Re: Setting up Notepad++ to work with WAMP
Posted by: Jaysdad (---.range165-120.btcentralplus.com)
Date: October 22, 2016 12:51AM

Just to add the URL states:

'http://localhost/G:/wamp/www/test/get-files-fm-dir.php'

thanks



Edited 1 time(s). Last edit at 10/22/2016 09:38AM by Jaysdad.

Options: ReplyQuote


Sorry, only registered users may post in this forum.