Google

Sunday, January 11, 2009

PHP MVC Framework list

10- Ambivalence: A Java-Maverick Port
9- WACT: Web Application Component Toolkit
8- Achievo: A good RAD framework
7- Phrame: A Java-Struts port
6- Studs: A Java-Struts port to PHP
5- Prado: The winner of Zend coding contest
4- PHPOnTrax: a Rails port - PHP5 Only
3- CakePHP: Inspired by Rails PHP4/5
2- Mojavi: The first MVC framework I fell in love with

and the winner is:

1- Symfony: Based on Mojavi and inspired by Rails

This list is based on my personal tests and use. I have tested and played with many others, but I think these are the best frameworks out there.
- The first framework I fell in love with was Mojavi because of its elegant way to implement the MVC model.
- Symfony corrected some problems in Mojavi and improved it by taking the good sides of RubyOnRails and Propel.
- CakePHP is very promising, the only problem - really, I don't know if it is a problem - is: the development process is very slow.

Saturday, September 27, 2008

Only selected are print through javascript

Hi friends

If you want to take only selected area print out not whole web page then use the following guidelines and enjoy :-


Take a print are in a single div and any event like onclick , onblur what ever you eant call the below javascript function -


/* function fnPrintArea()
{
var DocumentContainer = document.getElementById('print_table_div_id');
var WindowObject = window.open('', "printarea",
"width=850,height=850,top=200,left=250,toolbars=no,scrollbars=yes,status=no,resizable=no");
WindowObject.document.writeln(DocumentContainer.innerHTML);
WindowObject.document.close();
WindowObject.focus();
WindowObject.print();
WindowObject.close();
}

*/

Multiple date selection javascript calendar

Hi all There is a link please vistite for multiple date selection calendar in javascript


http://www.dynarch.com/projects/calendar/

If you face some issue(not sure may be , because i am facing when i have implement this) on there like


calender not show in IE7 properly ?

or

you want to disabler older date or range of dates ?


Or

Single click problem ?


then use the same site forum for all your question passionaly and still you are face problem then fill free comment here i will answer all your question as soon as possible.

how Same session Id in http:// and https://

If you have the condition like that you want same session id in the http and HTTPS prtocal the simple one line solution:-


Just make it one .htaccess file and upload in your server top root directory


and write the .htaccess like this -

"

php_value session.cookie_domain ".domain_name.com"


"


so now save the .htaccess file and upload on the server and check the cookie of your web browser , when you redirect from http to https or vicecersa your session id remain same.

Or any question regarding this feel free comment here.....

Tuesday, September 9, 2008

phpcamppune08 - PHP camp at pune 2008

phpcamp pune 2008: A gathering of php enthusiast

PHPCamp is a ‘ad-hoc gathering’ for PHP community. It similar to barcamp , but more focused towards PHP based web application development. This means that anyone can come to PHPCamp and participate.



Event Details

Date: 20th September 2008 (saturday) .

Time: 10:00am to 6:00pm (Whole day event) .

To register for PHPCamp register yourself at PHPCamp.org

To know more join phpcamp on google groups.

Saturday, August 30, 2008

PHP with smarty template engine installation

PHP with smarty installation is so easy....

just download the stable version of smarty package and unzip the folder and rename folder name "smarty"

and now you create four directory in your application folder

1) config
2) templates_c
3) templates
4) cache

and just create one php file and here just specify the pathe of smaty.connect.php file and all four directory path

like the pls see example below

// put full path to Smarty.class.php
require('/usr/local/lib/php/Smarty/Smarty.class.php');
$smarty = new Smarty();

$smarty->template_dir = '/web/www.domain.com/smarty/templates';
$smarty->compile_dir = '/web/www.domain.com/smarty/templates_c';
$smarty->cache_dir = '/web/www.domain.com/smarty/cache';
$smarty->config_dir = '/web/www.domain.com/smarty/configs';

$smarty->assign('name', 'MANISH');
$smarty->display('index.tpl');

now include above php file anywhere and use the smartyy template magic.

any question then pls cooment here....i will give u the answer...thanks

Connect Mysql database in php

PHP main target is to make possible build dynamic web sites.
This possibility is available by using some database system to store information and manipulate them, when system and user needs it.
On PHP a large number of database systems come by default embbed as libraries.
On this article we will learn how to use one of the most used on data handling - MySQL.
MySQL can be installed easly, by downloading EasyPHP.
This application installs Mysql on a web based version, it means that you can manage all database processes on your browser.
It allows to create databases, and tables, edit fields , backup tables system database and a large option of new features.
To access the interface that allows you to create database click with the right button of mouse on tray icon "Administration".
Right next click

MySQL MANAGER

it will open the window where you must the name of your database and next it will ask for your table name.

Check how many fields you need on your table and build it.

Now the database and table are created let´s configure the conection to the mysql server using PHP.
Remember that server is configured with an default username and password.
You can make secure by changing it at your choice.

Follows the PHP code generated to build the table

CREATE TABLE `admin` (
`id` int(11) NOT NULL auto_increment,
`username` varchar(40) NOT NULL,
`password` varchar(16) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM

and now time to connect with php this table.....

$con = mysql_connect("localhost","database usernam","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}