Valhalla Legends Forums Archive | Web Development | PHP advice, please.

AuthorMessageTime
Dumb_Canadian
Hrmm.

So I'm using PHP v4.3.2 as an ISAPI extension to IIS v5.

The problem seems to be comming from my router (LinkSys BEFSR-41, wired,) when I try and obtain the server's IP, issued by my ISP. Instead, I seem to get the address of the router (192.168.1.1.)

Normaly, it sounds pretty simple, according to the literature I've read thus far (To use the HTTP_X_FORWARDED_FOR variable instead of REMOTE_ADDR, although that doesn't seem to work, either.)

Thx for the input/advice.
June 17, 2003, 9:59 AM
St0rm.iD
You're on a LAN, you don't know your external IP, unless someone else tells it to you.
June 17, 2003, 7:51 PM
Yoni
What St0rm means is: Put this PHP script on a remote server rather than a local one. It should give you your external IP then (if I understood correctly what it's supposed to do).
June 17, 2003, 8:45 PM
Dumb_Canadian
Ah, I see. Thx for the insight.
June 18, 2003, 2:56 AM
KoA-CrAzY
I might be able to help you on this one. (Correct me some one if I'm wrong.)

If I'm reading you question correct, then you cant get PHP working? Or do you mean you cant get a webserver up. We'll first you'll need to find out your Gateway to your router. Ex: 192.168.0.1. But that mayb not be yours. What you need to do is Goto you start menu, then hit "Run." After you do that type in the word, "cmd". A MSDos window should come up. Then type "ipconfig /all". After you do that hit enter and a bunch of information should come up. Look for your Gateway IP Adgress. It should start with 192.168. Once you have gotten it, open up Internet Explorer and type http://(then your gateway). (ex: http://192.168.0.1) I dont know much about LinkSYS router but you should have something come up eitehr asking for your Account/Login to your router. If you dont know if find it out lol. Login and search through your router looking for keyword: DMZ. Once you have found that it should say 192.168.0.Blank window. (Guessing your Ip is 192.168.0.1). Then type 1 in that box. and enable it. Save, then your router might ask you for a reboot, if it does hit yes. After that It Should work!
July 24, 2003, 6:36 PM
drake
A little off topic but why are you using IIS with PHP? I mean if your going to use IIS you might as well use ASP which is what its built for. Don't use a browser like IIS for a open source scripting language. It just seem stupid since your paying the bill for IIS but your not using the free goodie that comes with it. If you plan to use PHP you shouldn't waste money on IIS.
July 27, 2003, 1:17 AM
St0rm.iD
[quote author=drake link=board=22;threadid=1649;start=0#msg16090 date=1059268669] Don't use a browser like IIS for a open source scripting language.
[/quote]

Since IIS is a browser and everything...
July 30, 2003, 1:55 PM
Eibro
Since when did it cost anything? (The cost of Windows aside)
July 30, 2003, 5:56 PM
Grok
drake, IIS stands for "Internet Information Server", a free web server from Microsoft.

IIS includes a technology layer called ASP, which stands for "Active Server Pages".

ASP is not a language itself, but a scriptable ISAPI engine that outputs HTML over HTTP. ISAPI stands for Internet Server API. Vendors can write any script to communicate with ASP. Microsoft first provided just VBScript and JScript. Since then vendors have added support for other languages to script ASP.

Perl is also available to script ASP.

I hope this explains things for you.
July 30, 2003, 6:15 PM
drake
So your talking about the stripped down version provided with Microsoft.

Oh and thanks, I know what it is. I just didn't realize you were using the free Limited Edition.
July 31, 2003, 6:45 AM
Grok
Uh, ok.






Help.
July 31, 2003, 10:53 AM
Yoni
Ok Grok.

drake:
Various versions of IIS come with various editions of Windows NT.
There is no non-free edition.
There is no free "limited" edition or "stripped down" version.
Are you sure you're not confusing it with something else?

There used to be something called Personal Web Server (PWS), which was a Microsoft web server for Windows 9x. Could that be what you were thinking of?
July 31, 2003, 6:47 PM
Grok
Or could it be that someone sold him the "full version of IIS" and he paid for it?
July 31, 2003, 10:06 PM
drake
No I don't use IIS myself. Ya PWS was something downloadable for Windows 9.x

I think it used to cost money to use IIS but now its free with the newer operating systems. I was told that if you wanted the complete version that you needed to buy it and that the ones on the newer Windows versions were just simplified versions. I don't know who told me that but were wrong it would seem. Anyways I do know for a fact that IIS used to cost money.
July 31, 2003, 11:02 PM
Grok
I was going to try again but what's the point? It's not my job to correct your inaccurate facts.
August 1, 2003, 2:20 AM
drake
What is there to argue? You going to say that it WAS ALWAYS free? Cause I know for a fact that back in the pre 2000 days that wasn't but because Apache was killing them I think that made them switch to free probably.
August 1, 2003, 8:12 AM
Grok
I'm curious, how do you "know this for a fact"?
August 1, 2003, 12:58 PM
drake
Well back in the day when I was programming PHP3 I read multiple articles and books stating that to run IIS to use ASP which is an alternative to PHP, that you have to pay for the IIS software. This was when 98 and NT were the primary operating systems. I could be wrong but then that would mean my PHP books and some of the PHP sites would of been lying about the cost.
August 1, 2003, 6:56 PM
Grok
They were taking advantage of the fact you had to buy the operating system on which IIS runs. IIS has always been free, but it has always run only on Windows. It's too bad that PHP people had to resort to misrepresentation.

I did a google search to find any single page which indicates IIS has ever cost anything. Came up with nothing. I'd think if it was ever for sale, there would be some old web page displaying a cost or discussing its cost value.
August 2, 2003, 12:29 AM
Camel
[quote author=St0rm.iD link=board=22;threadid=1649;start=0#msg12527 date=1055879507]
You're on a LAN, you don't know your external IP, unless someone else tells it to you.
[/quote]

That's not entirely true: look under WAN\IP Address. Nobody else told me that -- unless you want to make my router a body. Without a router, one can use IPConfig (NT) or WinIPCfg (OT).

[img]http://camel.ik0ns.com:84/images/linksys.JPG[/img]
August 2, 2003, 6:00 AM
drake
Ya I am just gonna kick myself in the nuts then kick Ramus in the nuts. I have been propagandized by PHP Gurus and have never actually used IIS :(
August 2, 2003, 6:49 AM

Search