Ofer Cohen
Toggle Navigation
  • עברית
  • English (UK)

Debug class inheritance

  • Print
  • Email
Details
Published: 07 September 2010
Hits: 6379

Function I wrote that can debug inheritance of object in PHP:

function debug_class_inherit($obj) {
$parent_class_name =  get_parent_class($obj);
if ($parent_class_name) {
debug_class_inherit($parent_class_name);
}
echo get_class($obj);
}

get_parent_class function return FALSE when no parent to the object.

Comment (0) Hits: 6379

How to make Joomla upload multiple files

  • Print
  • Email
Details
Published: 28 January 2010
Hits: 10579

This month Mozilla release new version of firefox - 3.6 - the best browser (for my opinion). I read that in this version it supported multiple files upload. So I add a patch for Joomla (1.5) to support it. This patch make the upload native php-html and non-flash involved in this patch. Also, this patch done with backward compatibility to older browser (even IE6).

Read More Comment (0) Hits: 10579

How to make Joomla website multisite

  • Print
  • Email
Details
Published: 09 December 2009
Hits: 7129

This post is transalation of the Hebrew guide in my blog. I'm doing it after requsests from the Joomla Conference 2009 at New York.

This guide use single installation of Joomla that produce multiple sites with one configuration file for each site with its own database prefixes. Although there are various extensions for that purpose, but I recommend to do it by this hack, because it can control the way that different sites will be run better and adjust performance by dividing the load in case of multiple servers.
Note that this installation distinguishes between a database of sites by the prefix of data in database tables. You can divide each site to different MySQL instances.

Read More Comment (0) Hits: 7129
  • You are here:  
  • בית
  • Home
  • About

Back to Top

© 2025 Ofer Cohen