I have a php file that loops through an array to construct a url array. $ Keywords & nbsp; = & nbsp; keyword_split ($ res ['keyword']); $ path = '../ajax/search. ph php call local php files
I have a php file. I want to loop 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 );
}
Share:
------ Solution --------------------
Reference:
Quote: reference:
$ Content = file_get_contents ($ filename); try
This is not acceptable. 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.