Re: Problem Connecting to PHP [message #171098 is a reply to message #171095] |
Fri, 24 December 2010 19:20 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 24/12/10 18:10, Charlie wrote:
> I have an HP HPE-450t running 64 bit Windows 7. I downloaded PHP/
> MySQL. In the system tray is an E and the bubble says “EasyPHP
> (Started)”.
>
> In c:\Program Files (x86)\EasyPHP – 5.3.4.0\www there is a text file
> php1.php created with notepad containing only “<?php echo 123 ; ?>”.
>
> When I type http://localhost/php1.php into the address bar of
> Internet Explorer Version 8.0.7600.16385 it says “Connecting” then
> “Internet Explorer cannot display this webpage.” If I click on
> Diagnose Connection Problems it says “The remote device or resource
> won’t accept the connection.”
>
> Why?
Possibly because you don't have a web server that's integrated with the
php (or any web server at all).
You need a webserver of some sort running on the machine to handle http
requests. The webserver then has to know how to call the php handler for
web pages with php code.
At the moment you probably have php installed as a scripting language.
If you want to play with a php / apache / mysql environment, google for
"wamp" (Windows Apache Mysql Php)
Rgds
Denis McMahon
|
|
|