473,396 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Accessing an ASP as /script.asp/param


In order to facilitate search engine indexing, I'd like to be able to
access a script using something like this:

http://server/script.asp/param

where this would execute script.asp which could then retrieve the extra
data "param" using the PATH_INFO server variable. PHP has a feature
similar to this and I've heard that IIS can do the same thing but I'm not
quite sure how. I've already enabled PATH_INFO as detailed here:

http://support.microsoft.com/default...NoWebContent=1

However, when I try to access a URL like the above, I just get a 404
presumably because IIS is looking for a directory called script.asp. How
do I make it execute the script instead?

Thank you
Jul 19 '05 #1
3 2420
Is this actually a feature in PHP? Can you point me to the docs? Usually I
have seen this as a feature of Apache (via mod_rewrite).

With IIS, the only way I have seen is via an ISAPI filter that rewrites the
request. There are commercial versions available, and no doubt freeware
versions as well.

I believe there is a simple version available for IIS6 in the IIS 6 Resource
Kit tools:
http://www.microsoft.com/downloads/d...DisplayLang=en

Cheers
Ken

"Jedediah Smith" <je************@silencegreysREMOVE.com> wrote in message
news:op**************@news1.on.sympatico.ca...
:
: In order to facilitate search engine indexing, I'd like to be able to
: access a script using something like this:
:
: http://server/script.asp/param
:
: where this would execute script.asp which could then retrieve the extra
: data "param" using the PATH_INFO server variable. PHP has a feature
: similar to this and I've heard that IIS can do the same thing but I'm not
: quite sure how. I've already enabled PATH_INFO as detailed here:
:
:
http://support.microsoft.com/default...NoWebContent=1
:
: However, when I try to access a URL like the above, I just get a 404
: presumably because IIS is looking for a directory called script.asp. How
: do I make it execute the script instead?
:
: Thank you
Jul 19 '05 #2

Well, it's part of the CGI specification that you should be able to use
paths like this without any special modules or filters:

http://hoohoo.ncsa.uiuc.edu/cgi/env.html

This is the only purpose of the PATH_INFO variable so why would IIS
support it at all if it didn't work? I've heard conflicting reports about
this. On this page

http://bugs.php.net/bug.php?id=7782

a fellow claims that IIS does not support it. However, here:

http://www.phpbuilder.com/mail/php-w...00071/0106.php

someone says that he has it working (dated May 2000). This page on
Microsoft's site also implies that it works with a hotfix:

http://support.microsoft.com/default...NoWebContent=1

but it's an IIS4 hotfix. I can only assume the fix is integrated with IIS5.

Unfortunately, my hosting provider will not let me install ISAPI filters
so I have to get it working this way somehow.

On Tue, 4 Nov 2003 22:05:05 +1100, Ken Schaefer
<ke*******@THISadOpenStatic.com> wrote:
Is this actually a feature in PHP? Can you point me to the docs? Usually
I
have seen this as a feature of Apache (via mod_rewrite).

With IIS, the only way I have seen is via an ISAPI filter that rewrites
the
request. There are commercial versions available, and no doubt freeware
versions as well.

I believe there is a simple version available for IIS6 in the IIS 6
Resource
Kit tools:
http://www.microsoft.com/downloads/d...DisplayLang=en

Cheers
Ken

"Jedediah Smith" <je************@silencegreysREMOVE.com> wrote in message
news:op**************@news1.on.sympatico.ca...
:
: In order to facilitate search engine indexing, I'd like to be able to
: access a script using something like this:
:
: http://server/script.asp/param
:
: where this would execute script.asp which could then retrieve the extra
: data "param" using the PATH_INFO server variable. PHP has a feature
: similar to this and I've heard that IIS can do the same thing but I'm
not
: quite sure how. I've already enabled PATH_INFO as detailed here:
:
:
http://support.microsoft.com/default...NoWebContent=1
:
: However, when I try to access a URL like the above, I just get a 404
: presumably because IIS is looking for a directory called script.asp.
How
: do I make it execute the script instead?
:
: Thank you


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 19 '05 #3
I think this is because ASP is not implemented as a CGI. It's implemented as
an API (ISAPI) filter.

