With a problem here, I need to separate a two-part IP string between the address and the port.
Example:
$string = 127.0.0.1:7777;
$string = px01.carbonhost.com.br:7786
Turn around:
$string1 = 127.0.0.1;
$string2 = 7777;
$string1 = px01.carbonhost.com.br;
$string2 = 7786;
This would be the easiest way for me, the other solution would be to have the user put the IP and Port separately, the problem is that many have already registered the IP with the port.
Can anyone help me?