| Cheshire Cat Computing http://www.steveshipway.org/forum/  | 
|
| multiple IPs with UPDown http://www.steveshipway.org/forum/viewtopic.php?f=4&t=1024  | 
	Page 1 of 1 | 
| Author: | netguy2000 [ Wed Dec 20, 2006 8:22 pm ] | 
| Post subject: | multiple IPs with UPDown | 
| Author: | stevesh [ Thu Dec 21, 2006 11:20 am ] | 
| Post subject: | |
| Author: | netguy2000 [ Thu Dec 21, 2006 8:38 pm ] | 
| Post subject: | |
| Author: | netguy2000 [ Fri Feb 23, 2007 2:57 am ] | 
| Post subject: | |
At last i am able to full fill my request. and now I have a script with some files (update manually for IP and its description) and a script to reade these files and create a list of images in 3rd file and then it shows me on website. anyone need this plzz contact me on this fourm. Rizwan.  | 
	|
| Author: | Jennyknight [ Mon Dec 12, 2011 11:02 pm ] | 
| Post subject: | Re: multiple IPs with UPDown | 
Can I just check... are the permission of the updated files automatically modified to 0666 as I have been led to believe and, assuming that is the case, do you have to manually change permissions for security reasons?  | 
	|
| Author: | netguy2000 [ Wed Jan 18, 2012 11:03 pm ] | 
| Post subject: | Re: multiple IPs with UPDown | 
Now I am able to use UPDOWN.CGI script in my .php website, idea is to read ips from my database and use these IPs to create PNG (UP, DOWN) file in a table. here is my .php file for other peoples. <?php $user_name = "root"; $password = "mypassword"; $database = "mydatabase"; $server = "127.0.0.1"; $db_handle = mysql_connect($serve, $user_name, $password); $db_found = mysql_select_db($database,$db_handle); if ($db_found) { $SQL = "SELECT IP FROM mydbtable LIMIT 0, 254"; $result = mysql_query($SQL); while ($row = mysql_fetch_row($result)) { foreach($row as $cell) ; $cgi = "<IMG src=/cgi-bin/updown.cgi?host=".$cell." &mode=icmp>" ; echo "<table border='1'> <tr> <td> .$cell. </td> <td> .$cgi. </td> </tr> </table>"; } mysql_close($db_handle); } else { print "Database NOT Found "; } with the help of this .php file I am able to see which IP of my network is UP and which one is DOWN. all IPs read from mysql database. Rizwan.  | 
	|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] | 
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/  | 
|