 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPBuilder.com: Beginning Ajax with PHP From Novice to Professional
by Chris Cornutt September 17, 2007 @ 07:57:00
PHPBuilder has posted an excerpt from an Apress book today - "Beginning Ajax with PHP: From Novice to Professional". It's from the third chapter that introduces the PHP and Ajax combination.
While the concept of Ajax contains a handy set of functionality for creating actions on the fly, if you are not making use of its ability to connect to the server, you are really just using basic JavaScript. Not that there is anything truly wrong with that, but the real power lies in joining the client-side functionality of JavaScript with the server-side processing of the PHP language using the concept of Ajax.
The article's pretty light on the code, but it does give a full example of showing and hiding dynamic content pulled from a backend PHP script (calendar information). Outside of that they just discuss general topics like "Why PHP and Ajax?" and the difference between client-side and server-side processing.
voice your opinion now!
excerpt book apress ajax beginning chapter excerpt book apress ajax beginning chapter
DevShed: Database Techniques and PHP
by Chris Cornutt June 21, 2007 @ 13:02:00
Continuing on from this previous post, DevShed has this new tutorial posted. Another excerpt from O'Reilly's "Programming PHP, Second Edition" (by Kevin Tatroe, Rasmus Lerdorf, and Peter MacIntyre), this section gets more into connecting to the database, making a query and returning some information.
They start off looking at the DSNs mentioned previously and include a bit of error checking around it to handle anything that might come up. The next step is, of course, to make a query against the information in your database. They also include an example of the fetchRow method to push the returned results into a variable.
The variable is built out as an array, so they show what that array looks like "on the inside" and how you can reference the different values that make it up.
voice your opinion now!
database technique excerpt oreilly programming database technique excerpt oreilly programming
DevShed: Databases and PHP
by Chris Cornutt June 14, 2007 @ 12:08:00
DevShed has started a new series looking at working with PHP and databases with this new tutorial posted today, an excerpt from the O'Reilly book "Programming PHP, Second Edition".
We focus on the PEAR DB system, which lets you use the same functions to access any database, rather than on the myriad database-specific extensions. In this chapter, you'll learn how to fetch data from the database, how to store data in the database, and how to handle errors. We finish with a sample application that shows how to put various database techniques into action.
In this first part of the series, they look at what kinds of things are possible with the database connection, some of the basics of using the PEAR DB class and working with data source names to help with the connection.
voice your opinion now!
database tutorial pear oreilly excerpt programming database tutorial pear oreilly excerpt programming
DevShed: Sessions and Cookies
by Chris Cornutt June 07, 2007 @ 13:15:43
DevShed has a new book excerpt from a good standby security resource from O'Reilly - Chris Shiflett's "Essential PHP Security". This time, they focus on the chapter talking about sessions and cookie security.
This chapter discusses sessions and the inherent risks associated with stateful web applications. You will first learn the fundamentals of state, cookies, and sessions; then I will discuss several concerns - cookie theft, exposed session data, session fixation, and session hijacking-along with practices that you can employ to help prevent them.
The chapter talks about how the statelessness of HTTP causes problems, how cookies can be stolen because of it and what kinds of things you can do to keep you and your users safe (like session fixation).
voice your opinion now!
session cookie security oreilly book excerpt session cookie security oreilly book excerpt
WebReference.com: Security Techniques
by Chris Cornutt May 14, 2007 @ 11:43:00
Filed under their "Advanced Topics" sections today is a new article from WebReference.com that looks at some security techniques developers can use in their apps to help keep their and their user's information safe from prying eyes. It's an excerpt from Larry Ullman's book "PHP 5 Advanced: Visual QuickPro Guide".
This chapter will begin by rehashing the fundamentals of secure PHP programming. These are the basic things that I hope/assume you're already doing. After that a quick example shows ways to validate different kinds of data that might come from an HTML form.
The third topic is the new-to-PHP 5 PECL library called Filter. Its usage isn't very programmer-friendly, but the way it wraps all of the customary data filtering and sanitizing methods into one interface makes it worth knowing. After that, two different uses of the PEAR Auth package show an alternative way to implement authorization in your Web applications. The chapter will conclude with coverage of the MCrypt library, demonstrating how to encrypt and decrypt data.
The security tips in this part of the series range from turning off register_globals (you do have it off, don't you?) to form validation with things like regular expressions and the ctype functions.
voice your opinion now!
excerpt security technique basic advanced form validation excerpt security technique basic advanced form validation
|
Community Events
Don't see your event here? Let us know!
|