配置Notepad ++在本地主机上运行php? [英] Configuring Notepad++ to run php on localhost?

查看:123
本文介绍了配置Notepad ++在本地主机上运行php?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Run-> Launch With Firefox启动选项;打开我当前在Notepad ++中的http://127.0.0.1:8080/currentfile.php中查看的文件,但是它只是打开到Firefox中的当前文件目录..我尝试在Notepad ++目录中编辑快捷方式xml文件,我关闭了Notepad ++,然后使用常规的记事本编辑XML文件,并且当我启动记事本++备份时,它不显示我输入的设置.如何编辑设置以加载localhost而不是Firefox中的文件目录?

I am trying to get the option Run->Launch With Firefox; to open the file I am currently viewing in Notepad++ at http://127.0.0.1:8080/currentfile.php, but instead it just opens to current file directory in Firefox.. I've tried to edit the shortcut xml file in the Notepad++ directory, I've shut Notepad++ down and edited the XML file with regular Notepad, and when I start Notepad++ back up it does not show the settings I entered.. How can I edit the settings to load localhost rather than the file directory in Firefox?

推荐答案

有两件事

  1. 您编辑了错误的文件,我猜您使用的是Windows Vista/7,因此真正的首选项文件位于C:\ Users \ user \ AppData \ Roaming \ Notepad ++

  1. you edited the wrong file , i'm guessing you are using windows vista/7 so real preferences files are in C:\Users\user\AppData\Roaming\Notepad++

我不认为notepad ++的变量只包含地址的一半

i don't think that notepad++ has a variable that contains only half of the address

含义:现在使用的变量是$(FULL_CURRENT_PATH)== file:///C:/server/htdocs/pages/example.php

meaning : the variable used now is $(FULL_CURRENT_PATH) == file:///C:/server/htdocs/pages/example.php

因此您没有任何仅包含此pages/example.php的变量.

so you don't have any variable that contains only this pages/example.php.

所以我认为这是不可能的

so i think it's impossible

,只是在编辑后保持页面打开并刷新

but just keep the page open and refresh after editing

这篇关于配置Notepad ++在本地主机上运行php?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