www.abc.com/profile?type=abc 这种形式是怎么实现的?什么语言可以实现 据说是用JSP中的Servlet写的程序 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在服务端用re_write组件可以实现 PHP我觉得应该不行,但是PHP可以做成www.abc.com/profile/?type=abc实际上就是这样就相当于www.abc.com/profile/index.php?type=abc呵呵 我的也可以耶,假如我要访问http://hgxxx007/player.php我可以直接http://hgxxx007/player 带参数就是http://hgxxx007/player?id=5342143但是我这样放在服务商的服务器上就不行了 这样你看看www.abc.com/profile/index.php?type=abc=www.abc.com/profile/?type=abc www.abc.com/profile?type=abc servlet做的,使用的是java语言 不好意思,我这样访问http://hgxxx007/a_-_d/index.php?id=5555http://hgxxx007/a_-_d/?id=5555http://hgxxx007/a_-_d?id=5555都可以的,访问正常 其实那不是什么表面功夫。。确实是servlet开发的。 我能不用servlet就可以达到和用servlet的效果一样那我为什么还要去用servlet呢 servlet是什么啊? 怎么用啊?各位大侠详细一点俺 --- 菜鸟一个 :( 回复人: hgxxx007(江南果冻) ( ) 信誉:100 2004-07-19 21:23:00 得分: 0 我能不用servlet就可以达到和用servlet的效果一样那我为什么还要去用servlet呢 =====================================you are so funny...你觉得servlet能做的就是把文件扩展名隐藏吗? PHP我觉得应该不行,但是PHP可以做成www.abc.com/profile/?type=abc实际上就是这样就相当于www.abc.com/profile/index.php?type=abc呵呵================================这位朋友说得对。 下面那种写法也可以这样访问www.abc.com/profile/?type=abc效果不是一样? 呵呵。 呵呵,明明是CGI的东东嘛...在Unix/Linux/BSD下的文件是不需要扩展名的,所以直接写成profiel?type=abc就可以... 呵呵,明明是CGI的东东嘛...在Unix/Linux/BSD下的文件是不需要扩展名的,所以直接写成profiel?type=abc就可以...说得对极了.怎么说php不行!主要看你的平台怎么设置的问题啦. 在windows下如何实现呢?如何使每一个文件都可以用 www.aaa.com/profile/?type=123 这种形式访问那么要岂不要为每一个文件建立一个文件夹? 在windows下用Perl可以实现你的要求 http://forum.douzhe.com/forum/viewtopic.php?t=845我改的PHPBB2论坛`http://www.xxiyy.com/phpBB2/233.htmhttp://www.xxiyy.com/phpBB2/7 Apache + Perl 安装好就可以了!Windows 下:无论www.abc.com/profile?type=abc还是www.abc.com/profile.cgi?type=abcwww.abc.com/profile.123?type=abcwww.abc.com/profile.888?type=abcwww.abc.com/profile.asp?type=abcwww.abc.com/profile.c?type=abcwww.abc.com/profile.bas?type=abcwww.abc.com/profile.php?type=abcwww.abc.com/profile.ald.....sl...www.abchij.com.lll....jgfladlgj?type=abc均可以只要Windows 认可的文件名就可以了!我已经测试过! 基本上与语言没有关系,web server的设置啦。 to cxinfo(小Q): www.abc.com/profile?type=abc 这种形式也可以吗? 象www.abc.com/profile.cgi?type=abc www.abc.com/profile.123?type=abc这样在apache里设置一下就可以了 可是profile没有扩展名啊~ 我如何设置呢? 除了普遍jsp的外,php也可以实现,只要解析php为无扩展名就可以了,培植web服务器。以前看过这方面的文章,但没有收藏。呵呵。 那么如何解析PHP为无扩展名呢?寻求该教程! to: zhiin(〃稚鹰〃)Perl不需要作任何设置的,只要正确安装Perl在 Windows 中即可!因为Perl没有硬性的扩展名规定,即无扩展名也可!一般Perl用.pl/.cgi有兴趣的话可以看一下,我在作过的测试:下边的连接都是相同的Perl程序http://cxsoft.net/cgi-bin/100http://cxsoft.net/cgi-bin/index.cgihttp://cxsoft.net/cgi-bin/indexhttp://cxsoft.net/cgi-bin/index.adskf;lwww.hotmail.comajdglaljdjklgf;'adghttp://cxsoft.net/cgi-bin/index.chttp://cxsoft.net/cgi-bin/index.phphttp://cxsoft.net/cgi-bin/index.plhttp://cxsoft.net/cgi-bin/profiletype=abchttp://cxsoft.net/cgi-bin/profile 我测试了一下 Apache + php 无法实现你的要求,不知其他服务器是否可以?但可以使用 ecobin(绿茵汗将)(別說我的眼淚你無所謂) 变通的方法可以的! 中文查询:select where gender='男' ??????????????? 菜鸟弱问:$str到底该怎么用? OAuth认证的 HMAC-SHA1签署 实现~求教~~ 请问这种结果如何实现? 兄弟姐妹们再来看一下 分页的问题 PHP 中是否有让一个include语句失效的函数? 找高人答疑!PHP+XML apache 的配置,请教如何增加一个虚拟主机 在sql server中用php实现分页显示的方法和思想? phpMyAdmin 2.5.3 - 登入 的问题 请帮我看一下!! 请问如何在PHPMYADMIN中加上认证?
www.abc.com/profile/?type=abc实际上就是这样就相当于
www.abc.com/profile/index.php?type=abc呵呵
=
www.abc.com/profile/?type=abc
http://hgxxx007/a_-_d/index.php?id=5555
http://hgxxx007/a_-_d/?id=5555
http://hgxxx007/a_-_d?id=5555
都可以的,访问正常
我能不用servlet就可以达到和用servlet的效果一样
那我为什么还要去用servlet呢
=====================================
you are so funny...你觉得servlet能做的就是把文件扩展名隐藏吗?
www.abc.com/profile/?type=abc实际上就是这样就相当于
www.abc.com/profile/index.php?type=abc呵呵
================================
这位朋友说得对。 下面那种写法也可以这样访问
www.abc.com/profile/?type=abc效果不是一样? 呵呵。
在Unix/Linux/BSD下的文件是不需要扩展名的,所以直接写成profiel?type=abc就可以...
在Unix/Linux/BSD下的文件是不需要扩展名的,所以直接写成profiel?type=abc就可以...说得对极了.怎么说php不行!主要看你的平台怎么设置的问题啦.
http://www.xxiyy.com/phpBB2/233.htm
http://www.xxiyy.com/phpBB2/7
无论
www.abc.com/profile?type=abc
还是
www.abc.com/profile.cgi?type=abc
www.abc.com/profile.123?type=abc
www.abc.com/profile.888?type=abc
www.abc.com/profile.asp?type=abc
www.abc.com/profile.c?type=abc
www.abc.com/profile.bas?type=abc
www.abc.com/profile.php?type=abc
www.abc.com/profile.ald.....sl...www.abchij.com.lll....jgfladlgj?type=abc均可以
只要Windows 认可的文件名就可以了!
我已经测试过!
以前看过这方面的文章,但没有收藏。呵呵。
Perl不需要作任何设置的,只要正确安装Perl在 Windows 中即可!因为Perl没有硬性的扩展名规定,即无扩展名也可!一般Perl用.pl/.cgi有兴趣的话可以看一下,我在作过的测试:
下边的连接都是相同的Perl程序
http://cxsoft.net/cgi-bin/100
http://cxsoft.net/cgi-bin/index.cgi
http://cxsoft.net/cgi-bin/index
http://cxsoft.net/cgi-bin/index.adskf;lwww.hotmail.comajdglaljdjklgf;'adg
http://cxsoft.net/cgi-bin/index.c
http://cxsoft.net/cgi-bin/index.php
http://cxsoft.net/cgi-bin/index.pl
http://cxsoft.net/cgi-bin/profiletype=abc
http://cxsoft.net/cgi-bin/profile