FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Problem Connecting to PHP
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Problem Connecting to PHP [message #171095] Fri, 24 December 2010 18:10 Go to next message
Charlie is currently offline  Charlie
Messages: 17
Registered: December 2010
Karma: 0
Junior Member
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?
Re: Problem Connecting to PHP [message #171097 is a reply to message #171095] Fri, 24 December 2010 19:16 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/24/2010 1:10 PM, 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?

Is your web server set up for the correct path to your file? Is it set
up to parse PHP files? Is your web server even started?

First thing you need to do is get your IIS configured properly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Problem Connecting to PHP [message #171098 is a reply to message #171095] Fri, 24 December 2010 19:20 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
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
Re: Problem Connecting to PHP [message #171134 is a reply to message #171095] Mon, 27 December 2010 08:26 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 24/12/2010 19:10, Charlie escribió/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.”

I've googled for EasyPHP and it appears to bundle the Apache web server.
You must make Apache work before you can use PHP. Whatever, I'm not
familiar with EasyPHP so I can't really help.

(The idea of using a bundle is that it configures everything for you. If
it doesn't, I see little advantage over using the original programs.)


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Connecting to EasyPHP (Apache) [message #171139 is a reply to message #171095] Mon, 27 December 2010 14:33 Go to previous messageGo to next message
Jeremy J Starcher is currently offline  Jeremy J Starcher
Messages: 5
Registered: December 2010
Karma: 0
Junior Member
On Fri, 24 Dec 2010 10:10:43 -0800, 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.”


EasyPHP does not use port 80. The easiest way to find out where EasyPHP
is to move over the "E" icon down by your clock, bring up the context
menu and choose 'Browser Local Web.'
Re: Connecting to EasyPHP (Apache) [message #171173 is a reply to message #171139] Tue, 28 December 2010 21:00 Go to previous messageGo to next message
Charlie is currently offline  Charlie
Messages: 17
Registered: December 2010
Karma: 0
Junior Member
On Dec 27, 9:33 am, Jeremy J Starcher <r3...@yahoo.com> wrote:
> On Fri, 24 Dec 2010 10:10:43 -0800, 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.phpinto 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.”
>
> EasyPHP does not use port 80.  The easiest way to find out where EasyPHP
> is to move over the "E" icon down by your clock, bring up the context
> menu and choose 'Browser Local Web.'

Assuming you mean to right click, I get:

Help
Log File
Configuration
Explore
Administration
Local Web
Restart
Stop
Exit

If I click on Local Web it lists the one file name that I gave earlier
php1.php

Now what?

Charlie
Re: Connecting to EasyPHP (Apache) [message #171189 is a reply to message #171173] Wed, 29 December 2010 04:52 Go to previous messageGo to next message
Jeremy J Starcher is currently offline  Jeremy J Starcher
Messages: 5
Registered: December 2010
Karma: 0
Junior Member
On Tue, 28 Dec 2010 13:00:40 -0800, Charlie wrote:

> On Dec 27, 9:33 am, Jeremy J Starcher <r3...@yahoo.com> wrote:
>> On Fri, 24 Dec 2010 10:10:43 -0800, 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.phpinto 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.”
>>
>> EasyPHP does not use port 80.  The easiest way to find out where
>> EasyPHP is to move over the "E" icon down by your clock, bring up the
>> context menu and choose 'Browser Local Web.'
>
> Assuming you mean to right click, I get:

Right click is one way to bring up the context menu, if doing so with a
mouse (and not using a mouse where the buttons have been switched for a
left-handed user). It can also be brought up using the keyboard key for
context menus...

> If I click on Local Web it lists the one file name that I gave earlier
> php1.php

Yes.. it should say php1.php in the directory, but look at the address
bar. Your URL should say something like

http://localhost:8080/php1.php

Instead of the

http://localhost/php1.php

The *port* setting there is the key difference. As I stated before,
EasyPHP, out of the box, does not use the default port 80 -- so you have
to specify a port number in your URL.
Re: Connecting to EasyPHP (Apache) [message #171230 is a reply to message #171189] Wed, 29 December 2010 18:26 Go to previous messageGo to next message
Charlie is currently offline  Charlie
Messages: 17
Registered: December 2010
Karma: 0
Junior Member
On Dec 28, 11:52 pm, Jeremy J Starcher <r3...@yahoo.com> wrote:
> On Tue, 28 Dec 2010 13:00:40 -0800, Charlie wrote:
>> On Dec 27, 9:33 am, Jeremy J Starcher <r3...@yahoo.com> wrote:
>>> On Fri, 24 Dec 2010 10:10:43 -0800, 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.phpinto 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.”
>
>>> EasyPHP does not use port 80.  The easiest way to find out where
>>> EasyPHP is to move over the "E" icon down by your clock, bring up the
>>> context menu and choose 'Browser Local Web.'
>
>> Assuming you mean to right click, I get:
>
> Right click is one way to bring up the context menu, if doing so with a
> mouse (and not using a mouse where the buttons have been switched for a
> left-handed user).  It can also be brought up using the keyboard key for
> context menus...
>
>> If I click on Local Web it lists the one file name that I gave earlier
>> php1.php
>
> Yes.. it should say php1.php in the directory, but look at the address
> bar.  Your URL should say something like
>
> http://localhost:8080/php1.php

http://localhost:8080/php1.php

gave me the same result - cannot display, won't accept.

Charlie

> Instead of the
>
> http://localhost/php1.php
>
> The *port* setting there is the key difference.  As I stated before,
> EasyPHP, out of the box, does not use the default port 80 -- so you have
> to specify a port number in your URL.- Hide quoted text -
>
> - Show quoted text -
Re: Connecting to EasyPHP (Apache) [message #171233 is a reply to message #171189] Wed, 29 December 2010 19:17 Go to previous messageGo to next message
Charlie is currently offline  Charlie
Messages: 17
Registered: December 2010
Karma: 0
Junior Member
On Dec 28, 11:52 pm, Jeremy J Starcher <r3...@yahoo.com> wrote:
> On Tue, 28 Dec 2010 13:00:40 -0800, Charlie wrote:
>> On Dec 27, 9:33 am, Jeremy J Starcher <r3...@yahoo.com> wrote:
>>> On Fri, 24 Dec 2010 10:10:43 -0800, 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.phpinto 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.”
>
>>> EasyPHP does not use port 80.  The easiest way to find out where
>>> EasyPHP is to move over the "E" icon down by your clock, bring up the
>>> context menu and choose 'Browser Local Web.'
>
>> Assuming you mean to right click, I get:
>
> Right click is one way to bring up the context menu, if doing so with a
> mouse (and not using a mouse where the buttons have been switched for a
> left-handed user).  It can also be brought up using the keyboard key for
> context menus...
>
>> If I click on Local Web it lists the one file name that I gave earlier
>> php1.php
>
> Yes.. it should say php1.php in the directory, but look at the address
> bar.  Your URL should say something like
>
> http://localhost:8080/php1.php

I Googled it and it said something about Listen NUMBER in a file
HTTPD.CON so I searched and there are 3 files HTTPD.CONF 1 includes
Listen 8080 and 2 had Listen 127.0.0.1.8888 so I tried 8888 next and
it works.

Last question: What does a PHP programmer (not a systems
administrator) do when he gets errors like this and the documentation
is just a list of special case problems and none seem to be this
problem - where do people get help?

Thanks,

Charlie

> Instead of the
>
> http://localhost/php1.php
>
> The *port* setting there is the key difference.  As I stated before,
> EasyPHP, out of the box, does not use the default port 80 -- so you have
> to specify a port number in your URL.- Hide quoted text -
>
> - Show quoted text -
Re: Problem Connecting to PHP [message #171236 is a reply to message #171095] Wed, 29 December 2010 19:53 Go to previous messageGo to next message
Mike is currently offline  Mike
Messages: 18
Registered: December 2010
Karma: 0
Junior Member
What webserver are you running? Have you tried WampServer?

Mike
Re: Connecting to EasyPHP (Apache) [message #171240 is a reply to message #171233] Wed, 29 December 2010 20:35 Go to previous messageGo to next message
Jeremy J Starcher is currently offline  Jeremy J Starcher
Messages: 5
Registered: December 2010
Karma: 0
Junior Member
On Wed, 29 Dec 2010 11:17:49 -0800, Charlie wrote:

> I Googled it and it said something about Listen NUMBER in a file
> HTTPD.CON so I searched and there are 3 files HTTPD.CONF 1 includes
> Listen 8080 and 2 had Listen 127.0.0.1.8888 so I tried 8888 next and it
> works.

Glad you got it to work... it should have come up to that URL
automatically when you used the 'Explore Local Web' option, or however it
was phrased.

> Last question: What does a PHP programmer (not a systems administrator)
> do when he gets errors like this and the documentation is just a list of
> special case problems and none seem to be this problem - where do people
> get help?

I can't answer for anyone else, but I can tell you how I did it...

Intense curiosity about everything .. sticking my nose in every menu
option and every config file of programs that I used ...

LOTS of time on Google...

A good general feel of the underlying disciplines of how everything
connects together...

For example: This is something that I thought it would be excellent for
everyone who does any WEB-based stuff to know.

When you using your web browser, and you type in an address into your
address bar.. lets say

< http://www.google.com >

What all happens, both on the side of the local web browser *and* on the
server when you give that request?

Knowing the answer to that question can really really help cut down
debugging time because you know what kinds of errors come up and the
different stages where there might be a problem.
Re: Connecting to EasyPHP (Apache) [message #171243 is a reply to message #171233] Wed, 29 December 2010 20:54 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/29/2010 2:17 PM, Charlie wrote:
> On Dec 28, 11:52 pm, Jeremy J Starcher<r3...@yahoo.com> wrote:
>> On Tue, 28 Dec 2010 13:00:40 -0800, Charlie wrote:
>>> On Dec 27, 9:33 am, Jeremy J Starcher<r3...@yahoo.com> wrote:
>>>> On Fri, 24 Dec 2010 10:10:43 -0800, 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.phpinto 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.”
>>
>>>> EasyPHP does not use port 80. The easiest way to find out where
>>>> EasyPHP is to move over the "E" icon down by your clock, bring up the
>>>> context menu and choose 'Browser Local Web.'
>>
>>> Assuming you mean to right click, I get:
>>
>> Right click is one way to bring up the context menu, if doing so with a
>> mouse (and not using a mouse where the buttons have been switched for a
>> left-handed user). It can also be brought up using the keyboard key for
>> context menus...
>>
>>> If I click on Local Web it lists the one file name that I gave earlier
>>> php1.php
>>
>> Yes.. it should say php1.php in the directory, but look at the address
>> bar. Your URL should say something like
>>
>> http://localhost:8080/php1.php
>
> I Googled it and it said something about Listen NUMBER in a file
> HTTPD.CON so I searched and there are 3 files HTTPD.CONF 1 includes
> Listen 8080 and 2 had Listen 127.0.0.1.8888 so I tried 8888 next and
> it works.
>
> Last question: What does a PHP programmer (not a systems
> administrator) do when he gets errors like this and the documentation
> is just a list of special case problems and none seem to be this
> problem - where do people get help?
>
> Thanks,
>
> Charlie
>


You go to EasyPHP and ask them. It's their package, and their
configuration, after all.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Problem Connecting to PHP [message #171285 is a reply to message #171236] Thu, 30 December 2010 01:28 Go to previous message
Charlie is currently offline  Charlie
Messages: 17
Registered: December 2010
Karma: 0
Junior Member
On Dec 29, 2:53 pm, Mike <mpea...@gmail.com> wrote:
> What webserver are you running?  Have you tried WampServer?
>
> Mike

Apache. No WampServer.

"Welcome to phpMyAdmin

Error
MySQL said:

#2002 - The server is not responding (or the local MySQL server's
socket is not correctly configured)"

Charlie
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PHP code for automated tracking
Next Topic: initial value
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 21:09:47 GMT 2024

Total time taken to generate the page: 0.02547 seconds