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:

suffix mapping for NT? (1997) WebCatalog/WebMerchant 2.1 (1998) Bug Report, maybe (1997) Include remote? (1998) 'page impression' techniques for banner ads (1999) [WriteFile] problems (1997) WebCat Code and WebStar Search? (2000) Emailer, SMTP Server, Prefs (2006) WebCat2 beta FTP site (1997) Price Not Appearing (2000) Webcatalog and foreign languages (1998) URL for Discussion Archive (1997) Extended [ConvertChars] (1997) Running 2 two WebCatalog.acgi's (1996) Dates (1996) authorizenet (2001) Dealing with da back button (1999) RE: Answer: WebDelivery downloads alias, not original ? (1997) Misunderstanding?? (1997) [sendmail] bug? (2000)