Jump to content

NASID Varible


Impius

Recommended Posts

Ok, I've been beating my head against a wall trying to figure this coding out, what I'm trying to do is to use the nasid of the device accessing the page to display different images dependent upon the nasid that access the page, so far I've either gotten a syntax error or I've gotten a blank spot on the page where the image should be displayed. this is what I have so far...
[code]
<?php
if (isset($_GET['nasid'])) {
if ($_GET['nasid'] === 'nasid1')
{ $image = "nasid1image"; }
elseif ($_GET['nasid'] === 'nasid2')
{ $image = "nasid2image"; }
print "<img src=\"$image\">"; }
[/code]
Thanks in advance,
Impius
Link to comment
Share on other sites

the NASID is basically a virtual serial code for any piece of hardware, motherboard, video card, sound car, ect in this case I'm concerned with the nasid of the router/modem that is accessing the page, I have the nasids of the hardware that I am working with so having those on hand isn't the issue.
Link to comment
Share on other sites

I'm pretty sure unless it's a windows box that your IIS user account has rights to (which is highly unlikely anyways), you could try to play around with [url=http://www.php.net/manual/en/ref.com.php]COM[/url].  But other than that, I'm pretty sure you'd need some custom executable that would perform some sort of RARP command to get the info it seems you're looking for.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.