php debugging tools and code generator

Debugging is the process of finding the bugs so they can be fixed and the PHP Debugger is the best tool for helping you find the bugs fast and eliminate them from your PHP programs.

There are many techniques used for PHP debugging. Here is list of Debugging tools.

Webgrind tool

Webgrind is an Xdebug profiling Web front end in PHP 5. It implements a subset of the features of kcachegrind, installs in seconds and works on all platforms. For quick ‘n’ dirty optimizations, it does the job.

Xdebug tool

The Xdebug provides a ton of useful data, extension helps you debugging in your source code by providing a lot of valuable debug information.Xdebug plugs right into many of the most popular PHP applications, such as PHPEclipse and phpDesigner.

DBG debugger

DBG is a robust and popular PHP debugger for use in local and remote PHP debugging. It plugs into numerous PHP IDE’s and can easily be used with the command line.

Gubed PHP debugger

Gubed is a cross platform program to debug PHP scripts. It is rather a debugger to find logical errors.

PHP Debug

PHP_Debug is an open-source project that gives you useful information about your PHP code that can be used for debugging. It can output processing times of your PHP and SQL, check the performance of particular code blocks and get variable dumps in graphical form, which is great if you need a more visual output than the one given to you by print_r() or var_dump().

PHP Dyn

PHP_Dyn is PHP Extension to help debugging a PHP script.You can get execution trace of scripts not to need change them.

PHP code Generator

PHP Maker7

PHPMaker is a powerful automation tool that can generate a full set of PHP quickly from MySQLPostgreSQLMicrosoft Access and Microsoft SQL Server databases. Using PHPMaker, you can instantly create web sites that allow users to view, edit, search, add and delete records on the web.

ScriptArtist

ScriptArtist is a powerful PHP and AJAX code generator that allows you easily to generate the PHP scripts connected through MySql database. ScriptArtist helps you save a lot of developing times to create the completed CRUD operations (Create, Read, Update, & Delete), easily generates web forms (email or contact form) retrieved information from either database fields or user-defined fields and many more.

PHP Object Generator

PHP Object Generator, (POG) is an open source. which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application.

Script Case

Scriptcase PHP Generator is a powerful tool to increase web development productivity. Scriptcase PHP Generator runs directly in the browser enabling web application collaborative development.

Logic To create “Diamond Shape”

I am learning to program and  i was struggling with “logic to create Diamond shape in PHP“. I searched but could not find it, so once i figured it out, i thought i will just write it here.

Diamoand

 
for($i = 0; $i <= 14; $i++ )
{
	 for($j = 1; $j<=1+$i ; $j++ )
	 {
		echo  "*" ;
	 }
	echo "";
}
for($y = 1; $y <= 15; $y++ )
{
	 for($x = 1; $x<=15-$y; $x++ )
	 {
		echo  "*" ;
	 }
	echo "";
}
Result is ....
Blank Diamond
for($i = 0; $i <= 14; $i++ )
{
	 for($j=1; $j<=1+$i;$j++)
	 {
		 if ($j==1)
		 {
			echo"*";
		 }
		 else
		 {
			echo "-";
		 }
		 if ($j==$i+1)
		 {
			echo"*";
		 }
		 else
		 {
			echo"  ";
		 }
	 }
	 echo "	";
}
for($i = 0; $i <= 14; $i++ )
{
	 for($j=1; $j<=14-$i;$j++)
	 {
		 if ($j==1)
		 {
			echo"*";
		 }
		 else
		 {
			echo "-";
		 }
		 if ($j==14-$i)
		 {
			echo"*";
		 }
		 else
		 {
			echo"  ";
		 }
	 }
	 echo "	";
}
Resule as...
Midline in Diamond shape
$n=14;
 for($i = 0; $i <= 13; $i++ )
 {
	 for($j=1; $j<=1+$i;$j++)
	 {
		 if ($j==1)
		 {
			echo"*";
		 }
		 else
		 {
			echo "  ";
		 }
		 if ($j==$i+1)
		 {
			echo"*";
		 }
		 else
		 {
			echo"  ";
		 }
	 }
	 echo "	";
	 if ($i+1==$n)
	 {
		 for($k = 0; $k <= $n*2; $k++ )
		 {
			echo"*";
		 }
	 }
 }
 echo "";
 for($i = 0; $i <= $n; $i++ )
 {
	 for($j=1; $j<=$n-$i;$j++)
	 {
		 if ($j==1)
		 {
			echo"*";
		 }
		 else
		 {
			echo "  ";
		 }
		 if ($j==$n-$i)
		 {
			echo"*";
		 }
		 else
		 {
			echo "  ";
		 }
	 }
	 echo "	";
 }
result as
Plus in Diamond
$n=14;$m=7;$l=2;
for($i = 0; $i <= 13; $i++ )
{
	 for($j=1; $j<=1+$i;$j++)
	 {
		 if ($j==1)
			echo"*";
		 else
			echo"&nbsp;&nbsp;";
		 if ( $i % 2==$j)
		 {
			 for ($j=5;$j<=$i+1;$j++)
			 {
				 if ( $i % 2==$j)
					echo "*";
			 }
		 }
		 if ($j==$i+1)
			echo"*";
		 else
			echo"&nbsp;&nbsp;";
	 }
	 echo "<br >";
	 if ($i+1==$n)
	 {
		 for($k = 0; $k <= $n*2; $k++ )
		 {
			echo"*";
		 }
	 }
}
echo "<br >";
for($i = 0; $i <= $n; $i++ )
{
	for($j=1; $j<=$n-$i;$j++)
	{
		if ($j==1)
			echo"*";
		else
			echo"&nbsp;&nbsp;";
		if ( $i % 2==$j)
		{
			for ($j=14;$j<=$i+1;$j++)
			{
				if ( $i % 2==$j)
					echo "*";
			}
		}
		if ($j==$n-$i)
			echo"*";
		else
			echo"&nbsp;&nbsp;";
	}
	echo "<br >";
}

