News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Matthew Turland's Blog:
PHP 5.2 and SQL Server 2000 on Windows XP
0 comments :: posted Monday May 12, 2008 @ 12:09:42
voice your opinion now!

Matthew Turland has posted about his experience working with a Windows XP system trying to get PHP 5.2 and SQL Server 2000 to play nicely together:

Recently at work, I was tasked with finding a method to retrieve data from a third-party SQL Server 2000-based system into our own MySQL-based application. It's worth noting that both system are behind their own firewalls and I was trying to bear security in mind as I did this.

Some highlights of his work included using GoToAssist to get to the system, using EMS SQL Manager to work with the SQL server itself and some of the PHP code he "threw at it" to grab the info he needed from the database (with the PDO drivers).

tagged with: php5 sqlserver windowsxp pdo mysql ems sql gotoassist


Martynas Jusevicius' Blog:
Calculating great-circle distance in MySQL and Propel
0 comments :: posted Thursday May 01, 2008 @ 16:08:27
voice your opinion now!

In a new post today, Martynas Jusevicius shows how to combine a little SQL magic with the Propel framework to fins the distance between two places:

Eventually the simple distance formula that I have blogged about turned out to be too inaccurate, even for locations within city bounds. I needed to use a formula to calculate great-circle distance which takes into account that the Earth is a sphere.

He includes the SQL to pull the data in the right format and the PHP code (using Propel) to reproduce it without having to write it by hand (complete with the bind variables to help with security and consistency).

tagged with: great circle distance mysql propel framework sql

Maggie Nelson's Blog:
NTILE() - easy way to generate tag clouds
0 comments :: posted Tuesday April 29, 2008 @ 13:44:01
voice your opinion now!

For the Oracle users out there looking for an easy way to pull those tags together and make a handy little cloud out of them, Maggie Nelson has posted about a simple Oracle function that can help - NTILE.

For example, check out the documentation for the NTILE Function. Yeah, sounds kind of boring. What good could it be in the wonderful world of web development? After all, who manages employee or sales tables anymore... Answer: generating tag clouds.

Her SQL statement categorizes the tags for you automatically, dropping them in to "buckets" of font sizes. This makes it simple to loop through them (like with a foreach) and output your tags with a little help from some CSS. You can even specify how many buckets you want it to fill (how many different tag values to get and compare).

tagged with: ntile tag cloud tutorial oracle sql order bucket

Christopher Jones' Blog:
PHP 5.3 "NOWDOCS" make SQL escaping easier
0 comments :: posted Thursday February 14, 2008 @ 11:18:00
voice your opinion now!

Christopher Jones has posted about an update to the development for PHP 5.3 that makes escaping SQL even easier in scripts - NOWDOCS.

Escaping quotes or other meta characters in SQL can be painful unless you get lucky with your quoting style. [...] Even with PHP's "Heredoc" syntax something will need escaping, but with PHP 5.3's new "Nowdoc" syntax no escaping is needed.

The only difference between HEREDOC and NOWDOC is that the initial keyword (like the first END in this statement: <<<'END' text here END;) that can make worrying about complex quoting rules a thing of the past.

tagged with: nowdocs sql escape nowdoc heredoc php5 quote

Stuart Herbert's Blog:
More about Performance Tuning
0 comments :: posted Tuesday February 05, 2008 @ 07:57:00
voice your opinion now!

Based off of a previous article from Mike Willbanks, Stuart Herbert has posted some of his own thoughts on tuning and tweaking your applications for the best performance you can get out of them.

There's some good advice in there, and I thought it'd be a good idea to quickly add a bit more detail about the separate approaches that Mike raises.

He goes over the APC caching, memcache, the "gzip trick", the "Not Modified" header and optimized SQL statements.

He also mentions one thing that Mike didn't mention - a split between static files (no PHP needed) and their dynamic cousins. Having a more pure Apache (no PHP installed) can help give a minute jump in speed that, depending on the size of the site, could really add up from a user's perspective.

tagged with: performance tune memcache apc sql optimize gzip notmodified

Paul Jones' Blog:
Solar 1.0.0 alpha1 Released
0 comments :: posted Tuesday November 13, 2007 @ 12:05:00
voice your opinion now!

Paul Jones is happy to announce that the Solar PHP framework he develops on has made it to the next major stage in its development - Solar 1.0.0 alpha 1 release.

After more months of breaks, changes, additions, and refactoring, I'm (finallly) at the point where I'm ready to call the Solar framework for PHP 5 feature-complete. The first of this feature-complete series is the new Solar-1.0.0alpha1 release as of Sunday, 11 Nov, 2007. We now have at least 80% of everything you would need to build web-based and cli-based applications. This is a big milestone for the project.

Some of the "highlights" of this new release he mentions include:

  • The new Solar_Controller_Console and Solar_Controller_Command classes are analagous to front and page controllers, respectively, for the command line.
  • The new Solar_Filter class combines validating and sanitizing.
  • We've moved a lot of the core functions of the Solar arch-class to their own static classes
  • Lots of changes in the Solar_Sql package related to database portability

There's also a new ORM system he mentions - mainly the major addition of Solar_Sql_Model (and its friends). Check out the community wiki for the new functionality to get started.

tagged with: solar php5 framework alpha release console filter sql model solar php5 framework alpha release console filter sql model


cakephp PEAR code releases framework book job developer conference release application package zend ajax pecl mysql database security PHP5 zendframework

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework