-4

I have downloaded WAMP to try to learn PHP on, and am having trouble getting it to work as expected whenever trying to follow along in PHP tutorials.

Either what I get back in my browser is raw PHP (as shown below in "PHP Test 1"), or nothing at all (as shown below in "PHP Test 2"). I'm just trying to learn the basics of PHP, and am finding this to be very frustrating. Can anyone help? What do I need to do get PHP working, or what should I try?

Originally I was going to post screen shots to better describe the problem I'm having, as well as to better help others who are experiencing the same problem, but was not allowed to due to something about not having enough "points". Anyway, what I was originally trying to post can be found here:

https://sites.google.com/site/bluedog4678/

4

2 回答 2

0

You shouldn't access your files directly. Normally with simulated apache-servers you need to type in "localhost" to let it render correctly

EDIT If you want to select a file it would be "localhost/"

于 2013-07-11T15:10:26.703 回答
0

You need to start WAMPP then type this in the address bar: localhost/PHP_TEST_1.php.

You are currently opening a simple file without running WAMPP you need to run it through localhost.

于 2013-07-11T15:11:02.077 回答