HTML Framebody

R

Robert Degen

Hi,

I don't find that in any mailiing lists or html manuals....
is it possible that i can create a script that is automatically executed
with "?original-called-html-file" as querystring parameter ?

Idea behind that:

I type in my browser: "http://www.xyz.com/bla.html"
Script is executed on server, pulls out html and add's a timestamp of last
change. Ok ?

Thanks a lot.

Rob
 
B

brucie

in post: <
Robert Degen said:
is it possible that i can create a script that is automatically executed
with "?original-called-html-file" as querystring parameter ?

yes but not enough info
I type in my browser: "http://www.xyz.com/bla.html"
Script is executed on server, pulls out html and add's a timestamp of last
change. Ok ?

1. you could redirect all requested URIs through the script and extract
the file name from the URI but it would be better to link direct to the
script with different query strings to indicate which file.
2. script looks at file for last mod date (filemtime in php)
3. script extracts the html you want from the file
4. script does whatever you want with the mod time and extracted html.
5. party
 
R

Robert Degen

1. you could redirect all requested URIs through the script and extract
the file name from the URI but it would be better to link direct to the
script with different query strings to indicate which file.

yeah, I did that on several other pages but it's not so nice I think.
I'd like to see only the html link in the addressbar without any script
information. hm.

thanks
 
R

Robert Degen

brucie said:
use path_info to pass the variables so it just looks like a normal link,
also makes your pages SE friendly. i use the method here:

this is nice. Now I have only one problem :) my provider wants to have a
post ".pl" at my perl scripts.... i don't like that. I just wrote them...
hope they will change that.

Thanks a lot. :)
 
T

Toby A Inkster

Robert said:
this is nice. Now I have only one problem :) my provider wants to have a
post ".pl" at my perl scripts.... i don't like that. I just wrote them...
hope they will change that.

Do you have permission to use .htaccess files? If so, you can change this
yourself.
 
T

Toby A Inkster

Robert said:

Create a file called ".htaccess" (note the leading stop) and put in it:

Options +ExecCGI
SetHandler cgi-script

And upload that file into some sub-directory on your webserver. This
..htaccess file will define a new behaviour for that directory (and any
subdirectories).

Specifically, it says that *any* file in that directory is a CGI file, no
matter what the name is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top