Re: [WebDNA] Integrating with WP and PHP

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 107170
interpreted = N
texte = This is a multi-part message in MIME format. --------------040604000603020906070606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here is a super easy way. $dnaresponse = file_get_contents("http://".$_SERVER['SERVER_NAME']."/url/?name=values if you need them"); Then $dnaresponse will be whatever your dna file spits back. I added the SERVER_NAME code so this can work across staging servers. You can also just hard code in the path like $dnaresponse = file_get_contents("http://www.myserver.com/url/?id=myid"); I implemented a Facebook login system so I used this snippet as part of a PHP script that handles the Facebook login, then passes to WebDNA the variables that I need. Using Ajax is just as easy. Just put this on top of your page in your Then put the following DIV on the page and the contents from /mypathtodna.tpl will be inserted once your page is loaded.
Jeffrey Jones wrote: > Thanks Kenneth, > > That seems to work fine. > > -Jeff > > On Aug 3, 2011, at 9:22 AM, Kenneth Grome wrote: > >> The simplest way is to pull the webdna content into an iframe in the >> php page. >> Sincerely, >> Kenneth Grome >> > I Have a client using WP for his blog. He wants to use a >> > static page for his blog home page and also wants to >> > integrate some WebDNA code into that static page. The >> > page is an .php page, so does not get processed by >> > WebDNA. I tried setting up a seperate .tpl page and >> > using an PHP include in the WP page, but that did not >> > work. >> > >> > Any advice on integrating WebDNA into a WP blog? >> > >> > -Jeff >> > >> > Running Cent OS linux 5.4 >> > Apache 2.2.3 >> > PHP 5.2.17 >> > WP 3.2 >> > >> > WebDNA 6.1 >> > --------------------------------------------------------- >> > 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 >> --------------------------------------------------------- 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 > > --------------------------------------------------------- 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 --------------040604000603020906070606 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Here is a super easy way.

$dnaresponse = file_get_contents("http://".$_SERVER['SERVER_NAME']."/url/?name=values if you need them");

Then $dnaresponse will be whatever your dna file spits back. I added the SERVER_NAME code so this can work across staging servers. You can also just hard code in the path like

$dnaresponse = file_get_contents("http://www.myserver.com/url/?id=myid");

I implemented a Facebook login system so I used this snippet as part of a PHP script that handles the Facebook login, then passes to WebDNA the variables that I need.

Using Ajax is just as easy.

Just put this on top of your page in your <head>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $("#dnaDiv").load("/mypathtodna.tpl");
});
</script>

Then put the following DIV on the page and the contents from /mypathtodna.tpl will be inserted once your page is loaded.

<div id="dnaDIV"></div>

Jeffrey Jones wrote:
Thanks Kenneth,

That seems to work fine.

-Jeff

On Aug 3, 2011, at 9:22 AM, Kenneth Grome wrote:

The simplest way is to pull the webdna content into an iframe in the php page.
Sincerely,
Kenneth Grome
> I Have a client using WP for his blog. He wants to use a
> static page for his blog home page and also wants to
> integrate some WebDNA code into that static page. The
> page is an .php page, so does not get processed by
> WebDNA. I tried setting up a seperate .tpl page and
> using an PHP include in the WP page, but that did not
> work.
>
> Any advice on integrating WebDNA into a WP blog?
>
> -Jeff
>
> Running Cent OS linux 5.4
> Apache 2.2.3
> PHP 5.2.17
> WP 3.2
>
> WebDNA 6.1
> ---------------------------------------------------------
> This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list/talk@webdna.us
> Bug Reporting: support@webdna.us
--------------------------------------------------------- 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

--------------------------------------------------------- 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
--------------040604000603020906070606-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Integrating with WP and PHP (Olin Lagon 2011)
  2. Re: [WebDNA] Integrating with WP and PHP (Jeffrey Jones 2011)
  3. Re: [WebDNA] Integrating with WP and PHP (Kenneth Grome 2011)
  4. Re: [WebDNA] Integrating with WP and PHP (Jeffrey Jones 2011)
  5. Re: [WebDNA] Integrating with WP and PHP (Jeffrey Jones 2011)
  6. Re: [WebDNA] Integrating with WP and PHP (Marc Thompson 2011)
  7. Re: [WebDNA] Integrating with WP and PHP (Steve Raslevich -Northern Sound 2011)
  8. Re: [WebDNA] Integrating with WP and PHP (Banahan 2011)
  9. [WebDNA] Integrating with WP and PHP (Jeffrey Jones 2011)
