[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hypermail
Subject:    Re: [hypermail] Variable referencing the page to itself
From:       Akis Karnouskos <akis () ceid ! upatras ! gr>
Date:       2001-02-01 15:26:31
[Download RAW message or body]


Hi,

the %f gives the filename of the document AND its relative path where it 
resides on the server.
In my case that relative path differs from the path that the file is 
accessed via the web.

I just hacked a part in the print.c file and I have now what I wanted.

In any future releases it would be nice to have 2 more parameters:
1) a SERVER_PATH showing the www path where the page resides and
2) a FILENAME showing only the name of the file

e.g.
http://myserver.com/~akis/mypage.html
SERVER_PATH=http://myserver.com/~akis/
FILENAME=mypage.html

This is usefull if you want to pass within the page's html code a reference 
of this page to another server.
e.g. I could have within the page a link to http://babelfish.altavista.com/ 
with parameter my page
in order to provide an alternative view (an attempt of it) of my page to 
another language.

I hope this brought some new ideas to the table...

Regards,
akis


At 12:22 PM 01-02-2001 +0100, Daniel Stenberg wrote:
>On Wed, 31 Jan 2001, Akis Karnouskos wrote:
>
> > Is there a variable that shows the complete internet address of the page ?
> >
>
>No, but you can use:
>
>  %f - file name of the HTML document
>
>--
>       Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
>    ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic