News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

DevShed:
Inserting, Updating and Deleting Database Rows with Code Igniter
September 24, 2008 @ 12:03:27

DevShed continues their series focusing on the CodeIgniter framework with the seventh part - a look at interacting with the database to update, delete and insert rows from your application.

You've seen some of the things you can accomplish with the Code Igniter PHP framework in earlier parts of this series. In this seventh part of the series, you will learn, through copious examples, how to perform insertions, updates and deletions on a selected MySQL table by using Code Igniter's database class. You'll see that these tasks are very intuitive and easy to grasp, thanks to Code Igniter's friendly learning curve.

They show how to make conditional select statements (with where clauses) and do both inserts of new information and updates to current information, all with the built-in model functionality the framework provides.

0 comments voice your opinion now!
codeigniter framework tutorial update delete insert conditional



Symfony Blog:
New in symfony 1.2 Small things matter
September 03, 2008 @ 09:33:28

In this new post to the symfony blog today Fabien talks about some of the "small things" that help to make this latest version of the framework (1.2) even better.

As for every symfony version, we try to simplify the API and make it more intuitive and powerful. Here are some examples that you will soon enjoy in symfony 1.2.

There's four included in the post (and many more in the framework):

  • Application name in CLI tasks
  • Native PUT and DELETE support from the browser
  • Shortcuts in the response
  • sfValidatorSchemaCompare validator
0 comments voice your opinion now!
symfony small feature cli put delete shortcut sfvalidatorschemacompare


ProDevTips.com:
CRUD with PHP Doctrine
August 25, 2008 @ 11:19:37

In a fourth part of their series looking at using Doctrine in PHP, the ProDevTips blog moves on to implementing it in a typical CRUD interface.

They create the links between the tables (two hasOne relationships), a search() method to find the destinations for a user, a sorting method to multisort based on the subkeys of the value passed in and the methods for updating the information already in the database.

That's it for now, feel free to download this tiny Smarty and Doctrine framework. Note that for this to work you have to put Smarty and Doctrine in the lib folder. There is a login interface involved, just click submit there without entering anything. There is also an SQL file in the trip_selector folder if you want to try this out with some test data (same as in the picture above).
0 comments voice your opinion now!
doctrine crud relationship update create retrieve delete


Total PHP:
Deleting files with PHP
August 06, 2008 @ 11:19:48

The Total PHP site has another introductory tutorial posted showing you how to correctly delete files in your PHP scripts.

Following our tutorials on uploading files and listing files, this tutorial will walk you through deleting files from a directory. This is done using the unlink() function.

Their example is pretty simple (as is the concept) - they show how to check to be sure that the file you want to remove isn't in use/open and then issue the unlink to remove it from the file system.

0 comments voice your opinion now!
delete file upload list tutorial fopen unlink


Ben Ramsey's Blog:
Supporting PUT & DELETE in the Zend Framework
February 28, 2008 @ 10:27:00

Ben Ramsey has recently blogged about some of the research and bit of development that he's done to add "more correct" functionality to the Zend Framework for working with RESTful interfaces - proper PUT and DELETE support.

I've recently been wrapped up in an effort to design and implement a RESTful API using the Atom Protocol for a project at work. We are using the Zend Framework as the underlying framework for the project, so, in order to follow the Atom Protocol, I needed to support the HTTP methods PUT and DELETE

Since the Zend Framework has been playing such a prominent role in the development, he's been digging into the Zend_Rest_Server component code and isn't too happy about its support for PUT and DELETE. As a result, he's proposed methods that might help resolve things such as isGet, isDelete, isOptions and getEntityBody. He' even created a patch to make the needed changes.

0 comments voice your opinion now!
rest interface zendframework put get delete patch


PHP-Learn-It.com:
Cooking Cookies with PHP
September 10, 2007 @ 15:10:52

On PHP-Learn-It.com today, there's a new tutorial looking to get you, the budding PHP developer, into working with cookies in PHP.

