ThisURL on Unix
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 34002
interpreted = N
texte = Just copy and paste to test or use. I likes it![!]ThisURL on unix displays the entire path from root like(/Local/LIbrary/WebServer/WebSites/mywebsite.com/admin/yourpage.tpl), to getaround this we use this routine, it gets the entries after the variable'rootkiller' delimited by the / and joins them together for a real this urlinstead you would get(mywebsite.com/admin/yourpage.tpl). Drop it in yourglobals folder and wherever you need it just included it. You can adapt thisto handle more or less folders. This was built for MacOSX so if your usingLinux you may want to set the rootkiller variable to something else or ifyou want to use it for eliminating other folders names, just change the rootkiller variable to the folder you want to eliminate, everything prior to therootkiller variable will be dropped.By Robert Minor Cybermill CommunicationsThis snippet is free if you retain this note.[/!][text]rootkiller=WebSites[/text][math show=f]tp_skip=0&tp_count=0[/math][ListWords words=[thisurl]&delimiters=/][showif [word]^[rootkiller]][math show=f]tp_count2=[index]+1[/math][/showif][math show=f]tp_count=[index][/math][text secure=f]thispage[index]=[word][/text][/ListWords][text secure=f]thispage=[loop start=[tp_count2]&end=[tp_count]][hideif[index]=[tp_count2]]/[/hideif][interpret][thispage[index]][/interpret][/loop][/text]thisurl = [thispage]-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- ThisURL on Unix (Bob Minor 2000)
|
Just copy and paste to test or use. I likes it![!]ThisURL on unix displays the entire path from root like(/Local/LIbrary/WebServer/WebSites/mywebsite.com/admin/yourpage.tpl), to getaround this we use this routine, it gets the entries after the variable'rootkiller' delimited by the / and joins them together for a real this urlinstead you would get(mywebsite.com/admin/yourpage.tpl). Drop it in yourglobals folder and wherever you need it just included it. You can adapt thisto handle more or less folders. This was built for MacOSX so if your usingLinux you may want to set the rootkiller variable to something else or ifyou want to use it for eliminating other folders names, just change the rootkiller variable to the folder you want to eliminate, everything prior to therootkiller variable will be dropped.By Robert Minor Cybermill CommunicationsThis snippet is free if you retain this note.[/!][text]rootkiller=WebSites[/text][math show=f]tp_skip=0&tp_count=0[/math][ListWords words=[thisurl]&delimiters=/][showif [word]^[rootkiller]][math show=f]tp_count2=[index]+1[/math][/showif][math show=f]tp_count=[index][/math][text secure=f]thispage[index]=[word][/text][/ListWords][text secure=f]thispage=[loop start=[tp_count2]&end=[tp_count]][hideif[index]=[tp_count2]]/[/hideif][interpret][thispage[index]][/interpret][/loop][/text]thisurl = [thispage]-------------------------------------------------------------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://search.smithmicro.com/
Bob Minor
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:
Using Currencies other than Dollars (1997)
Size issues (2001)
request for string functions (1998)
Post size Limit? (1998)
emailer (1997)
Summing fields (1997)
Type 11 errors setting up WebCAt 2 (1997)
WebDNA wholesale ... (2002)
More than one db with the same namn (was: WC2f3) (1997)
can WC render sites out? (1997)
Questions To Answer (1997)
Browser Reloads and AddlineItem (1997)
[time] math Q (2003)
WebDNA + SQL Server (2003)
Lastautonumber (2005)
Add htmlarea 3 to SiteBuilder (2004)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
[WebDNA] German e-shop company proclaims "In Memory Computing" (2010)
Webstar / WebCat - Persistent Setting (2003)
[OT] Bad Hard Drive? (2003)