# Checking system preferences

**URL:** <https://forum.kirupa.com/t/checking-system-preferences/13899>\
**Category:** Uncategorized\
**Created:** [February 19, 2003, 4:37pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899 "2003-02-19T16:37:59Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![postatomic](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@postatomic](https://forum.kirupa.com/u/postatomic)\
**Post date:** [February 19, 2003, 4:37pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/1 "2003-02-19T16:37:59Z")

</div>

hi all…

I was just on a site that pulled up my computers system data;

it told me my id address, server address, broswer info, etc etc…

how i that done…I lay it at your feet to rub your chin at…

postatomic :evil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 5:04pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/2 "2003-02-19T17:04:53Z")

</div>

There are certain ways you can do that… But… Now the question is… What medium do you wnat to use to figure it out?

Flash  
PHP  
JavaScript

???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 5:18pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/3 "2003-02-19T17:18:22Z")

</div>

well it was a flash site that did all this…so i would go for flash…just want to know how its done really…don’t think i could use it on my site…but its all knowledge and one day it might come in handy…

out of the three i choose flash…

postatomic:evil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 19, 2003, 9:26pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/4 "2003-02-19T21:26:20Z")

</div>

you grab my interest…and leave me hanging

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 5:04am UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/5 "2003-02-20T05:04:19Z")

</div>

Some links you might find interesting…

[http://forums.devshed.com/showthread.php?threadid=30755](http://forums.devshed.com/showthread.php?threadid=30755)  
[http://www.phpbuilder.com/mail/php-windows/2002071/0050.php](http://www.phpbuilder.com/mail/php-windows/2002071/0050.php)  
[http://forums.devshed.com/t49667/sdbd9e898eae953c02eb411cc3e95263d.html](http://forums.devshed.com/t49667/sdbd9e898eae953c02eb411cc3e95263d.html)

I just googled with ‘get ip address flash’… You can do this with the JavaScript, so if you want, you can check it out too… Not sure if this can be done with Flash only method or not… Guess we’ll have to wait for playamarz to clarify that…

:cowboy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 10:24am UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/6 "2003-02-20T10:24:08Z")

</div>

I’ll hve a look now…thanks for the links…  
google is the saviour:pope:

postatomic:evil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 12:37pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/7 "2003-02-20T12:37:40Z")

</div>

read and digested…

still not sure…

any more Ideas…

postatomic:evil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 8:46pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/8 "2003-02-20T20:46:57Z")

</div>

Hm… Where is playamarz??? Too busy to deal with K-team, eh??? :q:

postatomic… Can you use PHP and Flash integration to get those kind of information to be displayed on the screen??? Can you use PHP on your host???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 22, 2003, 7:32am UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/9 "2003-02-22T07:32:36Z")

</div>

Cyan blue…

Not sure mate…never used PHP before…I’ll have to investigate and keep you informed…obviously you can do it…its just research…

still if anyone can give a clear way of doing it that would be great

postatomic:evil:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 4:51am UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/10 "2003-02-23T04:51:40Z")

</div>

:sigh: 😠 :crazy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 7:12am UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/11 "2003-02-23T07:12:58Z")

</div>

All the server information was most likely relayed to their flash document to be displayed by PHP or ASP or soemthing of the such…

With FLASH MX… You can find out Screen Resolutions and DPI’s and Color settings. But nothing else other than that. So basically…

Search aroudn these forums for the loadVars() tutorials on how to load up a text file or php print"" and then PM me… I’ll write you a small script for sending ip and server data through to FLASH to be displayed.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 9:34am UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/12 "2003-02-23T09:34:25Z")

</div>

Now you are back, playamarz… :beam:

Well… I don’t know when you are going to see this thread again… I thought that I’d just keep this on the forum rather than PMing you so that other people can get benefitted… =)

Having said that, playamarz made me to look up the PHP manual more… I thought that he’d show us some script… :bandit: Since he didn’t he’s gotta see if my script is right or wrong… (I am not really great in PHP myself, I admit, but I’ve been using it for some time and getting something out of this kind of useful lessons… Thank you, playamarz… 😉 Besides that, all the answer was in the PHP manual…)

```php
// Flash script
// sysInfo.fla

infoLVs = new LoadVars();
infoLVs.sendAndLoad("http://localhost/sysInfo.php?uniqueID=" + getTimer(), infoLVs, "POST");
infoLVs.onLoad = function(success)
{
	sysInfoArray = new Array();
	for (i in infoLVs)
	{
		if ((i != "onLoad") && (infoLVs* != infoLVs.QUERY_STRING))
			sysInfoArray.unshift({info:i, value:infoLVs*});
	}
	for (i = 0 ; i < sysInfoArray.length ; i++)
		trace(sysInfoArray*.info + " --- " + sysInfoArray*.value);
}

```

