Monday, February 23, 2009

joomla and drupal

 Joomla [-]Drupal [-]
Community Features
Community Builder. A solid component, but one that really needs an SEF extension to enable Youtube-style URLs.

Very impressive. Users can form groups and expansion of the registraion form is native to Drupal.
Shopping Cart
Joomla has Virtuemart and an integration of OSCommerce, both of which beat Drupal's ecommerce addon. Use OSCommerce if you need multicurrency options or if you have a payment gateway not supported by VM

Not recommended as it lacks tax and currency options. However, watch out for Ubercart which looks promising.
SEO
Poor out of the box. OpenSEF is OK and improving fast. SEF Advance is roughly comparable quality but costs 50 Euros. Code is not very well adapted for SEO.

The out-of-the-box URLs work well and can be improved with one easy addon. The code is generally lightweight and well-optimised.
Forums
Use Joomla with Simple Machines Forum, which is the path taken by Joomla.org. Joomlaboard integrates natively to Joomla but lacks many key features.

A native and very smooth forum, but lacking in the high end features of the best modern forums. VbDrupal is the best way to avoid this (a Drupal Vbulletin hack)
Multimedia
Yes, plenty of podcast and video options.

Yes - Drupal Video and podcast options also available.
Photo Galleries
Yes. The best are integrations with Gallery2 and the Flash gallery Expose.

Has a default module and a Gallery2 integration.
Event Calendars
Several native plug-ins and integrations.

Not great. There are options but they are far behind those available for Joomla.
Template / Themes
Joomla has a wide selection of free and commercial offerings. Once installed they can be assigned to different pages.

Only one commercial developer. Off-the-shelf choices are very poor. Currently, Drupal assumes one template for all pages, although this can be adapted with effort and will 5.0 will allow templates to be assigned according to URL. Developing your own is the best bet.
Blogs
Some out-of-the-box capability. A good overview is here. Joomla.org uses a port of Wordpress.

Good capabilities, although not a natural blog in the manner of Wordpress.
Document Management
Yes - DocMan.

Not anything worth considering.
User Permissions
Some very major forks can work with Joomla, but this is a very poor area. Joomla is very admin-orientated. A small group of people are going to control and run the site. A lot of members can contribute by adding content, forum posts etc. but it is difficult to increase their permissions further.

Drupal wins hands-down. However, you still can't manage single members. You need to add them to a certain group.
External Integration
Joomla 1.5 will help greatly with a much improved API and more hooks.

Currently Drupal wins easily with plenty of hooks
Content Management
In the core only Section >> Category >> Content is available. That's it. No cross-categorization.

Unlimited categories and subcategories. Also allows for cross-categorization of articles.
Multisites Management
Commercial component.

