在linux系统下的PHP.txt 335 B

1234567891011121314
  1. <?php
  2. $url="http://service.winic.org/sys_port/gateway/?id=%s&pwd=%s&to=%s&content=%s&time=";
  3. $id = urlencode("yyii");
  4. $pwd = urlencode("p@\$\$w0rd");
  5. $to = urlencode("15010908948");
  6. $content = urlencode("1234567890");
  7. $rurl = sprintf($url, $id, $pwd, $to, $content);
  8. printf("url=%s\n", $rurl);
  9. $ret = file($rurl);
  10. print_r($ret);
  11. ?>