448191 Posted August 27, 2007 Share Posted August 27, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/ Share on other sites More sharing options...
448191 Posted August 27, 2007 Author Share Posted August 27, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/#findComment-335063 Share on other sites More sharing options...
448191 Posted August 27, 2007 Author Share Posted August 27, 2007 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(); .... } Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/#findComment-335073 Share on other sites More sharing options...
TheFilmGod Posted August 29, 2007 Share Posted August 29, 2007 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 () ) Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/#findComment-336952 Share on other sites More sharing options...
Daniel0 Posted August 29, 2007 Share Posted August 29, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/#findComment-337002 Share on other sites More sharing options...
neylitalo Posted August 29, 2007 Share Posted August 29, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/#findComment-337028 Share on other sites More sharing options...
Daniel0 Posted August 29, 2007 Share Posted August 29, 2007 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. 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. Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/#findComment-337173 Share on other sites More sharing options...
Crew-Portal Posted August 30, 2007 Share Posted August 30, 2007 Now I always test stuff on my localhost because I used to have it go directly to website and when my site got stuck in a loop the apache crashed and I had to call the host and ask him to restart it! How imbarrasing! :'( Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/#findComment-337549 Share on other sites More sharing options...
448191 Posted August 30, 2007 Author Share Posted August 30, 2007 I disagree that infinite loops are bad. They can be useful for say, socket servers. But a construction loop is never good though. Quote Link to comment https://forums.phpfreaks.com/topic/66839-local-host-not-being-found-anymore/#findComment-337745 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.