Fresh PHP news, tutorials, tips and much more

Archive for the ‘Advanced’ Category

Create XML document with PHP DOM

Thursday, May 15th, 2008

“XML is future of web” phrase that slowly but comes to be true. So every PHP developer should know how to create XML documets. One more article from Mind Tree about dynamic XML document creation with PHP DOM class show how to create XML documents in the easiest way.

When working with XML-based applications, developers often find themselves facing the requirement to generate XML-encoded data structures on the fly. Examples of this include an XML order template based on user input in a Web form, or an XML representation of a server request or client response based on run-time parameters.

You would learn basics of XML and how to format XML documents. Useful code snippets for your future programming.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »

XPath: run queries in PHP

Thursday, May 15th, 2008

Another post on Mind Tree about running XPath queries in PHP. Author describes what is XPath and where is used. In article you also find good examples of code.

XPath is a language that allows you to address parts of an XML document, making XSLT transformations practically necessary. It also makes it an invaluable tool for managing XML data in applications such as Web applications.

Post tagged with: , ,

Posted in Advanced | No Comments »

Where lives my visitors?

Thursday, May 15th, 2008

Do you ever wonder from where your visitors comes from? Mind Tree posted new article how to track your visitors country.

Sometimes you just need to know what country your site visitors are coming from—for example, if you’re trying to implement geo-targeted advertising. This article will show you how.

Article describing usage of geoip class with nice examples of code.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »

www vs no-www and cookies

Thursday, May 15th, 2008

Very good article of using cookies with domains including www and without it. Why it is important  to use or not to use cookies, and some grate tips you would find in this post.

One of Yahoo’s performance rules says: Use cookie-free domains for static components. This is good because the server has no use for cookie information when serving a JPEG or another static component, so all this cookie information creates network traffic for no reason.

Like usually good article with some examples and code snippets.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »

Finding best framework

Thursday, May 15th, 2008

Alex Netkachov on his forum has wrote some thoughts about couple of popular framework including Zend Framework, Prado and ASP.net.

- Which framework is the best of the three to you?
I know it depends on their use but I was just wondering

If you still does not decided witch one you should use maybe this Alex post would help you.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »

ZF upload YouTube videos

Thursday, May 15th, 2008

Jochen Hartmann added new great video tutorial to YouTube. In this tutorial he shows how to upload YouTube videos with Zend Framework. In tutorial he demonstrates how to deal with YouTube Data API.

Post tagged with: , , ,

Posted in Advanced | No Comments »

ZF example application part 8: Creating and Editing Blog Entries with a dash of HTMLPurifier

Wednesday, May 14th, 2008

Fresh new entry of popular Zend Framework tutorial launched today. In this part author shows how to make blog entries editing.

here’s nothing quite like having a functioning application emerge out of the controlled chaos we know as The Development Process. In Part 8 of the ongoing saga describing how to build a real world blog application using the Zend Framework we finally reach the point at which we concentrate on blog entries. At the end of this Part, we will be able to create and edit entries in preparation for Part 9 when we will explore displaying them to the world!

In this part you would learn how to make blog entry editing controller, work with Zend_Form, how to filter entries with HTMLPurifier. Like usually  many code examples and new SVN repository.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »

Build Web services with PHP in Eclipse

Wednesday, May 14th, 2008

Nathan A. Good launched new tutorial how work with Eclipse PTD. Eclipse is great IDE (integrated development environment) for many programming languages.

Learn how to build Web services in PHP using the PHP Development Tools plug-in in Eclipse Europa. Become familiar with the PDT project, and learn how to create and deploy useful PHP projects, learn about the philosophy behind contract-first development, and understand the basic parts that make up a Web Services Description Language (WSDL) file.

In Good’s ebook is shown how to create web services (WSDL).

Post tagged with: , ,

Posted in Advanced | No Comments »

PHP session cookie refresh

Wednesday, May 14th, 2008

Brian Moon posted new article how to deal with session cookies. Sometimes there is problems with session cookie refresh. Brian has great solution for this situation.

I have always had an issue with PHP Sessions. Albeit, a lot of my issues are now invalid. When they were first implemented, they had lots of issues. Then the $_SESSION variable came to exist and it was better. Then memcached came to exist and you could store sessions there. That was better. But, still, after all this time, there is one issue that still bugs me.

Looks like all my problems with session cookie diapered with Brian provided code snippet.

Post tagged with: , ,

Posted in Advanced, Beginners | No Comments »

Getting Started with AJAX in jQuery

Tuesday, May 13th, 2008

If you looking for some good tutorial to start learning AJAX with jQuery Developer Tutorial lunched great tutorial with good documented source code examples.

AJAX is probably the biggest thing you can add to your site; with AJAX, you can dramatically increase functionality, and give your end users more usable web applications. But AJAX is tricky to get started with - it usually requires very complex JavaScript knowledge. In this tutorial, I’ll show you how to get started with AJAX using the jQuery JavaScript framework.

In this article author describes how to make user authorization with AJAX and jQuery.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »