i think my post has been misunderstood..(not by anyones fault but my own I'm sure) what I wanted was a server that would be able to (through a PHP interface) scan an IP range and get information such as OS and IP. Something like what you can do with NMAP. I dont want those PC's to have to view the script on the server (I understand how a server/client environment works).
I found php nmap which I could probably customise and filter to get at least some of the details I want but to run this script I have to suid root nmap which is a huge security risk and is not worth the additional functionality I want to add into my audit logs.
to be more specific, I have an audit software I am writing on Server1. I want to run a command from the PHP frontend (through my browser on a client) and specify an ip or ip range. I will then ensure that the IP address is an internal IP address and not an outside one (to stop people using this to bombard a server with requests). Once confirmed the script will then run the scans, return a list of active Computers that are not already in my database or which seem to have changed IP's and give the user the option to add that into the database and enter more data for that machine.
I am NOT trying to have the clients request a page and give OS details etc.
If this cant be done without creating major security issues (as suid root nmap may do) I may consider building a small webserver to sit on each client PC that will gather their own OS, IP and Hostname and send that to my Audit Server through HTTP. This is not the best option as I dont want any installations required on the clients if possible.
Is that a bit clearer?