开发者

Create dynamically a webpage according to variables and save it

I've created a website which takes the parameters of a query and I'd like to create and redirect to a webpage having as URL my_site/first_parameter-second_开发者_Python百科parameter.php

So far I am able to display in the browser the address of the page but the thing is that I don't know how to really create and save it.


If i understand your question correctly, you can just create html files at the location that you receive? Ist that what you want?

http://www.tizag.com/phpT/filewrite.php

You can then use your location inside fopen. (Make sure, that the user associated with the webserver has the access rights on that path).

And then you can write your contents into that file.


This is generally handled through the .htaccess file for url rewriting. Generally, its one file that handles all the requests. There is a ton of questions already on the subject so I won't go into much detail.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