MIDRANGE dot COM Mailing List Archive



MIDRANGE-L » January 2013

localhost weirdness



(Cross posted to Midrange and Web400)

Having a really weird problem with some PHP scripts that use DB2 connections and the i5_xxxx APIs.

Started when we moved to a new box (which is literally a clone of the original) - scripts that used 'localhost' started failing. Changing to 127.0.0.1 fixed it.

Other problems forced us to switch back to the old box which prior to switching out had been working just fine. It started failing in the same way - only thing that had happened in between was an IPL. No PHP upgrade, no code changes, nothing. Again switching to 127... fixed it.

Opened PMR and IBM requested a trace. No problem - change the script back. Now the original scripts work again with localhost - yet other scripts that use it still fail! Arrrgh - this is beginning to feel like Windows !!

Has anyone experienced anything similar?


Jon Paris

www.partner400.com
www.SystemiDeveloper.com









Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact