Steve Sonius

Symfony Web Developer :: DJ :: Photographer :: Sydney Australia

July 27, 2010
by sonius
0 comments

Specifying MySQL port on MediaWiki

>>>quoted from this site http://microrants.blogspot.com/2007/08/specifying-mysql-port-on-mediawiki.html MySQL listens on port 3306/tcp by default. MediaWiki’s 1.7.1 configuration is a bit misleading when it comes to specifying the database port. This excerpt is from LocalSettings.php: $wgdBserver = “localhost”; $wgDBname = “mw0″; $wgDBuser = … Continue reading

July 27, 2010
by sonius
0 comments

adding a batch file in symfony 1.3

create your file and add this to the top , require_once(dirname(__FILE__).’/../config/ProjectConfiguration.class.php’); $configuration = ProjectConfiguration::getApplicationConfiguration(‘frontend’, ‘dev’, true); sfContext::createInstance($configuration); // Remove the following lines if you don’t use the database layer $databaseManager = new sfDatabaseManager($configuration); $databaseManager->loadConfiguration(); // add code here