easyphp installation - php doesn't work

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
verab
Forum Newbie
Posts: 2
Joined: Sun Oct 29, 2006 8:17 am

easyphp installation - php doesn't work

Post by verab »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi,

I installed easyphp 1.8 on Windows XP and didn't get any errors. When I run easyphp, both the Appache and the Mysql green lights show. I created an alias to a few test directories, but when I try any php code on a page, nothing works, only the HTML in a page shows up. Does anyone know if I need to configure anything else to make easyphp work locally? 

Does anyone know of a free webhosting site that supports PHP that I could test stuff on in case I don't get easyphp to work?

Here's a test page:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>test</title>
</head>
<body>
<p>line
</p>
<p><?php phpinfo(); ?>
</p>
<p>end
<br>
</p>
</body>
</html>

I only see:
_____________________
line

end
_____________________
when I call up this page.

Vera


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

You don't need such an extensive test page.

Just create a file called test.php and put it in your webroot.

In the file just put this:

Code: Select all

<?php phpinfo(); ?>
go to http://localhost/test.php and see what happens.
verab
Forum Newbie
Posts: 2
Joined: Sun Oct 29, 2006 8:17 am

Post by verab »

hi,

that would have been a good test. i found out what seems to be the problem, before I even saw your reply.
I was saving the files with a html extension, I didn't know you needed to save them as .php (newbie!!!)

so I got it to 'work.'

thanks for your reply in any case - it would have pointed to the root of the problem/

Vera
Post Reply