Timeline for IP address or not?
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 24, 2018 at 12:34 | history | edited | Ismael Miguel | CC BY-SA 4.0 |
Grammatical corrections
|
Oct 23, 2018 at 15:16 | history | edited | Ismael Miguel | CC BY-SA 4.0 |
Fixed typo. Thank you Dennis!
|
Oct 23, 2018 at 13:18 | comment | added | Ismael Miguel | @Titus Totally forgot about this. Thank you for reminding me | |
Oct 23, 2018 at 13:18 | history | edited | Ismael Miguel | CC BY-SA 4.0 |
Saved 3 bytes
|
Oct 23, 2018 at 12:44 | comment | added | Titus |
+!! is not required; the OP now accepts arbitrary truthy values.
|
|
Oct 22, 2018 at 11:51 | comment | added | Ismael Miguel | @nwellnhof After testing, I confirm that that is the case. However, I don't think it is a good idea to use it, since it isn't explicitly documented. | |
Oct 22, 2018 at 11:50 | comment | added | Ismael Miguel | @BenoitEsnard Thank you! I've added it to the answer | |
Oct 22, 2018 at 11:50 | history | edited | Ismael Miguel | CC BY-SA 4.0 |
Reduced 1 byte, added more about ip2long
|
Oct 22, 2018 at 10:46 | comment | added | nwellnhof |
In newer PHP versions, ip2long doesn't allow incomplete addresses.
|
|
Oct 22, 2018 at 10:09 | comment | added | Benoit Esnard |
Using 5**9 instead of 1<<20 saves one byte here: PHP uses & to test the IPv4 / IPv6 flags, so any number between 1048576 and 2097151 is valid.
|
|
Oct 22, 2018 at 9:32 | history | edited | Ismael Miguel | CC BY-SA 4.0 |
added 474 characters in body
|
Oct 22, 2018 at 9:17 | history | answered | Ismael Miguel | CC BY-SA 4.0 |