Can anyone help me with this?
I have a text file that contains a huge list of blocked IP address to my website, and the list gets auto updated daily.
I need a PHP script that will automatically organize them in numerical order.
Below is a list of today’s additions to the test file - Each addition to the text file always gets auto added to the end of the files previous entry just as you see it below.
I need the script to numerically organize the entire huge list every time i run it, not just the newest additions.
Here is the list of today’s unorganized additions:
222.77.218.153,153.218.77.222.broad.pt.fj.dynamic.163data.com.cn,
1.161.149.28,1-161-149-28.dynamic.hinet.net,
112.101.64.103,112.101.64.103,
146.0.74.210,socalweatherupdates.info,
59.58.159.109,109.159.58.59.broad.pt.fj.dynamic.163data.com.cn,
5.39.217.83,5.39.217.83,
94.153.10.148,94-153-10-148-lvv.broadband.kyivstar.net,
128.73.219.101,128-73-219-101.broadband.corbina.ru,
124.201.123.103,124.201.123.103,
59.58.157.242,242.157.58.59.broad.pt.fj.dynamic.163data.com.cn,
1.161.131.88,1-161-131-88.dynamic.hinet.net,
178.73.212.244,178.73.212.244,
188.165.240.186,ks390108.kimsufi.com,
120.33.241.66,66.241.33.120.broad.pt.fj.dynamic.163data.com.cn,
2.92.141.39,2.92.141.39,
46.118.118.103,sol-fttb.103.118.118.46.sovam.net.ua,
183.62.115.227,183.62.115.227,
5.39.217.56,5.39.217.56,
2.92.141.39,2.92.141.39,
96.41.164.48,96-41-164-48.dhcp.mdfd.or.charter.com,
117.27.138.176,117.27.138.176,
37.59.64.248,37.59.64.248,
91.218.245.253,91.218.245.253,
121.228.10.47,47.10.228.121.broad.sz.js.dynamic.163data.com.cn,
1.161.134.53,1-161-134-53.dynamic.hinet.net,
5.39.217.47,5.39.217.47,
I need it to sort the info to like this:
1.161.131.88,1-161-131-88.dynamic.hinet.net,
1.161.134.53,1-161-134-53.dynamic.hinet.net,
1.161.149.28,1-161-149-28.dynamic.hinet.net,
112.101.64.103,112.101.64.103,
117.27.138.176,117.27.138.176,
120.33.241.66,66.241.33.120.broad.pt.fj.dynamic.163data.com.cn,
121.228.10.47,47.10.228.121.broad.sz.js.dynamic.163data.com.cn,
124.201.123.103,124.201.123.103,
128.73.219.101,128-73-219-101.broadband.corbina.ru,
146.0.74.210,socalweatherupdates.info,
178.73.212.244,178.73.212.244,
183.62.115.227,183.62.115.227,
188.165.240.186,ks390108.kimsufi.com,
2.92.141.39,2.92.141.39,
2.92.141.39,2.92.141.39,
222.77.218.153,153.218.77.222.broad.pt.fj.dynamic.163data.com.cn,
37.59.64.248,37.59.64.248,
46.118.118.103,sol-fttb.103.118.118.46.sovam.net.ua,
5.39.217.47,5.39.217.47,
5.39.217.56,5.39.217.56,
5.39.217.83,5.39.217.83,
59.58.157.242,242.157.58.59.broad.pt.fj.dynamic.163data.com.cn,
59.58.159.109,109.159.58.59.broad.pt.fj.dynamic.163data.com.cn,
91.218.245.253,91.218.245.253,
94.153.10.148,94-153-10-148-lvv.broadband.kyivstar.net,
96.41.164.48,96-41-164-48.dhcp.mdfd.or.charter.com,
Thank you to anyone that can help me out…