Re: includes

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50532
interpreted = N
texte = 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 omAlain>> 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)
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 omAlain>> 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/ Alain Russell

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] WebDNA programmers for hire? (2010) Convertchars Problem (2004) Next X hits (1996) Applescript error (1998) [protect admin] (1997) OT-JS why it does not run on Mac (2001) Signal Raised Error (1997) OT - help.. (2003) Changing in a founditems tag (1999) calculating tax rates, mail order solutions and version 2 (1997) NTbeta18 corrupted? (1997) limit to listwords (2001) price formula (1999) WCS Newbie question (1997) WebCat for Unix (1999) problem: mail changed (1997) WebCat2b13MacPlugIn - more [date] problems (1997) Browser Problem?!? Still getting Error message using POST! (1997) Nesting WebDNA in JavaScript (2003) RequiredFields template (1997)