Re: [WebDNA] calling a webDNA tmpl from PHP?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101257
interpreted = N
texte = Thanks Bob,I finally got to this and it works :-)Only one issue is that the webdna I am hitting with this is only recognizing the first URL param. Example:I have a webdna file with this content:Incoming_1=[param1]Incoming_2=[param2]on my html page I have this:$var1 = shell_exec("curl http://www.myDomain.com/myDir/myPage.tmpl?param1=lovely¶m2=sunday ");echo "";when I hit it with browser, it returns this:Is this a php issue, webdna issue, or else where do I need to pursue to get the webdna to recongnize that the second URL param/var-value ALSO was passed in?-GovindaPS - I hope no one minds this topic which border on 2 languages.... seems to me anyhow that examples of webdna pages being smoothly included in PHP pages is good marketing. I mean imagine someone (who doesn't know PHP) has an existing PHP system and they just lost their PHP coder and they want to add quick/easy new functions themselves... what would it take to throw in some WebDNA and cut their learning curve by 70%?On Oct 21, 2008, at 11:38 PM, Bob Minor wrote:> create a php page with this as your code, you may need to visudo and > give 'www' perms to execute curl i don't memember off the top of my > head, the url can literally be ANYTHING(dna asp etc ):>> > $var1 = shell_exec("curl http://www.cybermill.com");>> echo $var1;>> ?>>>> On Oct 22, 2008, at 12:16 AM, Govinda wrote:>>> Bob,>>>> I have so far not had luck with shell_exec(). I have not yet done >> a thing with curl and don't know anything about it except that it >> seems we have it.>> I realize this is OT for this list, but I just want to parse a >> webdna tmpl from a PHP page, and I think one right line of simple >> php will do it, and if I ask on the php lists they will be all over >> the map. Can you provide a sample for me?>>>> -G
Associated Messages, from the most recent to the oldest:
Thanks Bob,I finally got to this and it works :-)Only one issue is that the webdna I am hitting with this is only recognizing the first URL param. Example:I have a webdna file with this content:Incoming_1=[param1]Incoming_2=[param2]on my html page I have this:$var1 = shell_exec("curl http://www.myDomain.com/myDir/myPage.tmpl?param1=lovely¶m2=sunday ");echo "";when I hit it with browser, it returns this:Is this a php issue, webdna issue, or else where do I need to pursue to get the webdna to recongnize that the second URL param/var-value ALSO was passed in?-GovindaPS - I hope no one minds this topic which border on 2 languages.... seems to me anyhow that examples of webdna pages being smoothly included in PHP pages is good marketing. I mean imagine someone (who doesn't know PHP) has an existing PHP system and they just lost their PHP coder and they want to add quick/easy new functions themselves... what would it take to throw in some WebDNA and cut their learning curve by 70%?On Oct 21, 2008, at 11:38 PM, Bob Minor wrote:> create a php page with this as your code, you may need to visudo and > give 'www' perms to execute curl i don't memember off the top of my > head, the url can literally be ANYTHING(dna asp etc ):>> > $var1 = shell_exec("curl http://www.cybermill.com");>> echo $var1;>> ?>>>> On Oct 22, 2008, at 12:16 AM, Govinda wrote:>>> Bob,>>>> I have so far not had luck with shell_exec(). I have not yet done >> a thing with curl and don't know anything about it except that it >> seems we have it.>> I realize this is OT for this list, but I just want to parse a >> webdna tmpl from a PHP page, and I think one right line of simple >> php will do it, and if I ask on the php lists they will be all over >> the map. Can you provide a sample for me?>>>> -G
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:
Grant, please help me ... (1997)
Credit card types (1997)
Credit card issuer by cc number? (1999)
simple [convertChars] Q (2000)
Time math (2002)
WebCat2b12plugin - [search] is broken ... not! (1997)
How do I get WebCatalog to interpret WebDNA tags in.html files? (1997)
WebDNA 5 & iTools 7 (2003)
too many nested [xxx] (1997)
Sending Faxes (2003)
2.0 Info (1997)
docs for WebCatalog2 (1997)
What's a domain? (2003)
Error.html (1997)
2 questions (2000)
Email Attachments (1998)
Redirect in 4.0 (2000)
WebCat2.0 [format thousands .0f] no go (1997)
'does not contain' operator needed ... (1997)
[OT] (waaaay OT) (2004)