PHP Require and Include GET

前端 未结 4 609
清酒与你
清酒与你 2021-01-13 05:39

I would like to require a file but also pass GET variables through the url, but when I write:

         


        
4条回答
  •  攒了一身酷
    2021-01-13 06:40

    I think I have got a perfect solution to your problem. You can use implode function of PHP. But I would strongly recommend doing Shakti Singh's code.

    SOLUTION CODE

    echo implode(file('http://path-to-your-site/your-dir/myfile.php?name=savagewood'));
    

提交回复
热议问题