Out-of-the-box.
Documentation
Poor, although work on this is progressing. There is however a wealth of useful information on the Joomla forums. Joomla 1.5 promises to be much more thoroughly documented.(Click here for 1.5 documentation.

Not too bad. (Click here for documentation and here for an API reference guide
SSL Compatible
With hacks.

Yes
Standards Compliance
Not great. Accessible Joomla is a fork necessary to move Joomla towards compliance. Mambo/Joomla dates from before standards were even considered (1999).

Yes. Excellent out-of-the-box.
Internationalization
With Joomfish. Not an easy or straight-forward solution

Yes, Excellent. (via i18n module)
Commercial Community
Very strong. Perhaps the best in the Open Source CMS world. Try Try Joomla Yellow Pages or Joomla.org.

Weak. Difficult to find strong Drupal developers in any quantity. Try Drupal.org, Drupal Yellow Pages or Drupalancers.
General Community
Great. 100s of extra components available, both commercial and open source. Many companies now offering services.

Good community. Often more non-profit than business driven. Excellent forum support at Drupal.org.
Ease-of-use
Joomla has a great graphical interface in separate area of website.

Administrator tasks on the current Drupal version are done via a menu on the frontpage which confuses many. Drupal 5.0 will solve this and also provide an online installer. Still, installing many modules needs technical knowledge.
Learning Curve
Shallow. One of the very easiest CMS systems to learn and customize.

A little steeper than Joomla, but still relatively easy to learn.
Speed
A default installation of 1.0.11 loads in 0.90 seconds.


A default installation of 1.5 loads in 1.33 seconds. (Scores from http://sitescore.silktide.com)

A default installation loads in 1.05 seconds.

(Score from http://sitescore.silktide.com)
Size1.0.11 is 16.4 MB

1.5 is 16.7 MB

Version 5.0 is 2.89 MB
Current SituationUnclear. When will Joomla 1.5 be out? Which version should people currently buiding sites use? One developer recently warned about relying on any firm deadlines or easy upgrades to the new version.Clear development path. Currently working on Drupal 5. Beta 2 came out at the end of November and a Release Candidate is probably next.
OverallJoomla 1.5 will be the crucial leap for the platform paving the way for the resolution of many old limitations. Producing a good-looking site with plenty of functionality is a relatively easy task with Joomla.Drupal is more community-oriented and the current live version is more extensible. That advantage will be greatly shortened once Joomla 1.5 is stable.

Tuesday, February 17, 2009

Dont miss to read!!!

TWELVE:
You talk with him/her late at night and when you go to bed you still think of him/her.

ELEVEN:
You walk really slowly when you are with him/her.

TEN:
You don't feel Ok when he/she is far away.

NINE:
You smile when you hear his/her voice.

EIGHT:
When you look at him/her,you do not see other people around you. You see only him/her.

SIX:
He/She is everything you want to think.

FIVE:
You realise that you smile every time you look at him/her.

FOUR:
You would do anything to see him/her.

THREE:
While you have been reading this, there was a person in your mind all the time.

TWO:
You've been so busy thinking of that person that you didn't notice that number SEVEN is missing.

ONE:
You are going to check above if that's true and now you are silently laughing to yourself...


Sunday, February 17, 2008

php tutorials

mysql_fetch_row ::Return row as aan enumrated array and each line contain a unique ID .example.
$result=mysql_query($query);
while($row=mysql_fetch_row($result))
{
print "$row[0]";
print "$row[1]";
print "$row[2]";
}

mysql_fetch_array ::Return row as anassociative or an enumrated array or both which is default .you can refer to outputs as databases fieldname rather then number .example.
$result=mysql_query($query);
while($row=mysql_fetch_array($result))
{
print "$row['name']";
print "$row['address']";
print "$row['city']";
}

mysql_fetch_object :: it return as an object on the place of array.

$result=mysql_query($query);
while($row=mysql_fetch_object($result))
{
print "$row->name";
print "$row->address";
print "$row->city";
}


ceil() func. gives nearest max values of passing value.

floor() func. gives nearest min values of passing value.

$var=7.5;
$c_var=ceil($var);

echo $c_var; // Outputs 8


$var=7.5
$c_var=floor($var);

echo $c_var; // Outputs 7


Examples of IMAP Functions:

1. imap_list : Read the list of mailboxes
2. imap_open : Opens an IMAP stream to mailbox

Examples of LDAP Functions:

1. ldap_connect : This will connect to the ldap server with
the given login credentials.
2. ldap_search : By using this command we can search in ldap
records.

how to retrieve from database..... this format (PRMRMDU402).
firstname= prabhu, lastname=kumar, city=madurai,
pincode=624402....

i want first name first two letters and last name last two
letters ... city first two letters ... pin code last three
letters....

$record = mysql_fetch_array(".........");
$fn = substr($record['firstname'], 0, 2);
$ln = substr($record['lastname'], -2);
$ct = substr($record['city'], 0, 2);
$pc = substr($record['pincode'], -2);

$final = strtoupper($fn.$ln.$ct.$pc);

echo $final;

What are the advantages and disadvantages of Cascading  Style Sheets?
Advantages and Disadvantages  Greater Control. Style sheets allow far greater control  over the appearance of a document. Many different elements  can be defined and customised, including margins, indents,  font size, line and letter spacing. In addition, elements  can be positioned absolutely on the page.  Separation of Style and Content. By ensuring that the style  and content of a document are kept separate, data is kept  more coherent. In this way, as technologies such as XML and  databases increase, there will be more scope for  integration of existing HTML documents.  Accessibility. Similarly, with the separation of style and  content, documents are made more accessible to those with  disabilities. When style sheets are used, software such as  screen-readers are less likely to be confused by spurious  code. For further information on accessibility issues,  please refer to the W3C's page on the Accessibility  Features of CSS.  Smaller Documents. Because all tags or properties need only  be defined once within a document, or even within a  separate document, filesize can be reduced considerably.  Easier Site Maintenance. As it is possible to link many  pages to one individual style sheet, any sitewide changes  can be made by simply changing the one file that the pages  link to, instead of all the individual files.  Browser Support. This is the one major drawback to style  sheets. They are only supported at all by IE 3 and above  and Netscape 4 and above, but even then, the way in which  the two browsers interpret them can vary considerably.  However, older browsers will still display your website,  simply ignoring the elements they do not understand.
Is there any function to find repeated value in an array?
#Following Code -  $array = array(1, "hello", 1, "world", "hello"); print_r(array_count_values($array));  ## #Outputs -  Array (     [1] => 2     [hello] => 2     [world] => 1 ) 
mysql_connect and mysql_pconnect()
mysql_connect which establishes a new connection "each time" and mysql_pconnect which uses persistant connections.

http://www.alledia.com/blog/general-cms-issues/joomla-and-drupal-%11-which-one-is-right-for-you?/