| 123456789 |
- <?php
- $port=rand(50000, 60000);
- $str=file_get_contents("./proxy.pac");
- $pat="/proxy\.97admin\.com:\d+/";
- $new_str=preg_replace($pat, "proxy.97admin.com:".$port, $str);
- // $new_str=str_replace("", "", $str);
- file_put_contents("./proxy.pac", $new_str);
- file_put_contents("./proxy.txt",$port);
- echo $port;
|