开发者

How to automatically create a page?

Here is my website : http://searchr.us/web-search.phtml

So now,once anyone searches in that page it comes like this :

http://searchr.us/web-search.phtml?search=SEARCHED+TEXT

So now what i want to do is that when a person searches anything for that matter.A page with its title called

http://searchr.开发者_开发知识库us/web-search.phtml?search=SEARCHED+TEXT.html

Or something like that which has the keywords in the title and the content he searched in the body.

Hope you understood the question.

Thanking You, 5416339


The question mark is not valid in a URL path; it is used to separate the path from the query string. You will need to detect the presence of a previous search and serve that content up yourself. Putting the search results in a file named after the search terms in a separate directory is a good idea though. See fopen(), fwrite(), fclose(), and readfile().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