shopxo icon indicating copy to clipboard operation
shopxo copied to clipboard

第一次安装的时候报错 Call to undefined function parse_MyUrl()

Open 0987363 opened this issue 3 years ago • 0 comments

nginx端口8443 php版本 7.2.24

 * @author   Devil
 * @blog     http://gong.gg/
 * @version  0.0.1
 * @datetime 2016-12-03T21:58:54+0800
 * @param    [string] $url  [url地址]
 * @param    [string] $data [发送参数]
 */
function FsockopenPost($url, $data = '')
{
    $row = parse_MyUrl($url);
    $host = $row['host'];
    $port = isset($row['port']) ? $row['port'] : 80;
    $file = $row['path'];
    $post = '';
    while (list($k,$v) = FunEach($data)) 
    {
        if(isset($k) && isset($v)) $post .= rawurlencode($k)."=".rawurlencode($v)."&"; //转URL标准码
    }
    $post = substr( $post , 0 , -1 );

0987363 avatar Nov 16 '21 08:11 0987363