background preloader

PHP

Facebook Twitter

Flex and PHP: remoting with Zend AMF : Mihai CORLAN. The latest PHP library to add support for AMF and remoting is Zend Framework. The preview prelease version 1.7 offers a new component Zend_AMF that lets you create Flex applications that talk to PHP backends using remoting. Since I am a big fan of remoting as a way to get data to your Flex/AIR clients, I wanted to add a short post explaining how to use it. Here is another post I wrote on remoting with AMFPHP. Actually this post is a part of a larger article I did for Adobe Developer Connection. I want to keep it more focused, so I wrote this one. You can download a Flex Builder project that contains the code I explain in this article from here.

Installing the Zend Framework After downloading the Zend Framework 1.7 archive, extract the files. Next, save the file and restart your web server. What is AMF and remoting and why should you use it? If you already know these answers, you may want to skip to the next section. Let’s look at a working example. Create the Flex PHP project <? <? <? Zend Framework. PHP Tutorial. Complex Web Pages with the Zend Framework? - Maugrim The Reaper' 27 March 2008: With the inclusion of Zend_View Enhanced as first documented, discussed and publicised in this blog series, in the Zend Framework as of 1.5.0 I’d like to thank everyone involved in the process. A few of you pioneered it’s implementation and provided immense feedback which tailored the proposal to some specific needs, others kept bringing it up on the mailing lists and to the attention of the Zend reviewers, and others still spent a lot of time converging ideas towards a unified proposal.

It just goes to show that the community really does have the power to influence the big picture and get stuff done! Recently I’ve been involved in a long discussion about the Zend Framework on the PHP Developers’ Network forum. Our approach was to pick a simple application (we decided to borrow the Java BluePrints Pet Shop for J2EE) and starting from a basic “Hello World!” Example for the Zend Framework work towards a fully functional example. Related posts: PHP tip: How to get a web page using the fopen wrappers | Nadeau. Technologies: PHP 4.0.4+ PHP’s fopen wrappers enable the standard file functions to read web pages from a web server.

A few additional calls are needed to set parameters for a web server request and to get the server’s HTTP response header. This tip shows how. This article is both an independent article and part of an article series on How to extract keywords from a web page. The rest of the series looks at handling web page character encodings, extracting URLs, stripping away HTML syntax, punctuation, symbol characters, and numbers, and breaking a page down into a keyword list. Code The fopen wrappers are a standard feature from PHP 4.0.4 onwards. The following sample code uses file_get_contents() to read a web page using a URL. Download: get_web_page_fopen.zip /** * Get a web file (HTML, XHTML, XML, image, etc.) from a URL. This sample function takes a URL argument and returns an associative array containing the web page header and content. The returned array contains: Example Explanation.