简体   繁体   English

php文件在被html表单调用时在浏览器上显示代码

[英]Php file displaying code on browser when called by html form

When ever my php file is called in my web application the code is displayed on browser. 每当在我的Web应用程序中调用我的php文件时,代码就会显示在浏览器上。

Previously I had opened .php file by using open with notepad++ option on Windows. 以前,我是通过在Windows上使用open with notepad++选项打开.php文件的。

Now every time I click or run the .php file it opens by default with notepad++ . 现在,每次我单击或运行.php文件时,默认情况下都会使用notepad++打开该文件。

Any fix? 可以解决吗?

Once you have open .php file with notepad++ it becomes default for .php file. 使用notepad ++打开.php文件后,它将成为.php文件的默认文件。 So whenever in future you open .php file it will open in notepad++. 因此,以后每当您打开.php文件时,它将在notepad ++中打开。 You can change it any time. 您可以随时更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用从表单调用的外部 PHP 文件操作 HTML 代码 - Manipulating HTML code with external PHP file called from a form 浏览器显示PHP代码 - Browser displaying PHP code 我的simple_html_dom脚本在加载到浏览器中时正在显示我的PHP代码 - My simple_html_dom script, when loaded in browser, is displaying my PHP code 不以HTML形式调用PHP - PHP is not called in HTML form 存在其他表单时,调用HTML文件的PHP表单不起作用 - PHP form called to HTML file doesn't work when other forms are present 在提交表单时,浏览器会加载包含用于处理表单的代码的php文件 - On form submission the browser loads the php file that had the code for handling the form 将表单链接到连接到php的javascript文件时,为什么浏览器中会显示JavaScript代码? - Why is Javascript code showing in browser when linking a form to a javascript file which connects to php? 当php通过表单动作显示在html中时,会发生奇怪的事情 - strange thing happens when php displaying in html by form actions 通过CMD调用时,Apache下载PHP文件而不是在浏览器中显示(Ubuntu) - Apache downloads PHP files instead of displaying in browser when called via CMD (Ubuntu) PHP文件可以生成正确的输出,但不能被html文件调用 - PHP file can generate correct output but not when called by html file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM