how to pass a variable through the require() or include() function of php?

后端 未结 9 2100
梦如初夏
梦如初夏 2021-02-06 21:34

when I use this:

require(\"diggstyle_code.php?page=$page_no\");

the warning is :failed to open stream: No error in C:\\xampp\\htdocs\\4ajax\\ga

9条回答
  •  终归单人心
    2021-02-06 22:27

    require doesn't pull the file from the web server - it should refer to a file on the filesystem instead.

    Calling include or require just tells PHP to paste the contents of the given file in your code at this place, nothing more than that.

提交回复
热议问题