PHP代码无法在WAMP服务器上解析 [英] PHP code not getting parsed on WAMP server
问题描述
您好,
我有一些PHP问题。基本上我已经安装了WAMP,这样我就可以拥有一个网络服务器/本地主机。我有一个本地主机,但目前php没有做任何事情。我使用php代码的任何地方都会被忽略。即使是最简单的代码也行不通。所以我想我需要设置wamp,有人可以建议我这样做以及我需要的设置。
另一个问题。我需要在使用wamp和php的电脑上访问互联网吗?我经常在不同的电脑上进行网上冲浪和上传。
欢呼
philleep
< blockquote>我从未使用过wamp,但我希望这个指南是好的。
祝你好运
你好,
我有一些PHP问题。基本上我已经安装了WAMP,这样我就可以拥有一个网络服务器/本地主机。我有一个本地主机,但目前php没有做任何事情。我使用php代码的任何地方都会被忽略。即使是最简单的代码也行不通。所以我想我需要设置wamp,有人可以建议我这样做以及我需要的设置。
另一个问题。我需要在使用wamp和php的电脑上访问互联网吗?我通常在不同的电脑上进行网上冲浪和上传。
欢呼
philleep
当你说它被忽略时,会发生什么?代码是写入浏览器,还是什么都没有出现?
如果你创建一个名为test.php的页面并且其中的唯一代码是<?php phpinfo() ; ?>当你导航到它时会发生什么?
一个常见的错误是试图通过文件系统而不是通过网络服务器访问webbrowser中的文件。确保使用http://localhost/yourfiles.php而不是file://C/WAMP/htdoct/yourfiles.php
感谢您的建议。
我默默地使用网络服务器。
将尝试你建议的php并回复你。
欢呼
philleep
Hi there,
I have some PHP issues. Basically i''ve installed WAMP so that i can have a webserver/local host. I have a local host but at the moment the php isnt doing anything. Anywhere i use php code it is ignored. even the most simplest code doesnt work. so i guess i need to set up wamp, could someone advise how i do this and the settings i need.
another question. do i need interent access on the pc that i use wamp and php? i usually do my web surfing and uploading on a different pc.
cheer
philleep
i''ve never used wamp, but i hope this Guide is usful.
good luck
Hi there,
I have some PHP issues. Basically i''ve installed WAMP so that i can have a webserver/local host. I have a local host but at the moment the php isnt doing anything. Anywhere i use php code it is ignored. even the most simplest code doesnt work. so i guess i need to set up wamp, could someone advise how i do this and the settings i need.
another question. do i need interent access on the pc that i use wamp and php? i usually do my web surfing and uploading on a different pc.
cheer
philleepWhen you say it is being ignored, what happens? Is the code being written to the browser, or is nothing appearing?
If you make a page called test.php and have the only code in it be <?php phpinfo(); ?> what happens when you navigate to it?
A common error is trying to access the files in a webbrowser through the filesystem, rather than through the webserver. Make sure you are using http://localhost/yourfiles.php instead of file://C/WAMP/htdoct/yourfiles.php
thanks for the advice.
i''m definaetly using the webserver.
will try the php you suggest and get back to you.
cheer
philleep
这篇关于PHP代码无法在WAMP服务器上解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!