Re: includes
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50534
interpreted = N
texte = Alain,You've gotta post that to the interactive doc's please, that snippet willcome in handy someday I'm sure!Thanks,GK----- Original Message -----From: Alain Russell
To: WebDNA Talk Sent: Wednesday, May 21, 2003 3:34 AMSubject: Re: includes> Or in v5>> [function name=wwwinclude]>> [!] ## Set the CR/LF combination for use further down --[/!]> [text]crlf=[unurl]%0D%0A[/unurl][/text]>> [!] ## split the URL ready for connect --[/!]> [text]the_url=[middle> startafter=http://&endbefore=][the_url][/middle][/text]> [text]host=[middle startafter=&endbefore=/][the_url][/middle][/text]> [if [the_url]^/]> [then][text]path=[middle> startafter=/&endbefore=][the_url][/middle][/text][/then]> [else][text]path=[/text][/else]> [/if]>> [!] ## Do the actual connection with split paths --[/!]> [tcpconnect host=[host]&port=80]> [tcpsend skipheader=T][!]> [/!]GET /[path] HTTP/1.0[crlf][!]> [/!]Referer: http:/[thisURL][crlf][!]> [/!]Host: [host][crlf][!]> [/!][crlf][!]> [/!][/tcpsend]> [/tcpconnect]>> [/function]>> So then all you need to do is call it with:>> [wwwinclude the_url=[the_url]]>> Demo running here:>http://webdna5.blackpepper.co.nz/utility/wwwinclude.html?the_url=www.yahoo.c> om>> Alain>> >> So can I not include a different page into using [include]> >>> >> ex: [include http://www.yahoo.com]> >>> >> I can in PHP.> >>> >> ex. include(http://www.yahoo.com); ?>> >> >> > That's right -- you CANNOT use the webdna include tag to do this.> > The correct approach is to include the page from the other server via> > tcpconnect ...-------------------------------------------------------------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:
|
- [WebDNA] scope for vars passed in includes (Donovan Brooke 2015)
- Re: [WebDNA] Encrypted Templates - Includes (Donovan Brooke 2014)
- [WebDNA] Encrypted Templates - Includes (Michael Davis 2014)
- Re: [WebDNA] includes with includes (Brian Fries 2009)
- Re: [WebDNA] includes with includes (Govinda 2009)
- Re: [WebDNA] includes with includes (Rich Kwas 2009)
- Re: [WebDNA] includes with includes (Kenneth Grome 2009)
- Re: [WebDNA] includes with includes (Govinda 2009)
- [WebDNA] includes with includes (Rich Kwas 2009)
- Re: includes (Gary Krockover 2003)
- Re: includes (Alain Russell 2003)
- Re: includes (Kenneth Grome 2003)
- Re: includes (WebCat @ Inkblot Media 2003)
- Re: includes (marc@kaiwi.com (Marc Kaiwi) 2003)
- Re: includes (WebCat @ Inkblot Media 2003)
- Re: includes (WebCat @ Inkblot Media 2003)
- Re: includes (WebCat @ Inkblot Media 2003)
- Re: includes (Gary Krockover 2003)
- Re: includes (marc@kaiwi.com (Marc Kaiwi) 2003)
- includes (WebCat @ Inkblot Media 2003)
- Re: Nested Includes (Samuel Renkert 2001)
- Re: Nested Includes (Brian Fries 2001)
- Nested Includes (Donovan Brooke 2001)
- Re: variables in or out of includes (Michael Davis 2001)
- Re: variables in or out of includes (Michael Davis 2001)
- Re: variables in or out of includes (Andrew Simpson 2001)
- Re: variables in or out of includes (Brian Fries 2001)
- Re: variables in or out of includes (John Peacock 2001)
- Re: variables in or out of includes (Alain Russell 2001)
- Re: variables in or out of includes (Michael Davis 2001)
- variables in or out of includes (Andrew Simpson 2001)
- Re: webcat, osx, and includes (Rui Campos 2001)
- Re: webcat, osx, and includes (Nitai @ ComputerOil 2001)
- Re: webcat, osx, and includes (Rui Campos 2001)
- Re: webcat, osx, and includes (Nitai @ ComputerOil 2001)
- webcat, osx, and includes (Rui Campos 2001)
- Re: server side includes & webcatalog (Kenneth Grome 2000)
- Re: server side includes & webcatalog (Sally Reidy 2000)
- Re: server side includes & webcatalog (Webcat 2000)
- Re: server side includes & webcatalog (Sally Reidy 2000)
- Re: server side includes & webcatalog (John Peacock 2000)
- Re: server side includes & webcatalog (Glenn Busbin 2000)
- server side includes & webcatalog (Sally Reidy 2000)
- Re: tcp connect includes (Gary Richter 1999)
- Re: tcp connect includes (Bob Minor 1999)
- Re: tcp connect includes (PCS Technical Support 1999)
- Re: tcp connect includes (Bob Minor 1999)
- tcp connect includes (Bob Minor 1999)
- Re: template includes encrypted template (PCS Technical Support 1999)
- Re: template includes encrypted template (Bob Minor 1999)
- Re: template includes encrypted template (Kenneth Grome 1999)
- Re: template includes encrypted template (Bob Minor 1999)
- Re: template includes encrypted template (Kenneth Grome 1999)
- template includes encrypted template (Bob Minor 1999)
- template includes encrypted template (Bob Minor 1999)
- template includes encrypted template (Bob Minor 1999)
- Re: is there a global includes directory? (Christer Olsson 1998)
- Re: is there a global includes directory? (Kenneth Grome 1998)
- Re: is there a global includes directory? (Gary Richter 1998)
- is there a global includes directory? (Olin Lagon 1998)
- Recursive includes (PCS Technical Support 1998)
- Re: includes and cart numbers (Jay Van Vark 1997)
- Re: includes and cart numbers (Jay Van Vark 1997)
- RE: includes and cart numbers (Marc Eagle 1997)
- Re: includes and cart numbers (Josh Knauer 1997)
- Re: includes and cart numbers (Josh Knauer 1997)
- Re: includes and cart numbers (Grant Hulbert 1997)
- Re: includes and cart numbers (Kenneth Grome 1997)
- Re: includes and cart numbers (Kenneth Grome 1997)
- Re: includes and cart numbers (John Hill 1997)
- includes and cart numbers (Josh Knauer 1997)
|
Alain,You've gotta post that to the interactive doc's please, that snippet willcome in handy someday I'm sure!Thanks,GK----- Original Message -----From: Alain Russell To: WebDNA Talk Sent: Wednesday, May 21, 2003 3:34 AMSubject: Re: includes> Or in v5>> [function name=wwwinclude]>> [!] ## Set the CR/LF combination for use further down --[/!]> [text]crlf=[unurl]%0D%0A[/unurl][/text]>> [!] ## split the URL ready for connect --[/!]> [text]the_url=[middle> startafter=http://&endbefore=][the_url][/middle][/text]> [text]host=[middle startafter=&endbefore=/][the_url][/middle][/text]> [if [the_url]^/]> [then][text]path=[middle> startafter=/&endbefore=][the_url][/middle][/text][/then]> [else][text]path=[/text][/else]> [/if]>> [!] ## Do the actual connection with split paths --[/!]> [tcpconnect host=[host]&port=80]> [tcpsend skipheader=T][!]> [/!]GET /[path] HTTP/1.0[crlf][!]> [/!]Referer: http:/[thisurl][crlf][!]> [/!]Host: [host][crlf][!]> [/!][crlf][!]> [/!][/tcpsend]> [/tcpconnect]>> [/function]>> So then all you need to do is call it with:>> [wwwinclude the_url=[the_url]]>> Demo running here:>http://webdna5.blackpepper.co.nz/utility/wwwinclude.html?the_url=www.yahoo.c> om>> Alain>> >> So can I not include a different page into using [include]> >>> >> ex: [include http://www.yahoo.com]> >>> >> I can in PHP.> >>> >> ex. include(http://www.yahoo.com); ?>> >> >> > That's right -- you CANNOT use the webdna include tag to do this.> > The correct approach is to include the page from the other server via> > tcpconnect ...-------------------------------------------------------------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/
Gary Krockover
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:
WebDNA - fun to compare (2005)
Does this still work (2006)
MacAuthorize and WebMerchant (1997)
RE: Explorer oddities (1997)
[OT] Happy Turkey Day! (2003)
PCS Frames (1997)
flushdatabases (2000)
passing search criteria (1997)
Replacing a variable within a variable. (1998)
cybercash on OSX - was Executing remote AppleScript (2000)
[WebDNA] Uploading Specific File Types (2009)
[click][/click] (1999)
Quit revisited (1997)
The max=0 issue is a bug ... CALL TO ACTION (2000)
RE: Explorer oddities (1997)
WebCatalog 4.0.2rc1 and rc2 crash WebSTAR on quit (2001)
possible, WebCat2.0 and checkboxes-restated (1997)
Thanks Grant (1997)
problems with 2 tags shakur (1997)
multiple search commands (1997)