file_get_contents with query string

前端 未结 4 579
粉色の甜心
粉色の甜心 2020-12-06 22:33

i am trying to send email from php i have one php file with all values & other php template file.

(both files are on same server)

i am using file_get_co

4条回答
  •  死守一世寂寞
    2020-12-06 23:23

    $url = sprintf("%s://%s",  isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http', $_SERVER['SERVER_NAME']);
    $content = file_get_contents($url."/file.php?test=".$test);
    echo $content;
    

提交回复
热议问题