Posts Tagged ‘PHP’

Trackbacks with Google Blog Search and Zend Feed

Saturday, September 13th, 2008

I’ve wanted to do automatic trackbacking by linking to posts that are linking to any given article of mine, for quite some time now.... Read More

URL – from YouTube insert HTML – with preg_match

Friday, September 12th, 2008

A friend just needed help, he wants people to be able to put the YouTube insert code into a database. However it seems that there are some display related things in there he can live without that people might mess with and of course we don’t want that.... Read More

Pagination with PHP Doctrine

Wednesday, September 3rd, 2008

Things are starting to become more and more feature complete. Let’s look at how to implement general search and pagination. In the Product model:... Read More

File Uploads with PHP Doctrine

Sunday, August 31st, 2008

It’s time to take a look at how file uploads can be integrated into the Doctrine validation and CRUD process. We will have a product in the form of a digital download as an example, it will have a screenshot image that can be maximum 250 pixels wide and high. The download itself will be a zipped file.... Read More

CRUD with PHP Doctrine

Sunday, August 24th, 2008

This piece is building on the prior tutorial, we now have Retrieve, Update and Delete in addition to the Create stuff. The prior tutorial has also been updated since the fromArrayExt method needed some adjustments to manage updating.... Read More

jQuery JSON with PHP json_encode and json_decode

Friday, August 15th, 2008

Update: There is now a real world example called Shortening multiple URLs with jQuery, PHP, picolisp and bit.ly, you might want to check it out when you’re done here. It uses jQuery JSON extensively. Another one is Multiple select lists with jQuery and JSON.... Read More

Extending PHP Doctrine Record – Check Box Groups

Monday, August 11th, 2008

I simply knew we would need the extension capability that the Mdl class allows for sooner or later, I didn’t expect it to be this soon though. The main problem here is saving a many to many relationship straight to the database from the $_POST array, to do that we can extend Doctrine Record with a new function I have named fromArrayExt which adds something extra to the normal fromArray method.... Read More

Smarty and Doctrine combination

Friday, August 8th, 2008

I’ve had problems with both Zend Session and the Zend Controller. It just feels like too much fighting and since the plan is to replace Zend DB with Doctrine there is only the controller and session left and unwanted to boot.... Read More

PHP Doctrine introduction for dummies

Tuesday, August 5th, 2008

It was long overdue but finally I’ve taken a look at Doctrine. And I’m blown away, bye bye Zend DB.... Read More

Fluent Arrays and Strings in PHP – Adding JSON and more

Friday, July 11th, 2008

Recently I’ve had the need to extend the interface further, among other things with JSON support. I’ve used code published by Nicolas Crovatti to do this. There was one line in there though that wasn’t consistent with its purpose. If you use that code you have to replace if($i != $keys[$i]) with if($i !== $keys[$i]). On the other hand if you use PHP >= 5.2 you don’t need this function at all, you use json_encode instead.... Read More