[Cs-content-commits] SF.net SVN: cs-content:[404] trunk/1.0/db_types
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-07-06 19:50:01
|
Revision: 404 http://cs-content.svn.sourceforge.net/cs-content/?rev=404&view=rev Author: crazedsanity Date: 2009-07-06 19:49:55 +0000 (Mon, 06 Jul 2009) Log Message: ----------- Ability to ping connection to see if it's alive. /db_types/cs_phpDB__mysql.class.php: * ping() [NEW]: -- call (and return output of) mysql_ping() /db_types/cs_phpDB__pgsql.class.php: * ping [NEW]: -- call (and return output of) pg_ping() Modified Paths: -------------- trunk/1.0/db_types/cs_phpDB__mysql.class.php trunk/1.0/db_types/cs_phpDB__pgsql.class.php Modified: trunk/1.0/db_types/cs_phpDB__mysql.class.php =================================================================== --- trunk/1.0/db_types/cs_phpDB__mysql.class.php 2009-07-06 16:02:22 UTC (rev 403) +++ trunk/1.0/db_types/cs_phpDB__mysql.class.php 2009-07-06 19:49:55 UTC (rev 404) @@ -283,7 +283,15 @@ + //========================================================================= + public function ping() { + return(mysql_ping($this->connectionID)); + }//end ping() + //========================================================================= + + + //////////////////// // Cursor movement //////////////////// Modified: trunk/1.0/db_types/cs_phpDB__pgsql.class.php =================================================================== --- trunk/1.0/db_types/cs_phpDB__pgsql.class.php 2009-07-06 16:02:22 UTC (rev 403) +++ trunk/1.0/db_types/cs_phpDB__pgsql.class.php 2009-07-06 19:49:55 UTC (rev 404) @@ -305,7 +305,15 @@ + //========================================================================= + public function ping() { + return(pg_ping($this->connectionID)); + }//end ping() + //========================================================================= + + + //////////////////// // Cursor movement //////////////////// This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |