  Press2Esc
join:2005-07-03 SC
·AT&T Southeast
| reply to Gwellin Re: Executing a (DOS) command from webpage.
said by Gwellin :Ya, running a local script from a browser is not going to happen, but sending them to a simple webpage can just as easily give them their IP address to copy and paste. Just look here: » /whois This is a reasonable example of what I was originally asking about... In this case, a person would simply click on a link and, after they are redirected to a different url, the results of a system inquiry is displayed showing the PCs public IP addr. |
|
  Gwellin Premium join:2004-05-31 Regina, SK
·Access Communicati..
| There is nothing the system has to do beyond what it normally does to request the webpage. In other words, by contacting the server it learns the requesting computers public IP address, you simply need to output it. In a PHP file (on the server) you would use the following line of code:
-- Here to help all those in need, whenever I can. |
|
  Press2Esc
join:2005-07-03 SC
·AT&T Southeast
| said by Gwellin :In a PHP file (on the server) you would use the following line of code: thanks GWellin, this is helpful. |
|