Re: [WebDNA] WebDNA not parsing php files

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109198
interpreted = N
texte = Dave, What you're attempting to accomplish must be done in a different way. A suffix should only be mapped for one processing engine. You cannot have both WebDNA and PHP process the same file. You can however call the other engine from within the processing of either. Like Donovan suggested, simply make a http call using curl within you php page for the WebDNA file. Your server has to be able to decide which engine to pass the requested page off to and in this case all .tpl or .dna files should be configured to be handled ONLY by WebDNA and those files should include near the top for them to work. (That is unless you've configured WebDNA to NOT require that...) I have done what you're trying to do many times, both ways. 1. use curl to call a PHP script from within a WebDNA page. 2. use curl to call a WebDNA script from within a PHP page. Marc On 6/12/2012 11:03 AM, Dave Stengel wrote: > Yes php is installed and the php works. I'm trying to plug in some > cart information and Header files from a proceeding .tpl page into a > .php file to process payment. It was my understanding the webDNa would > parse a page if I include at the top and set > file extensions may be displayed: to .php. Is there some other place I > must set preferences so webdna will parse a page? > ______________ > > On Tue, Jun 12, 2012 at 9:46 AM, Donovan Brooke wrote: >> Dave Stengel wrote: >>> >>> I'm trying to insert some webdna cart and header files within some php >>> code. File is named invoice.php >>> File has at top >>> Preferences are set to: Only the following file extensions may be >>> displayed: .php .tmpl .tpl .tp2 .dna .html .htm >>> >>> System is: unix-Macintosh OS X Apache Module version 6.2 >>> >>> Am I missing something? Is this possible..has anyone had experience >>> combining php files with Webdna? >>> >>> Dave Stengel >>> --------------------------------------------------------- >> >> >> >> >> Is this a server that also has PHP installed? >> >> Apache won't like a suffix mapping that maps to two different places. >> >> I think what you want to do is use PHP's curl function to call a .dna page.. >> but I'm not exactly sure what you are needing/doing. >> >> >> Donovan >> >> >> >> >> -- >> Donovan Brooke >> WebDNA Software Corporation >> http://www.webdna.us >> **[Square Bracket Utopia]** >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us > > > -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] WebDNA not parsing php files (Dave Stengel 2012)
  2. Re: [WebDNA] WebDNA not parsing php files (Marc Thompson 2012)
  3. Re: [WebDNA] WebDNA not parsing php files (Govinda 2012)
  4. Re: [WebDNA] WebDNA not parsing php files (Donovan Brooke 2012)
  5. Re: [WebDNA] WebDNA not parsing php files (Dave Stengel 2012)
  6. Re: [WebDNA] WebDNA not parsing php files ("Terry Wilson" 2012)
  7. Re: [WebDNA] WebDNA not parsing php files (Dave Stengel 2012)
  8. Re: [WebDNA] WebDNA not parsing php files (Donovan Brooke 2012)
  9. [WebDNA] WebDNA not parsing php files (Dave Stengel 2012)
Dave, What you're attempting to accomplish must be done in a different way. A suffix should only be mapped for one processing engine. You cannot have both WebDNA and PHP process the same file. You can however call the other engine from within the processing of either. Like Donovan suggested, simply make a http call using curl within you php page for the WebDNA file. Your server has to be able to decide which engine to pass the requested page off to and in this case all .tpl or .dna files should be configured to be handled ONLY by WebDNA and those files should include near the top for them to work. (That is unless you've configured WebDNA to NOT require that...) I have done what you're trying to do many times, both ways. 1. use curl to call a PHP script from within a WebDNA page. 2. use curl to call a WebDNA script from within a PHP page. Marc On 6/12/2012 11:03 AM, Dave Stengel wrote: > Yes php is installed and the php works. I'm trying to plug in some > cart information and Header files from a proceeding .tpl page into a > .php file to process payment. It was my understanding the webDNa would > parse a page if I include at the top and set > file extensions may be displayed: to .php. Is there some other place I > must set preferences so webdna will parse a page? > ______________ > > On Tue, Jun 12, 2012 at 9:46 AM, Donovan Brooke wrote: >> Dave Stengel wrote: >>> >>> I'm trying to insert some webdna cart and header files within some php >>> code. File is named invoice.php >>> File has at top >>> Preferences are set to: Only the following file extensions may be >>> displayed: .php .tmpl .tpl .tp2 .dna .html .htm >>> >>> System is: unix-Macintosh OS X Apache Module version 6.2 >>> >>> Am I missing something? Is this possible..has anyone had experience >>> combining php files with Webdna? >>> >>> Dave Stengel >>> --------------------------------------------------------- >> >> >> >> >> Is this a server that also has PHP installed? >> >> Apache won't like a suffix mapping that maps to two different places. >> >> I think what you want to do is use PHP's curl function to call a .dna page.. >> but I'm not exactly sure what you are needing/doing. >> >> >> Donovan >> >> >> >> >> -- >> Donovan Brooke >> WebDNA Software Corporation >> http://www.webdna.us >> **[Square Bracket Utopia]** >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us > > > -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Marc Thompson

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:

Solution to truncated email problem! (1998) Dropdown menus (2006) Generating and appending SKU to a db automatically (1998) Max Record length restated as maybe bug (1997) WebCatalog 4 Install Problems - Not Answered ?? (2000) Variables not being passed *back* (2000) filemaker - orderfile (1997) Multi-processor Mac info ... (1997) Cart Question (1998) [WebDNA] NOT serving WebDNA, just running it locally. (2012) WebDNA Promo Sound Bite (2003) Lost Field (1998) [WebDNA] Encode cookies ONLY via "method=Base64" (2008) WebCat cannot handle compatible search parameters? (1997) [WebDNA] Installation problems for IIS 6 (2010) founditem align (1998) Time Display from Database (1997) docs for WebCatalog2 (1997) Country & Ship-to address & other fields ? (1997) Emailer port change (1997)