Re: [WebDNA] calling a webDNA tmpl from PHP?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101248
interpreted = N
texte = Charles,I tried that and it is just putting the *raw* WebDNA page into the PHP page from which I placed that readfile(), rather than parsing it. The extension ".tmpl" is definitely set to run through WebDNA... other .tmpl files in that same directory are being parsed by WebDNA properly.Any other suggestions on this?-GOn Oct 21, 2008, at 2:35 PM, Charles Kline wrote:> >>> On Tue, 21 Oct 2008 14:30:26 -0600> Govinda
wrote:>> OK, :-)>> Normal html page, set by server to be parsed by PHP.>> We need the page to goto PHP, not WebDNA by default.>> BUT I want to save rewriting loads of WebDNA code that is quick, >> easy, functioning.>> For example I need to write to a WebDNA db (*with WebDNA*) every >> time someone hits that PHP page.>> I can put a tiny 1px x 1px image (HTML
tag) which references >> my .tmpl WebDNA template (instead of a real .gif/jpg) to do this >> writing to the db,>> but I would prefer not, so that, for example, this cannot be seen >> in the source HTML.>> As a total PHP and *nix newbie, I scan their talklist and docs and >> I see that there is a function called "shell_exec()" that can call >> things as if from the command line, and I think, "probably many >> people who actually know what they are doing know all about this >> and have done it, or if I ask the question right, they will show >> me a much better way to approach this.">> You didn't mean you wanted to see what search params I put in my >> webDNA [search] did you? I mean, did I leave out any important >> details?>> You said, "What you can do is have PHP call a WebDNA template and >> return the response". That is exactly what I want to see an >> example of!>> -G>> On Oct 21, 2008, at 2:15 PM, Charles Kline wrote:>>> You won't really call an include. What you can do is have PHP call >>> a WebDNA template and return the response.>>>>>> Before we all try and guess what you are after again, lets have a >>> little more detail...>>>>>> - Charles>>>>>
Associated Messages, from the most recent to the oldest:
Charles,I tried that and it is just putting the *raw* WebDNA page into the PHP page from which I placed that readfile(), rather than parsing it. The extension ".tmpl" is definitely set to run through WebDNA... other .tmpl files in that same directory are being parsed by WebDNA properly.Any other suggestions on this?-GOn Oct 21, 2008, at 2:35 PM, Charles Kline wrote:> >>> On Tue, 21 Oct 2008 14:30:26 -0600> Govinda wrote:>> OK, :-)>> Normal html page, set by server to be parsed by PHP.>> We need the page to goto PHP, not WebDNA by default.>> BUT I want to save rewriting loads of WebDNA code that is quick, >> easy, functioning.>> For example I need to write to a WebDNA db (*with WebDNA*) every >> time someone hits that PHP page.>> I can put a tiny 1px x 1px image (HTML
tag) which references >> my .tmpl WebDNA template (instead of a real .gif/jpg) to do this >> writing to the db,>> but I would prefer not, so that, for example, this cannot be seen >> in the source HTML.>> As a total PHP and *nix newbie, I scan their talklist and docs and >> I see that there is a function called "shell_exec()" that can call >> things as if from the command line, and I think, "probably many >> people who actually know what they are doing know all about this >> and have done it, or if I ask the question right, they will show >> me a much better way to approach this.">> You didn't mean you wanted to see what search params I put in my >> webDNA [search] did you? I mean, did I leave out any important >> details?>> You said, "What you can do is have PHP call a WebDNA template and >> return the response". That is exactly what I want to see an >> example of!>> -G>> On Oct 21, 2008, at 2:15 PM, Charles Kline wrote:>>> You won't really call an include. What you can do is have PHP call >>> a WebDNA template and return the response.>>>>>> Before we all try and guess what you are after again, lets have a >>> little more detail...>>>>>> - Charles>>>>>
Govinda
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:
Erotic Sites (1997)
Quick poll (2003)
WebDNA problem (2006)
quantity minimum problem (1997)
WCS Newbie question (1997)
[WebDNA] [WSC] WebDNA Development Summit (2014)
Balancing randomness (2000)
RE: Explorer oddities (1997)
[WebDNA] Easy Grep Question (2012)
Thanks ! (1997)
[include ...] behavior (1997)
[protect] on NT? (1997)
Bug or syntax error on my part? (1997)
[WebDNA] EDC Forum - testers request (2008)
Redirect and passing more than one variable... (2002)
WC2f3 (1997)
Summing fields (1997)
Getting total number of items ordered (1997)
WebCat2b13MacPlugIn - [include] (1997)
Parse question (2005)