```php
// PHP script
// sysInfo.php

<?php
	function display($ar)
	{
		while(list($key, $val) = each($ar))
		{
			echo("&$key=" . $val . "&");
			if (is_array($val))
			{
				display($val);
			}
		}
	}
	display($HTTP_SERVER_VARS);
?>

```

> Trace output

ALLUSERSPROFILE — D:\Documents and Settings\All Users  
CommonProgramFiles — D:\Program Files\Common Files  
COMPUTERNAME — LINDA  
ComSpec — D:\WINNT\system32\cmd.exe  
CONTENT\_LENGTH — 0  
CONTENT\_TYPE — application/x-www-form-urlencoded  
GATEWAY\_INTERFACE — CGI/1.1  
HTTPS — off  
HTTP\_HOST — localhost  
HTTP\_REFERER — [http://localhost/sysInfo.php?uniqueID=60](http://localhost/sysInfo.php?uniqueID=60)  
HTTP\_USER\_AGENT — Shockwave Flash  
HTTP\_CONTENT\_LENGTH — 0  
HTTP\_CONTENT\_TYPE — application/x-www-form-urlencoded  
HTTP\_CACHE\_CONTROL — no-cache  
INSTANCE\_ID — 1  
LOCAL\_ADDR — 127.0.0.1  
NUMBER\_OF\_PROCESSORS — 1  
Os2LibPath — D:\WINNT\system32\os2\dll;  
OS — Windows\_NT  
Path — d:\g\imagemagick;D:\WINNT\system32;D:\WINNT;D:\WINNT\System32\Wbem  
PATHEXT — .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH  
PATH\_TRANSLATED — d:\inetpub\wwwroot\sysInfo.php  
PROCESSOR\_ARCHITECTURE — x86  
PROCESSOR\_IDENTIFIER — x86 Family 6 Model 6 Stepping 0, GenuineIntel  
PROCESSOR\_LEVEL — 6  
PROCESSOR\_REVISION — 0600  
ProgramFiles — D:\Program Files  
REMOTE\_ADDR — 127.0.0.1  
REMOTE\_HOST — 127.0.0.1  
REQUEST\_METHOD — GET  
SCRIPT\_NAME — /sysInfo.php  
SERVER\_NAME — localhost  
SERVER\_PORT — 80  
SERVER\_PORT\_SECURE — 0  
SERVER\_PROTOCOL — HTTP/1.1  
SERVER\_SOFTWARE — Microsoft-IIS/5.0  
SystemDrive — D:  
SystemRoot — D:\WINNT  
TEMP — D:\WINNT\TEMP  
TMP — D:\WINNT\TEMP  
USERPROFILE — D:\Documents and Settings\Default User  
windir — D:\WINNT  
SCRIPT\_FILENAME — d:\inetpub\wwwroot\sysInfo.php  
PHP\_SELF — /sysInfo.php  
argv — Array  
argc — 1  
Now, everybody knows how slow my computer is and so on… :bad:

One strange thing though… See this output, REQUEST\_METHOD??? In my Flash code, I have it with “POST” and the return value comes as “GET”… And another strange one is ‘USERPROFILE’ which is set to ‘Default User’ when I am logged in as an adminstrator on this computer… What’s up with that??? Hm… :q:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 9:54pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/13 "2003-02-23T21:54:23Z")

</div>

Hello!

I need to check system Info from our cbt which is Published as .exe. Any ideas how to fit this into what we are doing?

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 10:22pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/14 "2003-02-23T22:22:39Z")

</div>

I have a very good teaching method I think… I very rarely give people exact lines of code… Not alot of people can learn by just looking at code… So I give them algorithsm and small help form time to time… Would you have actually looked up the research yourself and done it all if I would have just given you gusy the right stuff? Most likely not… 😉

Now you know my ways… Good job on the coding…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 10:39pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/15 "2003-02-23T22:39:21Z")

</div>

Thank you, playamarz… I like the way you teach others… Yup… There is no point of helping others if they don’t know what you are really mening… Some code can help you to get through the problem someone has, but he/she will keep coming back to you with the same problem over and over if you do that… Sad, but true… :\*(

Now… Back to the script… Like I have said, I am learning PHP bit by bit… I know how to mix and cut to get what I want, but I’d like to know if the code that I have is efficient or right way of doing it… Give me some pointer, would you??? :rambo:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 10:42pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/16 "2003-02-23T22:42:32Z")

</div>

cyndibrown…

I have a question for you in your [other thread](http://www.kirupaforum.com/showthread.php?s=&postid=119851#post119851)… Check it out and let me know in that thread… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 11:22pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/17 "2003-02-23T23:22:48Z")

</div>

As long as the code isn’t 20 million lines long… Yours is okay…

PHP isn’t looped around millions of times typically so you don’t really have to worry about it being efficient… Just as long as it works.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 23, 2003, 11:39pm UTC](https://forum.kirupa.com/t/checking-system-preferences/13899/18 "2003-02-23T23:39:28Z")

</div>

Okay… Thanks for the comfort… =)
