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 will come in handy someday I'm sure!Thanks, GK ----- Original Message ----- From: Alain Russell To: WebDNA Talk Sent: Wednesday, May 21, 2003 3:34 AM Subject: 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. > > > > > > 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:

    
  1. [WebDNA] scope for vars passed in includes (Donovan Brooke 2015)
  2. Re: [WebDNA] Encrypted Templates - Includes (Donovan Brooke 2014)
  3. [WebDNA] Encrypted Templates - Includes (Michael Davis 2014)
  4. Re: [WebDNA] includes with includes (Brian Fries 2009)
  5. Re: [WebDNA] includes with includes (Govinda 2009)
  6. Re: [WebDNA] includes with includes (Rich Kwas 2009)
  7. Re: [WebDNA] includes with includes (Kenneth Grome 2009)
  8. Re: [WebDNA] includes with includes (Govinda 2009)
  9. [WebDNA] includes with includes (Rich Kwas 2009)
  10. Re: includes (Gary Krockover 2003)
  11. Re: includes (Alain Russell 2003)
  12. Re: includes (Kenneth Grome 2003)
  13. Re: includes (WebCat @ Inkblot Media 2003)
  14. Re: includes (marc@kaiwi.com (Marc Kaiwi) 2003)
  15. Re: includes (WebCat @ Inkblot Media 2003)
  16. Re: includes (WebCat @ Inkblot Media 2003)
  17. Re: includes (WebCat @ Inkblot Media 2003)
  18. Re: includes (Gary Krockover 2003)
  19. Re: includes (marc@kaiwi.com (Marc Kaiwi) 2003)
  20. includes (WebCat @ Inkblot Media 2003)
  21. Re: Nested Includes (Samuel Renkert 2001)
  22. Re: Nested Includes (Brian Fries 2001)
  23. Nested Includes (Donovan Brooke 2001)
  24. Re: variables in or out of includes (Michael Davis 2001)
  25. Re: variables in or out of includes (Michael Davis 2001)
  26. Re: variables in or out of includes (Andrew Simpson 2001)
  27. Re: variables in or out of includes (Brian Fries 2001)
  28. Re: variables in or out of includes (John Peacock 2001)
  29. Re: variables in or out of includes (Alain Russell 2001)
  30. Re: variables in or out of includes (Michael Davis 2001)
  31. variables in or out of includes (Andrew Simpson 2001)
  32. Re: webcat, osx, and includes (Rui Campos 2001)
  33. Re: webcat, osx, and includes (Nitai @ ComputerOil 2001)
  34. Re: webcat, osx, and includes (Rui Campos 2001)
  35. Re: webcat, osx, and includes (Nitai @ ComputerOil 2001)
  36. webcat, osx, and includes (Rui Campos 2001)
  37. Re: server side includes & webcatalog (Kenneth Grome 2000)
  38. Re: server side includes & webcatalog (Sally Reidy 2000)
  39. Re: server side includes & webcatalog (Webcat 2000)
  40. Re: server side includes & webcatalog (Sally Reidy 2000)
  41. Re: server side includes & webcatalog (John Peacock 2000)
  42. Re: server side includes & webcatalog (Glenn Busbin 2000)
  43. server side includes & webcatalog (Sally Reidy 2000)
  44. Re: tcp connect includes (Gary Richter 1999)
  45. Re: tcp connect includes (Bob Minor 1999)
  46. Re: tcp connect includes (PCS Technical Support 1999)
  47. Re: tcp connect includes (Bob Minor 1999)
  48. tcp connect includes (Bob Minor 1999)
  49. Re: template includes encrypted template (PCS Technical Support 1999)
  50. Re: template includes encrypted template (Bob Minor 1999)
  51. Re: template includes encrypted template (Kenneth Grome 1999)
  52. Re: template includes encrypted template (Bob Minor 1999)
  53. Re: template includes encrypted template (Kenneth Grome 1999)
  54. template includes encrypted template (Bob Minor 1999)
  55. template includes encrypted template (Bob Minor 1999)
  56. template includes encrypted template (Bob Minor 1999)
  57. Re: is there a global includes directory? (Christer Olsson 1998)
  58. Re: is there a global includes directory? (Kenneth Grome 1998)
  59. Re: is there a global includes directory? (Gary Richter 1998)
  60. is there a global includes directory? (Olin Lagon 1998)
  61. Recursive includes (PCS Technical Support 1998)
  62. Re: includes and cart numbers (Jay Van Vark 1997)
  63. Re: includes and cart numbers (Jay Van Vark 1997)
  64. RE: includes and cart numbers (Marc Eagle 1997)
  65. Re: includes and cart numbers (Josh Knauer 1997)
  66. Re: includes and cart numbers (Josh Knauer 1997)
  67. Re: includes and cart numbers (Grant Hulbert 1997)
  68. Re: includes and cart numbers (Kenneth Grome 1997)
  69. Re: includes and cart numbers (Kenneth Grome 1997)
  70. Re: includes and cart numbers (John Hill 1997)
  71. includes and cart numbers (Josh Knauer 1997)
Alain,You've gotta post that to the interactive doc's please, that snippet will come in handy someday I'm sure!Thanks, GK ----- Original Message ----- From: Alain Russell To: WebDNA Talk Sent: Wednesday, May 21, 2003 3:34 AM Subject: 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. > > > > > > 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)