This is a multi-part message in MIME format. --------------040604000603020906070606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here is a super easy way. $dnaresponse = file_get_contents("http://".$_SERVER['SERVER_NAME']."/url/?name=values if you need them"); Then $dnaresponse will be whatever your dna file spits back. I added the SERVER_NAME code so this can work across staging servers. You can also just hard code in the path like $dnaresponse = file_get_contents("http://www.myserver.com/url/?id=myid"); I implemented a Facebook login system so I used this snippet as part of a PHP script that handles the Facebook login, then passes to WebDNA the variables that I need. Using Ajax is just as easy. Just put this on top of your page in your Then put the following DIV on the page and the contents from /mypathtodna.tpl will be inserted once your page is loaded.
Jeffrey Jones wrote: > Thanks Kenneth, > > That seems to work fine. > > -Jeff > > On Aug 3, 2011, at 9:22 AM, Kenneth Grome wrote: > >> The simplest way is to pull the webdna content into an iframe in the >> php page. >> Sincerely, >> Kenneth Grome >> > I Have a client using WP for his blog. He wants to use a >> > static page for his blog home page and also wants to >> > integrate some WebDNA code into that static page. The >> > page is an .php page, so does not get processed by >> > WebDNA. I tried setting up a seperate .tpl page and >> > using an PHP include in the WP page, but that did not >> > work. >> > >> > Any advice on integrating WebDNA into a WP blog? >> > >> > -Jeff >> > >> > Running Cent OS linux 5.4 >> > Apache 2.2.3 >> > PHP 5.2.17 >> > WP 3.2 >> > >> > WebDNA 6.1 >> > --------------------------------------------------------- >> > 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 >> --------------------------------------------------------- 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 > > --------------------------------------------------------- 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 --------------040604000603020906070606 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Here is a super easy way.

$dnaresponse = file_get_contents("http://".$_SERVER['SERVER_NAME']."/url/?name=values if you need them");

Then $dnaresponse will be whatever your dna file spits back. I added the SERVER_NAME code so this can work across staging servers. You can also just hard code in the path like

$dnaresponse = file_get_contents("http://www.myserver.com/url/?id=myid");

I implemented a Facebook login system so I used this snippet as part of a PHP script that handles the Facebook login, then passes to WebDNA the variables that I need.

Using Ajax is just as easy.

Just put this on top of your page in your <head>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $("#dnaDiv").load("/mypathtodna.tpl");
});
</script>

Then put the following DIV on the page and the contents from /mypathtodna.tpl will be inserted once your page is loaded.

<div id="dnaDIV"></div>

Jeffrey Jones wrote:
Thanks Kenneth,

That seems to work fine.

-Jeff

On Aug 3, 2011, at 9:22 AM, Kenneth Grome wrote:

The simplest way is to pull the webdna content into an iframe in the php page.
Sincerely,
Kenneth Grome
> I Have a client using WP for his blog. He wants to use a
> static page for his blog home page and also wants to
> integrate some WebDNA code into that static page. The
> page is an .php page, so does not get processed by
> WebDNA. I tried setting up a seperate .tpl page and
> using an PHP include in the WP page, but that did not
> work.
>
> Any advice on integrating WebDNA into a WP blog?
>
> -Jeff
>
> Running Cent OS linux 5.4
> Apache 2.2.3
> PHP 5.2.17
> WP 3.2
>
> WebDNA 6.1
> ---------------------------------------------------------
> This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave@webdna.us>
> archives: http://mail.webdna.us/list/talk@webdna.us
> Bug Reporting: support@webdna.us
--------------------------------------------------------- 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

--------------------------------------------------------- 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
--------------040604000603020906070606-- Olin Lagon

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:

filemaker - orderfile (1997) Webcat2, WebCommerce, Mod 10 etc. (1997) using showpage and showcart commands (1996) your mail (2000) [WebDNA] limit found per row (2011) Emailer choke (1997) spawn (1998) 40,000+ items = mutiple dbs? (1999) Grant, please help me ... (1997) emailer settings and control questions (1997) & not allowed in db by definition? (1999) 3 card formulas! (1999) [math] variable question (1997) Re(5): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998) ODBC problems between webcatalog and filemaker pro (2001) AppleScript error (2003) WebStar 3 crackable !!!! (1998) Error: Can't open order file. (2005) Re:2nd WebCatalog2 Feature Request (1996) WebCatalog memory error. (1998)