Dummy Data Generator tool

GenerateData is a free, open source script written in JavaScript, PHP and MySQL that lets you quickly generate large volumes of custom data in a variety of formats for use in testing software, populating databases.

Datagenerator

Datagenerator is a library and GUI for generating rule based test data for various databases like Mysql, Firebird, Interbase, MSSQL, Oracle, SQLite and PostgreSQL.

dgMaster

Data generator tool which supports many data types (primitive data types,but also names,addresses,post codes,etc.) and generates data in various formats (text,xml,db).It provides a GUI and is extensible by means of plugging-in new data-generator classes.

Spawner Data Generator

Spawner is a generator of sample/test data for databases. It can be configured to output delimited text or SQL insert statements. It can also insert directly into a MySQL 5.x database. Includes many field types, most of which are configurable.

DBMonster

DBMonster is a tool that generates random test data and inserts it into SQL database.

for each statements with arrays in php

<?php


$birds= array('Parrots' =>
array('Kakapo','Kea ','Vernal Hanging Parrot'),

'Cuckoos and Turacos'=>
array('Purple-crested Turaco','Grey Go-away-bird','Great Blue Turaco'));
//display all
print_r($birds);


//for new line
echo '<br><br><br>';

// with foreach() display only main array
foreach($birds as $category => $sub){

echo '<b>'.$category.'<br></b>';
}

//for new line
echo '<br><br>';

// with foreach() display main array and sub arrays
foreach($birds as $category => $sub1){
echo '<b>'.$category.'<br></b>';
foreach($sub1 as $sub2)
echo $sub2.'<br>';
}
?>

output ;

Array ( [Parrots] => Array ( [0] => Kakapo [1] => Kea [2] => Vernal Hanging Parrot ) [Cuckoos and Turacos] => Array ( [0] => Purple-crested Turaco [1] => Grey Go-away-bird [2] => Great Blue Turaco ) )


Parrots
Cuckoos and Turacos


Parrots
Kakapo
Kea
Vernal Hanging Parrot
Cuckoos and Turacos
Purple-crested Turaco
Grey Go-away-bird
Great Blue Turaco

Image-Resize class for PHP

Resizing images in PHP is easier with Image-Resize class. You can use it to create thumbnail images or resizing big images to desired size.

To use, just include image.class.php to your PHP file or where you are using resizing function. Then create new variable with an iresize() class object then use functions which comes with Image-resize class.

Example usage;
<?php
  require "image.class.php";
  
  $resize = new iresize();
  $resize->img("test.jpg")->size("500x500")->render("test-resized.jpg");
?>

Explaination;
iresize->img($source_filename) is where we are loading image to resize
->size("500x500") is for entering desired image size
->render("test-resized.jpg") is for final result. emptry/filename with extension

Download / Source

PHP comments

Normally to understand PHP code we use comments. We use comments to make PHP code more readable and understandable. Suppose you write a complex code and two years later you need to add new functionality in that code. But when you open your code you do not understand the code because you did not use comment in your code.
Below some strategies are given for you. We make comment in two ways.
(1)    One line comment
(2)     Two or more lines of comment.

One line comment
If the comments do not exceed one line then we call it one line comment or single line comment. We use // symbol to represents php one line comment. See the example below
<? Php
/ / This line show the hello everyone
echo "Hello Everyone, This is My First PHP Code";
?>

Two or more line comments
If your comment exceeds one number of line you can use double or more line comments. See the example below.

<? Php
/ * This line show the hello everyone
And also it print my first program
* /
echo "Hello Everyone, This is My First PHP Code";
?>

Propel NestedSet inheritance problem

Error message

Fatal error: Uncaught exception 'PropelException' with message 'Call to undefined method: makeRoot' in /usr/share/php/propel/om/BaseObject.php:325

You need to replace inheritance classes for nested set. In your model class, find and replace.
class Contents extends BaseContents

with this
class Contents extends BaseContentsNestedSet

also find and replace
class ContentsPeer extends BaseContentsPeer

with this
class ContentsPeer extends BaseContentsNestedSetPeer

You are now good to go.

crack facebook password facebook

Whoo Weee! Hack Facebook Password http://www.hacked-facebook.net are fast! Easy and straight up business to hack facebook password instantly. The information obtained may have helped change/save a life. Thank you so much Hack Facebook Password! I'll contact again for sure! Cheers! hacking facebook free

BTW, I found another website which is providing for free a free facebook hacking software and other one specialized in hack into someone's facebook password, hack facebook account id number.

Jordan N. Wilson, New York

US

Related articles:
crack facebook password facebook