473,545 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2427
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************ @silencegreysRE MOVE.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*******@THIS adOpenStatic.co m> 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************ @silencegreysRE MOVE.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************ @silencegreysRE MOVE.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*******@THIS adOpenStatic.co m> 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************ @silencegreysRE MOVE.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
2792
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 doesn't put it into flash. this is what i have in the flash file... onClipEvent (load) {
2
6896
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 a type mismatch. It is positively because of the boolean(java primitive)parameter. It goes fine if I change this parameter to int or String. This...
1
3235
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 of my link file that should load next to the menu on the same page. And Thank You in advance. Here is my menu applet: <html>
4
1763
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 "DECLARE @CustomerID INT" just after the AS clause) 3. Return the primary key. This works perfectly when being called from Query Analyzer...
1
1891
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. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <HTML lang=en...
2
13143
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 = ""; // do some processing which sets a value to variable Index </SCRIPT>
3
1917
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 simple comment form which passes 4 vars to the perl script. from the script I get mixed up variables (weird) All variables are dumped into the first?...
1
2698
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 the transparency script stops working. So for example, use just the png transparency script and it displays the png's correctly in IE, as soon as i add...
82
9958
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) html b) perl script (print and inserting into database) Cheers... Andrew
0
7459
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7411
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7749
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5965
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4942
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3444
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
695
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.