Many server-side technologies are now implemented via APIs that are exposed
via the webserver software in question, because performance is usually
higher. However, you can also run somethings as CGIs, which offer lower
performance, but generally are more portable, since they are not tied to an
API exposed by the webserver software itself. So, you can have PHP
implemented as a CGI (php.exe) or as an IIS ISAPI filter. I would assume
that you can do whatever.server.com/php.exe/param/ but you can't do
whatever.server.com/something.php/param where .php is being intepreted via
the PHP ISAPI filter (as opposed to the PHP .exe)

(This is from long-lost memories from my programming studies at Uni, so it
may be somewhat incorrect as I'm not sure I remember it all correctly).

Cheers
Ken

"Jedediah Smith" <je************@silencegreysREMOVE.com> wrote in message
news:op**************@news1.on.sympatico.ca...
:
: Well, it's part of the CGI specification that you should be able to use
: paths like this without any special modules or filters:
:
: http://hoohoo.ncsa.uiuc.edu/cgi/env.html
:
: This is the only purpose of the PATH_INFO variable so why would IIS
: support it at all if it didn't work? I've heard conflicting reports about
: this. On this page
:
: http://bugs.php.net/bug.php?id=7782
:
: a fellow claims that IIS does not support it. However, here:
:
: http://www.phpbuilder.com/mail/php-w...00071/0106.php
:
: someone says that he has it working (dated May 2000). This page on
: Microsoft's site also implies that it works with a hotfix:
:
:
http://support.microsoft.com/default...NoWebContent=1
:
: but it's an IIS4 hotfix. I can only assume the fix is integrated with
IIS5.
:
: Unfortunately, my hosting provider will not let me install ISAPI filters
: so I have to get it working this way somehow.
:
: On Tue, 4 Nov 2003 22:05:05 +1100, Ken Schaefer
: <ke*******@THISadOpenStatic.com> wrote:
:
: > Is this actually a feature in PHP? Can you point me to the docs? Usually
: > I
: > have seen this as a feature of Apache (via mod_rewrite).
: >
: > With IIS, the only way I have seen is via an ISAPI filter that rewrites
: > the
: > request. There are commercial versions available, and no doubt freeware
: > versions as well.
: >
: > I believe there is a simple version available for IIS6 in the IIS 6
: > Resource
: > Kit tools:
: >
http://www.microsoft.com/downloads/d...DisplayLang=en
: >
: > Cheers
: > Ken
: >
: > "Jedediah Smith" <je************@silencegreysREMOVE.com> wrote in
message
: > news:op**************@news1.on.sympatico.ca...
: > :
: > : In order to facilitate search engine indexing, I'd like to be able to
: > : access a script using something like this:
: > :
: > : http://server/script.asp/param
: > :
: > : where this would execute script.asp which could then retrieve the
extra
: > : data "param" using the PATH_INFO server variable. PHP has a feature
: > : similar to this and I've heard that IIS can do the same thing but I'm
: > not
: > : quite sure how. I've already enabled PATH_INFO as detailed here:
: > :
: > :
: >
http://support.microsoft.com/default...NoWebContent=1
: > :
: > : However, when I try to access a URL like the above, I just get a 404
: > : presumably because IIS is looking for a directory called script.asp.
: > How
: > : do I make it execute the script instead?
: > :
: > : Thank you
: >
: >
:
:
:
: --
: Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jason | last post by:
this is my code and what i get... i'm accessing this through this url http://192.168.0.2/php/test2/test.php?user=me@test.ca&subject=test it grabs the correct stuff from the database, but...
2
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
1
by: bayouprophet | last post by:
Cant get menu script to to put linked page in the same frame. I am new to Java and I am wondering what am I doing wrong? below are my java applet file, frame.html file, and my text file and one...
4
by: stjulian | last post by:
I have a stored procedure that is supposed to 1. Increment a counter in Table A via a transaction 2. Use this value as the primary key to add in an address to customers Table B (Referenced as a...
1
by: Rob | last post by:
Access Gurus, This script was used to view the reports on the web by choosing a date on or before the current day.Recently it stopped working and i am not able to figure where the problem is. ...
2
by: ksr | last post by:
Hello, I have a HTML page, which loads an activeX control in the browser. In the <HEADsection, I have javascript similar to the following, <SCRIPT language="JavaScript"> var Index = ""; //...
3
by: Ticool | last post by:
Hello, I found this site to be very helpful in learning perl, but now I seem to be stumped and wonder if one of experts could assit me with this little problem.... On my web form I have a...
1
by: dragze | last post by:
Hi, On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player. Now use one of the scripts it works fine, use both and...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.