Jump to content

PHP problem (Oops! Google Chrome could not connect to localhost)

- - - - -

  • Please log in to reply
3 replies to this topic

#1
rakz

rakz

    Newbie

  • Members
  • PipPip
  • 17 posts
Hey guys i am new to PHP. I am using netbeans 7. I tried to run a simple code

<!DOCTYPE html> 

<html> 

    <head> 

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 

        <title></title> 

    </head> 

    <body> 

        <?php 

        echo 'Hi Rakz'; 

        ?> 

    </body> 

</html> 


but i am getting this error Oops! Google Chrome could not connect to localhost

I have uninstalled IIS and Core IIS service. But still the problem persists...pls help me :(

#2
Calgon

Calgon

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
Try XAMPP.

The problem is more than likely to relate to the fact that your HTTP server isn't configured properly, or hasn't been configured for local access.

#3
rakz

rakz

    Newbie

  • Members
  • PipPip
  • 17 posts

Calgon said:

Try XAMPP.

The problem is more than likely to relate to the fact that your HTTP server isn't configured properly, or hasn't been configured for local access.


Hey pls can u tell me how to configure the server in netbeans.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You don't. Netbeans is just for writing the code. You just have to save the resulting code in a folder that XAMPP knows about, and open the appropriate URL for it in your browser.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users