 | News Feed |
Sections
|
| feed this: |  |
ProDevTips.com: CRUD with PHP Doctrine
by Chris Cornutt 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).
voice your opinion now!
doctrine crud relationship update create retrieve delete
PhPL33t Blog: How to Automated Plesk Email Creation
by Chris Cornutt April 24, 2008 @ 10:25:31
On the PhPL33t blog, there's a guide for automating the creation of email addresses with the Plesk administration application:
In 2003 I wrote "Plesk Auto Email", the first fully funtional Plesk email automation suite. Now, I am going to show you how to do it. You will need a dedicated server with Linux, Plesk 7.5 and higher, php5, mysql5, and root access. This will show you how to code the auto creation, I am not going into deletions and edits at this time because I don't have all night to blog.
Included are the database table to store the commands in, the PHP script to create the commands (the integration into the other piece of software) and the PHP cron script that looks in the command table and executes each as it goes through.
voice your opinion now!
tutorial automate plesk email create cron command database tutorial
DevShed: Working with Images and Text Flows in PDF Files with PHP 5
by Chris Cornutt November 14, 2007 @ 10:26:00
DevShed has posted the next article in their tutorial series dealing with PDF generation in PHP5. Previously, they've discussed the creation of the file and the addition of text, this time they take it further with new functionality - images.
At this point, you hopefully recall how to use the previous methods to display multiple lines of text in a concrete PDF file, so it's time to learn a few more method bundled with the library. As you'll see in the next few lines, these methods can be quite helpful for performing other tasks, like including images and blocks of texts into the PDF file in question.
They list out the complete source so far to provide a refresher before starting, then move on to the new functionality - adding a basic image and positioning it and creating and adding a text field to your sample PDF.
voice your opinion now!
php5 text image tutorial pdf create php5 text image tutorial pdf create
PHPBuilder.com: Dynamic XML with PHP
by Chris Cornutt August 20, 2007 @ 12:48:00
PHPBuilder.com has a new tutorial posted today with a look at the easy creation of dynamic XML with the data from a database.
In this article I will show how to generate dynamic XML documents with Object-Oriented PHP. Before I get started, let's get right to the heart of this functionality. Although the code may look fancy, being packaged up inside objects and inheritance, the key elements of this functionality rest in the the mysql_list_fields() and mysql_num_fields() functions.
The XML is built manually with the tags assigned to a string as they are built. The information is from a simple query to select all from a user-defined table and is output with a UTF-8 character encoding. They also include a Javascript (download) that helps in making an XMLHttpRequest connection to fetch the XML you've created and pull it in.
voice your opinion now!
dynamic xml create database xmlhttprequest ajax tutorial dynamic xml create database xmlhttprequest ajax tutorial
DevShed: Creating Image Streams from Existing Graphics with the GD Library in PHP
by Chris Cornutt August 20, 2007 @ 11:04:00
DevShed continues its look at using the GD graphics library in PHP with the second part of the tutorial series, this time focusing on the creation of images from existing images (and their streams).
As I stated at the end of the previous article of this series, the GD extension comes packaged with many other useful functions, which indeed deserve a close and detailed look. Thus, in this second tutorial I'll show you how to create different types of image streams from existing graphics, but in this case limiting the process to building GIF, JPG and PNG images.
They work through each of the types (GIF, JPG and PNG) creating an new one from a previous "clouds" image of the same type (a GIF out of a GIF, a JPG from a JPG, etc).
voice your opinion now!
tutorial gd graphic create stream png jpg gif existing tutorial gd graphic create stream png jpg gif existing
PHP F1: PHP Session Tutorial
by Chris Cornutt July 10, 2007 @ 08:46:57
If you're just getting started with PHP, some things can be a bit confusing. For a lot of developers, sessions seem to hold a bit of mystery and can be difficult to use. To help combat this, PHP F1 has posted this new tutorial to demystify this super-handy PHP functionality.
In this tutorial I will show you how to work with sessions in PHP. You will learn how to transfer information between pages. [...] Using sessions you can transfer data between various pages. If you are using sessions then each of your visitors will got a unique id. This id will identify various visitors and with the help of this id are the user data stored on the server.
They introduce what sessions are (the concept behind them), some of the php.ini settings that can be used to change how they work and code to work with assigning values to a session, checking for values in them and removing/destroying the session and its information.
voice your opinion now!
session introduction tutorial create destroy assign session introduction tutorial create destroy assign
|
Community Events
Don't see your event here? Let us know!
|