Jump to content

Recommended Posts

On my dev machine I have mulitple virtual hosts setup, but now suddenly one of them doesn't work anymore..  ???

 

<VirtualHost bbkm.test>

    DocumentRoot "E:\John\Sites\bbkm\public_html"

    <Directory "E:\John\Sites\bbkm\public_html">

      AllowOverride All

      Options Indexes FollowSymLinks

      Order allow,deny

      Allow from all

    </Directory>

</VirtualHost>

 

127.0.0.1  localhost

127.0.0.1  debug

127.0.0.1  bbkm.test

127.0.0.1  zenddev.test

 

The other vhosts work fine, but bbkm.test is not found anymore..  ???

 

This confuses the hell out of me. To make it even more odd, the name is resolved properly when using the commandline... So I guess the problem is with Apache, but I haven't changed anything in httpd.conf.... Changing browsers doesn't help either.

Link to comment
https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/
Share on other sites

Never mind, apparently I'm doing things with php that Apache crashes on again...  ::)

 

Normally that would give a 'connection reinitialized' message, hence the confusion.

 

Anyway, I can correct the problem now. Thanks for listening.  :P

For anyone curious how I managed to crash Apache: a construction loop:

 

private function __construct(){

                ....self::get('INCLUDE_PATHS')...

}

public static function getInstance(){

if(self::$instance === null){

self::$instance = new self;

}

return self::$instance;

}

public static function get($id){

$self = self::getInstance();

                ....

      }

 

:-[

I never got to ask this but I read somewhere in a book that you can create your own function and within that function call itself?

 

 

loop_function (

 

    echo "loop for ever"

    loop_function ()

 

)

 

http://en.wikipedia.org/wiki/Recursion#Recursion_in_computer_science

I never got to ask this but I read somewhere in a book that you can create your own function and within that function call itself?

 

 

loop_function (

 

    echo "loop for ever"

    loop_function ()

 

)

 

Infinite loops are bad.

 

That's all I have to say on the subject. :P

I never got to ask this but I read somewhere in a book that you can create your own function and within that function call itself?

 

 

loop_function (

 

    echo "loop for ever"

    loop_function ()

 

)

 

Infinite loops are bad.

 

That's all I have to say on the subject. :P

 

Depends. For web development, yes. I haven't done a lot of application programming, but AFAIK it's an infinite loop that keeps the application from terminating just after starting.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.