News Feed
Sections

News Archive
feed this:

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



PhPL33t Blog:
How to Automated Plesk Email Creation
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.

0 comments voice your opinion now!
tutorial automate plesk email create cron command database tutorial


Builder.com.au:
Creating and managing a Mysql database with phpMyAdmin
April 18, 2008 @ 07:58:18

On the Builder.com.au site today, there's an introduction posted to walk you through one of the most popular web-based database administration tools for PHP/MySQL on the web, phpMyAdmin.

phpMyAdmin is a HTML interface developed in PHP, for creating and managing MySQL databases. Before you download and install the latest version, have a look at the requirements section on the phpMyAdmin Wiki.

They look at the overall interface, how to set up users, making a new database, creating a table inside of it, pushing data into the table and the various options that the tool has to help you manage your database(s) - all with nice big screenshots to show you where it all is.

0 comments voice your opinion now!
mysql database create manage phpmyadmin tutorial screenshot


DevShed:
Working with Images and Text Flows in PDF Files with PHP 5
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.

0 comments voice your opinion now!
php5 text image tutorial pdf create php5 text image tutorial pdf create


DevShed:
Constructing Multi-Line PDF Documents with PHP 5
November 07, 2007 @ 13:08:00

DevShed continues their series looking at working with PDF files in PHP with this second part of the series, taking things to the next level - making multi-line PDF documents in PHP5.

In this second part of the series I'll provide you with some examples that illustrate how to build PDF files that contain multiple lines of text; remember, in the preceding article I worked only with single-line strings. Additionally, I'll teach you how to position these texts on a given PDF page.

The tutorial walks you through a quick review of making a PDF file from scratch before moving on to the new stuff - creating a PDF with multiple lines of text in it and an example of positioning the text with the set_text_pos function in PHP.

0 comments voice your opinion now!
pdf create php5 tutorial document text settextpos position pdf create php5 tutorial document text settextpos position


PHPBuilder.com:
Creating an Online Survey - Part 1
September 21, 2007 @ 16:07:00

PHPBuilder.com has posted part one of their tutorial showing how to create a simple online survey system (from Brett Patterson/i>).

We've all come across some sort of online survey that asks a few questions about our interests or our online shopping experience. In this article we're going to walk you through the creation of a similar online survey that you can use on your own web site.

Their survey is just a simple 10-12 question format where the replies are handled in one of two ways - emailing the results out to an address or storing the information in a database to be reviewed later. The HTML code for the tutorial is also available.

1 comment voice your opinion now!
create online survey tutorial part1 create online survey tutorial part1


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


PHPBuilder.com:
Dynamic XML with PHP
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.

0 comments 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
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).

0 comments 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
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.

1 comment 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!


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

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