| 12345678910111213141516171819202122 |
- <?php
- /**
- * Created by PhpStorm.
- * User: chendeben
- * Date: 2019-01-22
- * Time: 13:38
- */
- namespace Heanup;
- class Request extends \Thread
- {
- public $url;
- public $response;
- public function __construct($url) {
- $this->url = $url;
- }
- public function run() {
- $this->response = file_get_contents($this->url);
- }
- }
|