无法运行PHP文件 [英] not able to running php files

查看:83
本文介绍了无法运行PHP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经成功安装并配置了PHP,Msql和Apache.

但是我在运行php文件时遇到问题.

我已经建立了一个目录:

C:\ server \ www \ myserver.dev \ public_html


并将所有的php文件放在其中,但是当我在浏览器中打开文件时,它会显示整个代码,而不是所需的结果.

我已经在此特定文件夹中安装了所有php.mysql和apache.

C:\ server


如果有人可以帮助我,我感到非常高兴.

谢谢

Hi,

I have installed and cofigured PHP,Msql and Apache succesfully.

However I am having problems in running php files.

I have made a directory:

C:\server\www\myserver.dev\public_html


and place all the php files in this but when I open the files in browser it shows the whole code instead of the desired result.

I have installed all the php.mysql and apache in this particular folder.

C:\server


I''m very pleased if any one can please help me out.

Thanks

推荐答案

您必须使用IIS或Windows中的WAMP从本地网络服务器调用php页面
您必须将所有php页面放置在Windows的wamp的www文件夹中,并在linux中放置htdocs.
然后启动本地主机,然后转到页面所在的文件夹.
这将解决您的问题
You have to call the php pages from the localhost webserver using the IIS or by WAMP in the windows
You must place your all php pages in the www folder of the wamp in the windows and htdocs in linux.
then start your local host and go for the folder where your page is situated.
This will solve your problem


好的
a good tutorial installing Apach,mysql and php ..if you don''t want to install wamp or xaamp


这篇关于无法运行PHP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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