像“www.site.com/file.php/page" [英] Pages like "www.site.com/file.php/page"

查看:121
本文介绍了像“www.site.com/file.php/page"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!我看过像http://www.example.com/index.php/page/2/

这样的网页,我想知道如何处理/处理/ page / 2 /在index.php里面,一旦我得到并处理字符串,我想向用户显示相应的页面。任何想法?

解决方案

Probabaly你的意思是URL mod_rewrite。对于PHP,你可以用apache mod rewrite来做到这一点。请参阅: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html [ ^ ]


以上链接已损坏,您的问题不是很清楚。如果您想知道如何创建网站,请尝试研究ASP.NET或类似网站。


嗨!我已经找到了我想要的print_r函数。

对于有问题的人:



1.使页面像想象www.example.com是我们的服务器

和www.example.com/index.php/page/2是所需的页面



2.在www.example.com/index.php中获取的价值

Hello! I've seen pages like http://www.example.com/index.php/page/2/
and I want how know how to handle/process the "/page/2/" inside index.php and once I get and process the string I want to show the coresponding page to the user. Any ideas?

解决方案

Probabaly you mean URL mod_rewrite. For PHP you can do that with apache mod rewrite. See: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html[^]


The above link is broken and your question is not very clear. If you want to know how to create a website then try researching ASP.NET or similar.


Hi! I've found what I wanted with the print_r function.
For the ones who have my problem:

1.To make page like that imagine that www.example.com is our server
and www.example.com/index.php/page/2 is the desired page

2.In www.example.com/index.php get the value of


这篇关于像“www.site.com/file.php/page"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