0
Good morning guys, I need to create a list of valid ips from my network. I have 15 class A subnets. That is, my network is 10.5.5.0 until 10.5.20.255. I was thinking something like: $IP
for (i=1; i<255; i++)
do $IP.$i
However, in this logic, I would only create class C ips.
This list would be inserted into a mysql table.
I await suggestions.
Thank you very much Luis. I understand the logic. But how can I generate this for a INSERT in a mysql table?
– Anderson Fidelis
Using PDO(recommended):http://php.net/manual/en/book.pdo.php Or mysqli: https://secure.php.net/manual/en/book.mysqli.php.
– Luís Eduardo