<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 15:22:41 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[David M&uuml;ller: Cross Domain AJAX Guide]]></title>
      <guid>http://www.phpdeveloper.org/news/18868</guid>
      <link>http://www.phpdeveloper.org/news/18868</link>
      <description><![CDATA[<p>
In his latest post <i>David M&uuml;ller</i> covers some of the things to consider when <a href="http://www.d-mueller.de/blog/cross-domain-ajax-guide/">working with cross-domain ajax requests</a> including CORS and iframes.
</p>
<blockquote>
As it is widely known, AJAX Requests are only possible if port, protocol and domain of sender and receiver are equal. [...] Having this cleared out, we will cover ways around this restriction.
</blockquote>
<p>
He covers three main approaches to allowing these cross-domain requests (and some of the security implications that can come with them):
</p>
<ul>
<li>CORS (Cross Origin Resource Sharing)
<li>JSONP (Javascript with a local domain callback)
<li>Iframes
</ul>
<p>
He also briefly mentions things like <a href="https://developer.mozilla.org/en-US/docs/DOM/window.postMessage">window.postMessage</a> (HTML5) and the use of a backend script to proxy a request into your application's local code. 
</p>]]></description>
      <pubDate>Mon, 10 Dec 2012 12:17:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SocialDevelopers.net: Facebook and the Zend Framework - Part 1: Iframe Authentication]]></title>
      <guid>http://www.phpdeveloper.org/news/15862</guid>
      <link>http://www.phpdeveloper.org/news/15862</link>
      <description><![CDATA[<p>
On the SocialDevelopers.net blog there's <a href="http://socialdevelopers.net/facebook-and-the-zend-framework-part-1-iframe-authentication/">a new tutorial posted</a> that helps Zend Framework developers connect their applications to Facebook. This article is the first in a series and talks about one of the simplest integration methods - the iframe.
</p>
<blockquote>
We are proud to present our first ever tutorial, aimed at helping Zend Framework developers to integrate their iframe applications into Facebook using the new(ish) OAuth for Canvas authentication mechanism. This is the first part in a three part series aimed at building a fully working Facebook Iframe application using the Zend Framework.
</blockquote>
<p>
The tutorial is posted in a <a href="http://socialdevelopers.net/wp-content/uploads/2011/02/socialdevelopers.net-Facebook-and-ZF-Tutorial-Part-1.pdf">downloadable PDF</a> to you can take it anywhere your code goes for easier reference.
</p>]]></description>
      <pubDate>Fri, 04 Feb 2011 14:42:58 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Emran Hasan's Blog: Quick start on new Facebook PHP SDK (IFrame based)]]></title>
      <guid>http://www.phpdeveloper.org/news/14456</guid>
      <link>http://www.phpdeveloper.org/news/14456</link>
      <description><![CDATA[<p>
If you're looking for a stripped down, bare-bones look at how to get started with interfacing your PHP script with Facebook, take a look at <a href="http://www.phpfour.com/blog/2010/05/quick-start-on-new-facebook-php-sdk-iframe-based">this quick guide</a> from <i>Emran Hasan</i>.
</p>
<blockquote>
The new <a href="http://developers.facebook.com/docs/">Facebook API</a> has already spread over the application developers and if you're like me, you've already got your hands dirty to see how this new thing works. If you have tried to follow the documentation to <a href="http://developers.facebook.com/docs/guides/canvas/#auth">authorize/get session</a> in your canvas application, it is likely you have already hit roadblocks. Well, I am no savior but I have glued together a few clues and got it working for myself.
</blockquote>
<p>
He walks you through the three simple steps: getting <a href="http://github.com/facebook/php-sdk/">the new API</a>, setting ip a correct configuration file and creating a sample "main page" for your application that echoes out a "Hello World" sort of message to each visitor.
</p>]]></description>
      <pubDate>Tue, 04 May 2010 10:39:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[AnyExample.com: PHP AJAX example: asynchronous file upload]]></title>
      <guid>http://www.phpdeveloper.org/news/6829</guid>
      <link>http://www.phpdeveloper.org/news/6829</link>
      <description><![CDATA[<p>
As mentioned by the <a href="http://devzone.zend.com/node/view/id/1325">Zend Developer Zone</a>, there's a <a href="http://www.anyexample.com/programming/php/php_ajax_example__asynchronous_file_upload.xml">new tutorial</a> over on the AnyExample.com website that shows how to get up and working with a PHP+Ajax connection in no time flat. The goal? To handle a file upload asynchronously from the user.
</p>
<blockquote>
This article contains example application (trivial file-sharing service, like rapidshare, megaupload or yousendit) which uses embedded frames (IFRAME) to upload file. While file is uploaded to hidden frame, user can still access web-page and fill "file description" field.
</blockquote>
<p>
They <a href="http://www.anyexample.com/programming/php/php_ajax_example__asynchronous_file_upload.xml">talk briefly</a> about the PHP functions that will be used in the tutorial and the concept of using IFRAMEs to handle the content coming in (without reloading the page). The rest of the article is a code dump showing the pieces of (procedural) code to get the job done. There's some commenting, but if you're a new coder to PHP, you might want to check out <a href="http://www.php.net">the main PHP site</a> for some more information on the functions used.
</p>]]></description>
      <pubDate>Tue, 05 Dec 2006 14:23:54 -0600</pubDate>
    </item>
  </channel>
</rss>