A cookie is often used to store data which can be used to identify a user, for example, person's username. [...] In this tutorial, we will learn how to write, read and delete cookies in PHP.

They show how to create the cookie (with set_cookie) - both one that will timeout when the browser closes and one that stays after - how to read the value from them and how to remove them by setting the data in the past.

0 comments voice your opinion now!
cookie setcookie create delete read tutorial beginner cookie setcookie create delete read tutorial beginner


Raphael Stolt's Blog:
Transforming data centered XML into SQL statements
May 08, 2007 @ 10:27:00

In this new post on Raphael Stolt's blog, he shows a way that you can take XML that holds SQL information (in his example INSERTs and DELETEs) and transforms them into SQL statements via XSL stylesheets.

A canny data import technique that emerged from praxis, while working on the import of data-centered XML resources, is utilitizing the abilities of Xslt. The generation of the required SQL statements actually only needs a simple Xsl stylesheet which might import for an PHP XSLTProcessor object or pass to the xsltproc command line tool. Both further described approaches are based upon the libxslt library and are assuming the use of XSLT 1.0.

He starts with an example bit of XML that has the XSL stylesheet at the top that will be used to transform the data and the information to perform inserts on several "partner" values in the XML below. Following this, he creates a PHP class to load the file and apply the stylesheet.

He also mentions a few different approaches to the same problem - XSLTProcessor class approach returning a single SQL string , xsltproc approach and the XSLTProcessor class approach using the ability to use PHP functions as XSLT functions.

0 comments voice your opinion now!
transform xml sql statement xslt insert delete transform xml sql statement xslt insert delete


Spindrop.us:
Creating, Updating, Deleting documents in a Lucene Index with symfony
April 24, 2007 @ 15:28:00

In yet another follow-up in their series on using the Lucene search functionality the Zend Framework offers inside of Symfony.

Previously we covered an all-at-once approach to indexing objects in your symfony app. But for some reason, people find the need to allow users to sign up, or change their email addresses and then all of a sudden our wonderful Lucene index is out of date.

Here lies the strength of using Zend Search Lucene in your app, you can now get the flexibility of interacting with a Lucene index, no matter how it was created and add, update and delete documents to it.

Instead of going the "clunky" route of having a cron job update the search information nightly, they opt for a method that updates the database whenever new content is added/updated/deleted. They change up the class they generated before and add methods to reindex whenever each method is run.

2 comments voice your opinion now!
create update delete document zendframework symfonyframework search create update delete document zendframework symfonyframework search


The Bakery:
Soft Delete, Authentication and Validation
April 19, 2007 @ 10:58:00

There's three new handy articles over on The Bakery for all of you CakePHP-ers out there:

  • An example of a "Soft delete" behavior implementation automatically in a current Model in your application.
  • A new tutorial showing an update in the "Simple Form Authentication" implementation for your app.
  • A method for advanced validation for your Models
Check out these and many more great CakePHP-related tutorials, articles, and new bits of functionality over at The Bakery.

0 comments voice your opinion now!
delete authentication validation caekphpframework delete authentication validation caekphpframework


Community News:
Wordpress 2.0.7 Released
January 17, 2007 @ 13:49:00

Ryan Malesevich has posted a release announcement about the latest release of the popular blogging engine - Wordpress 2.0.7.

I just wanted to drop another quick line saying that our favorite blogging engine has once again been updated. The developers deemed it important to get some more security fixes pushed out to the Wordpress users, so Wordpress 2.0.7 has been released.

Updates in this release include:

  • a fix to wp_unregister_GLOBALS()
  • Feeds now properly serve 304 Not Modified headers
  • Deleting WordPress Pages no longer gives an 'Are You Sure?' prompt.
You can grab the latest download here.

0 comments voice your opinion now!
wordpress release version blog securty feed delete wordpress release version blog securty feed delete



Community Events











Don't see your event here?
Let us know!


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

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