Result as

i am still learning if their is any mistake do let me know.

Big List Of CMS Based on PHP

A Content Management System ( CMS ) is used to add, edit, and delete content on a website. For a small website, such as this, adding and deleting a page manually is fairly simple. But for a large website with lots of pages like a news website adding a page manually without a content management system can be a headache. A CMS is meant to ease the process of adding and modifying new content to a webpage. The pages content are stored in database, not in the file server. HTML and other scripting language are not necessary to operate a CMS, though having them will add more advantages. Since we had looked here  list of Open Source PHP Content Management Systems so that readers who don’t have strong PHP knowledge can easily create their website using free and open source CMS.

WordPress

WordPress does a pretty good job as a CMS, making it easy to maintain your site, and update your content. Initially it was designed as a blogging platform. However, it slowly become popular and can be customized into a powerful CMS with some tricks and plugins.

Drupal

Drupal is a free and open source modular framework and Content Management System (CMS) written in PHP. It is used as a back-end system for many different types of websites, ranging from small personal blogs to large corporate and political sites.

Joomla

Joomla is an award-winning content management system (CMS), which enables you to build Web sites and powerful online applications. Many aspects, including its ease-of-use and extensibility, have made Joomla the most popular Web site software available. Best of all, Joomla is an open source solution that is freely available to everyone.

Frog CMS

Frog CMS simplifies content management by offering an elegant user interface, flexible templating per page, simple user management and permissions, as well as the tools necessary for file management. 5. SliverStripe SilverStripe is a PHP CMS built with Sapphire framework, and it uses MVC design pattern. you can view example sites that built with SilverStripe from the official webpage. Mambo

Mambo is a full-featured, award-winning content management system that can be used for everything from simple websites to complex corporate applications. Mambo’s “power in simplicity” also makes it the CMS of choice for many small businesses and personal sites. Although some Mambo sites had already migrated to Joomla, but i think i should include Mambo as it is still a great CMS.

TYPOlight

TYPOlight now called Contao. TYPOlight is a PHP 5 CMS and it has a lot of features such as live update, cross-browser CSS framework generator(IE7 compatible), templated based front end output, use Ajax and Web 2.0 technologies.

Concrete5

Concrete5 is an open source content management system with simple administaror interface. It enables users to edit site content directly from the page. This makes the platform easy to use with a minimum of technical skills. Textpattern

Textpattern is an open source content management system.its aim is to be a general-purpose content management system suitable for deployment in many contexts. Textpattern is written in PHP using a MySQL database backend .

Symphony

Symphony is a CMS that uses XML/XSLT as its templating language. Symphony lets you customize anything you like, from the website’s URL structure to your publishing environment. For a non programmer, this CMS might be complicated to learn.

MODx

MODx is both a PHP application framework and content managenemt system. MODx is the first free PHP CMS to offer an API that fully supports Web 2.0 Ajax technology. It is SEO friendly CMS, and allows you to configure the meta content for each page.

CMS Made Simple

CMS Made Simple helps experienced web developers and designers to create sites of power and beauty in a fraction of the normal time, avoiding hours of coding and allowing your clients to update their own sites with a minimum of fuss. CMS Made Simple puts the power of a modular and extendable content management system at your fingertips. And best of all, it’s free!

JOJO CMS

Jojo Open Source CMS offers a fair bit of functionality out of the box, that other paid or free CMS systems don’t have, or require hacking to have. JOJO CMS have some feature, like Multi-site install, Image Handlling, SEO friendly CMS and Plugins.

Chyrp

Chyrp is a blogging engine designed to be very lightweight while retaining functionality. it uses Twig as the templating engine. It is powered by PHP and has very powerful theme and extension.

Elxis CMS

Elxis is powerful open source content management system. It has unique multi-lingual features, it follows W3C standards, it is secure, flexible, easy to use, and modern. The development team, Elxis Team, paid extra attention to the optimization of the CMS for the search engines and this lead to high performance of all elxis powered web sites and to high ranking in search engines results.

Habari Project

Habari is a highly recommended open source blogging platform. It is being written specifically for modern web hosting environment, and uses modern object oriented programming techniques.

Impress CMS

ImpressCMS is a community developed Content Management System. It is highly scalable and is extremely useful for managing online communities.

Exponent CMS

Exponent uses an intuitive and flexible content editing system that allows website pages to be edited on the page as it is displayed. You can download modules and themes from the official website too!

Mia CMS

Mia CMS is a fork of the Mambo CMS. It has a powerful and extensible third party entension system, and also a flexible site theming capabilities. MiaCMS supports OpenID and can consider to be a stable and mature CMS.

Nano CMS

NanoCMS is a php open source, gpl licensed flat file content management system. It does not use a MySQL database and is ideal for small websites. It is a very small package (hence the nano part).


Check out PHPCamp a place to share news, views and articles that are useful to PHP community.
Share