function getProxy() { if (!empty($_GET['radomProxy'])) { require __DIR__ . '/library/getProxy.php'; $hoge = new Proxy(); $hoge->setRandomProxyAndPort(); $proxy = $hoge->getProxy() . ":" . $hoge->getPort(); return $proxy; } else { return false; } }