Call PHP function from url?

前端 未结 14 1627
清歌不尽
清歌不尽 2020-12-04 15:50

If I want to execute a php script, i just point the browser to www.something.com/myscript.php

But if i want to execute a specific function inside

14条回答
  •  佛祖请我去吃肉
    2020-12-04 16:20

    There are several ways.

    One way would be to pass the function name as a GET Parameter, and depending on it's existence you could call the function.

提交回复
热议问题