Re: WebDNA equivalent for $REQUEST_URI
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56515
interpreted = N
texte = > Try [thisurl]Nitai,I probably should have explained that I am trying to use a .htaccess =file with 'mod_rewrite' to call in a WebDNA template which then includes =files based on the string of text after the host.So the punter enters:-http://yourdomain/stuff/morestuffmy .htaccess file contains:-RewriteEngine OnRewriteRule \!.(gif=A6jpg=A6png=A6css)$ parser.tmpl=09and then in 'parser.tmpl' I was hoping there would be a way a of =determining the string 'stuff/morestuff'Using a PHP script the predefined variable $REQUEST_URI provides this =funtionality, I assumed it was getting it from a mime header or =something and was hoping that WebDNA might be able to extract it also.The [thisurl] context returns the path to the WebDNA template however =rather than the URL that the browser requested, so I lose the string ='stuff/morestuff'.Maybe I can't do this with WebDNA.- Tom-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
> Try [thisurl]Nitai,I probably should have explained that I am trying to use a .htaccess =file with 'mod_rewrite' to call in a WebDNA template which then includes =files based on the string of text after the host.So the punter enters:-http://yourdomain/stuff/morestuffmy .htaccess file contains:-RewriteEngine OnRewriteRule \!.(gif=A6jpg=A6png=A6css)$ parser.tmpl=09and then in 'parser.tmpl' I was hoping there would be a way a of =determining the string 'stuff/morestuff'Using a PHP script the predefined variable $REQUEST_URI provides this =funtionality, I assumed it was getting it from a mime header or =something and was hoping that WebDNA might be able to extract it also.The [thisurl] context returns the path to the WebDNA template however =rather than the URL that the browser requested, so I lose the string ='stuff/morestuff'.Maybe I can't do this with WebDNA.- Tom-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Tom Duke"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Am I going senile? (Price recalc based on quantity) (1997)
UPDATE PROBLEM (1997)
Country & Ship-to address & other fields ? (1997)
Running 2 two WebCatalog.acgi's (1996)
Quickie question on the email templates (1997)
Does webcatalog recognise NULL values? (1998)
Limiting user access to .tmpl files (1997)
A few questions... (1999)
subscribe (2002)
STRANGE (2001)
[WebDNA] Apache configuration fail when... (2013)
I'm new be kind (1997)
OT mod_rewrite (was urls) (2005)
Problems with [Search] param - Mac Plugin b15 (1997)
Less than or equal to........ (1997)
Signal Raised Error (Part II) (1997)
2nd WebCatalog2 Feature Request (1996)
European Convention... (2004)
Can I invoke an ssi plugin from within a webcat page (1997)
Searching multiple Databases (1997)