I have a php file that loops through an array to construct a url array.
$ Keywords = keyword_split ($ res ['keyword']); $ path = '../ajax/search. php? Key = '; foreach ($ keywords as $ k) {$ filename = $ path. $ k; $ content = How to call this php file and return content ???; Var_dump ($ content );}
Reply to discussion (solution)
$ Content = file_get_contents ($ filename); try
$ Content = file_get_contents ($ filename); try this. File_get_content does not support url with parameters
$ Content = file_get_contents ($ filename); try this. File_get_content does not support url with parameters
If you want to include the following parameters, you must bring the http protocol http ://.................
I didn't think of a solution to directly use a local php file with parameters.
$ Content = file_get_contents ($ filename); try this. File_get_content does not support url with parameters
If you want to include the following parameters, you must bring the http protocol http ://.................
I didn't think of a solution to directly use a local php file with parameters. I still wrote a js file on the page and called it using ajax. I didn't think of a good solution yet.
You just need to add http to the server.