× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Jon,

try to check your CHGTCPDMN "Host Name search prriority" is it *LOCAL ?

also try to check WW TCP/IP Host Table Entries - there should be a
127.0.0.1 with
2 host name - LOOPBACK and LOCALHOST


On Mon, Jan 28, 2013 at 6:22 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

(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




--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.