Fresh PHP news, tutorials, tips and much more

Posts Tagged ‘php’

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 »

User registration form

Wednesday, May 14th, 2008

Nice article for PHP beginners to design and code user registration form. In this tutorial author shows how you can fast create user registration for your web application.

For any real application though, that won’t work and we require a “New User Registration’ system. That’s what we are going tot create in this post.

In this tutorial you would find code examples, good commented source. Looks like this tutorial is one of tutorial series. Great job from author.

Post tagged with: , , ,

Posted in Beginners | No Comments »

Server variables in PHP

Tuesday, May 13th, 2008

Just found this great article for PHP beginners. In server variables you could find very useful information about server variables like script path, execution time and much more.

You guys must have know about server variables in PHP. Server Variables are those variables which are inside the super global array named $_SERVER available in PHP. There are many server variables in PHP and some of them are very useful for fore developing PHP projects. I’m going to post here some of the very useful server variables available in PHP development.

Author describes 8 most useful variables.

Post tagged with: , ,

Posted in Beginners | No Comments »

NetBeans 6.1 now suports PHP

Tuesday, May 13th, 2008

Recently was realized new version of popular IDE NetBeans. This new version comes with PHP support - code highlighting, debugging and much more.

The NetBeans IDE is a modular, standards-based, integrated development environment (IDE) written in the Java programming language. The NetBeans project consists of an open source IDE and an application platform, which can be used as a generic framework to build any kind of application.

Post tagged with: , ,

Posted in Advanced, Beginners | No Comments »

Dwoo new PHP templating engine

Tuesday, May 13th, 2008

Belgian PHP developer realized new and stable version of his PHP templating engine named Dwoo. This is very similar to Smarty but has some great features.

Four months have passed since I started on this project and I finally feel that it is stable enough to make an announcement and have more people trying it.

Not tried this but i think i would try in couple of days.

Post tagged with: , ,

Posted in Advanced, Beginners | No Comments »

Multibyte Shell Command Escaping Bypass Vulnerability

Wednesday, May 7th, 2008

Sometimes PHP developers need execute some kind of shell commands. Sometimes these commands has user input so it is logical that there can be some security holes. To avoid such kind of security holes SecuriTeam published new article describing  some PHP build in functions:

In PHP there exist two functions to escape shell commands or arguments to shell commands that are used in PHP applications to protect against shell command injection vulnerabilities.

Post tagged with: , ,

Posted in Advanced | No Comments »

9 PHP Debugging Techniques

Wednesday, May 7th, 2008

Adam Charnock on his blog wrote new post how you can debug your PHP applications. In article is shown 9 debugging methods you should use.

Isn’t writing new code great? Wouldn’t the world be a better place if all were ever had to do is write software from scratch, not having to worry about methods of classes past? Unfortunately, we all know that this is not the case. In fact, estimates say that we spend around 80% of our programming time maintaining old code. So for this blog post will be trying to tackle that 80%, and I will see what I can do to make it less painful.

All methods in his articles comes with examples how to use them. In article author shows from basic debugging to advanced debugging tools.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »

New features in PHP v6

Wednesday, May 7th, 2008

Nathan A. Good in IBM developers published new article about PHP v6 new features and syntax improvements. For all PHP coders it is important to know these changes, because one day our projects that worked fine on php v4 or v5 may not work.

PHP’s next edition, V6, includes new features and syntax improvements that will make it easier to use from an object-oriented standpoint. Other important features, such as Unicode support in many of the core functions, mean that PHP V6 is positioned for better international support and robustness.

Author gives some examples what would be changed and how to avoid code errors. We should prepare our code for next generation.

Post tagged with: , ,

Posted in Advanced, Beginners | No Comments »

Requested PHP tutorials

Tuesday, May 6th, 2008

If you are looking for step by step PHP tutorials GeekInterview.com has posted new article where author collected list  of step by step PHP tutorials.

PHP Introduction
PHP Tutorial - Introduction In this tutorial you will learn about PHP - Introduction to PHP, What you should already know? What’s PHP? What’s the difference between PHP and HTML? When to use PHP?

PHP Installation
PHP Tutorial - Installation In this tutorial you will learn about PHP - Installation steps involved in Installing Apache server, Installing PHP 4 and Installing PHP 5.

PHP Syntax
PHP Tutorial - Syntax In this tutorial you will learn about PHP Syntax - Syntax for Writing a script, Scripts VS. File and Comments

Post tagged with: ,

Posted in Beginners | 1 Comment »