 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPPro.org: SQL Intro, Reciprocal Links & Finding Links with DOM
by Chris Cornutt October 06, 2008 @ 12:09:15
Kevin Waterson has added three new tutorials to his PHPPro.org website recently:
- Introduction To SQL - The language used in relational databases is SQL. Regardless of the database used, a standard language is used to communicate with them all. This tutorial shows some basic concepts to using SQL.
- Reciprocal Links - Automating reciprocal links at first glance looks a daunting task. This helper class takes away much of the pain of what can be a mindlessly tedious process and simplifies it into a few easy to use class methods
- Get Links With DOM - Perhaps the biggest mistake people make when trying to get URLs or link text from a web page is trying to do it using regular expressions. The job can be done with regular expressions, however, there is a high overhead in having preg loop over the entire document many times. The correct way, and the faster, and infinitely cooler ways is to use DOM.
You can find the links to these and many other great tutorials over on the PHPPro.org website's tutorials section.
voice your opinion now!
tutorial sql intro reciprocal link dom find
NETTUTS.com: Create a Basic Shoutbox with PHP and SQL
by Chris Cornutt October 03, 2008 @ 13:40:50
The NETTUTs site has a new tutorial posted today with instruction of how to create a simple shoutbox-style mini-app for your site.
In this tutorial, we will be creating a basic 'Shoutbox' system with PHP. Aimed at beginners to PHP development, this allows you to get your feet wet working with databases before moving on to some of the more advanced PHP tutorials here at NETTUTS.
You provide the environment and they provide everything else - the code, the database structure and an explanation of how they all fit together. There's even a demo of the end result in action.
voice your opinion now!
tutorial shoutbox sql mysql application
Christopher Kunz's Blog: Warning about the article "SQL Injection" in current "PHP Magazin"
by Chris Cornutt September 14, 2008 @ 20:09:52
If you're a subscriber (or reader) of the German publication "PHP Magazin", be sure you read up on some comments that Christpher Kunz has about some issues around a SQL injection article in the current issue (October/November).
It is not usually my custom to comment negatively or nitpick on other people's articles in magazines, especially not in magazines I have written for. This time however, I really must raise my voice to point out a couple of (well, actually a lot of) issues in an article about SQL injection in the current (October/November) issue of the german "PHP Magazin".
He points out a few problems (like the fact that there's no multi-selects in PHP's mysql support) and things that it would require special permissions (like root) to run on a system.
voice your opinion now!
sql injection phpmagazin german article error problem
Kevin Waterson's Blog: Introduction to PHP and MySQL How they work together.
by Chris Cornutt September 12, 2008 @ 10:08:59
Kevin Waterson has posted a new tutorial (a very comprehensive one) seeking to make introductions between a developer new to PHP and the MySQL abilities the language has.
This tutorial is aimed at those new to PHP and MySQL. The object of this tutorials is to show by way of example how to use php to CREATE a database, how to CREATE a table, how to INSERT data into a database, and how to SELECT that data and display it on a web page.
The tutorial doesn't get into working with forms and the data submitted in them, but it does give a great overview of basic SQL commands, pushing data into tables and some other simple functions (loading a CSV file, preventing SQL injection and getting the last inserted ID).
voice your opinion now!
tutorial introduction mysql comprehensive csv lastid injection sql
Rob Allen's Blog: Notes on Zend_Cache
by Chris Cornutt July 11, 2008 @ 07:58:43
Rob Allen has posted a few notes about the Zend_Cache component of the Zend Framework to his blog today.
Recently I needed to speed up a legacy project that makes a lot of database calls to generate each page. After profiling, I discovered that 90% of the database calls returned data that rarely changed, so decided to cache these calls. One of the nice things about Zend_Framework is that its use-at-will philosophy means that you can use any given component with minimal dependencies on the rest of the framework code.
He shows how, using the Zend_Cache module (and friends Zend_Loader and Zend_Exception), he creates a caching class that can be called anywhere and is used to cache the results from the queries. His default lifetime is set to 7200 seconds - two hours - before the script needs to refresh the cache and get the latest updates.
voice your opinion now!
zendcache zendframework sql query results example code
Mike Willbanks' Blog: PHP Performance Series Maximizing Your MySQL Database
by Chris Cornutt June 19, 2008 @ 12:01:24
Mike Willbanks has posted another part in his "PHP performance" series today. In his previous article, he talked about caching techniques including things like opcode caching and database memory tables. This time he talks about getting the most out of your MySQL database.
Application level SQL performance is much different than the performance of the SQL query itself but rather how it has been designed to work in the application. Many of the items I will be addressing in this area is designing your application to make less queries thus improving scalability and likely performance. However, performance does not always equal scalability as the same with scalability does not always equal performance.
He looks at a few different topics like lazy connections, iterating queries, need-based selects, normalization and a few simple things that you can apply to every SQL your application uses to optimize it as much as possible.
voice your opinion now!
performance series maximize mysql database tip sql query
Harry Roberts' Blog: Manipulating PHP arrays with SQL
by Chris Cornutt May 22, 2008 @ 14:39:54
Harry Roberts has a quick post to his blog today showing a method he's come up with to handle PHP arrays from inside of SQL statements (a port of the JsonSQL library to PHP).
Trent Richardson created a very small and simple JsonSQL library for JavaScript which allows you to run an extremely limited subset of SQL against a Json array/object. I quickly ported it over to PHP 5 and it works like a charm, although the syntax for the WHERE clause isn't exactly the same but the rest ported across properly.
He's included some sample source code of it in action - selecting information out of an array of user information, once changing their order and the other grabbing a username. Complete source for the library is included too.
voice your opinion now!
manipulate array sql statement phpsql library port jsonsql
|
Community Events
Don't see your event here? Let us know!
|