×
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.
Brad,
For me, SERVER_PORT shows the correct port on 7.1.
What do SCRIPT_URI and HTTP_HOST contain?
Alan
--
Alan Seiden, PHP for IBM i Consultant and Advocate
PHP Lead Developer, new toolkit for IBM i
Zend Framework certified contributor
[1]
http://www.alanseiden.com | [2]alan@xxxxxxxxxxxxxx
[3]
http://alanseiden.com/tips
[4]
http://twitter.com/alanseiden
On 5/22/2012 12:16 PM, Bradley Stone wrote:
I was putting together an application for a client and planned on
using the SERVER_PORT as part of the program to know if the requests
were internal or external (ie port 80 is external, outside the LAN
coming through the firewall) and something like port 81 is inside the
LAN.
So, created on instance that points to conf running port 80, and
another instance that points to conf running port 81.
Well, SERVER_PORT always returns port 80, no matter which server
instance I'm connecting to.
This is V5R4. I verified the same thing happens on my machine which
is also V5R4.
Any ideas? Thanks!
Brad
References
Visible links
1.
http://www.alanseiden.com/
2. mailto:alan@xxxxxxxxxxxxxx
3.
http://alanseiden.com/tips
4.
http://twitter.com/alanseiden
As an Amazon Associate we earn from qualifying purchases.