﻿<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress Türkiye Forumları Konu: CGI Hatası</title>
<link>http://www.wordpress-tr.com/forum/</link>
<description>WordPress Türkiye Forumları Konu: CGI Hatası</description>
<language>en</language>
<pubDate>Sat, 22 Nov 2008 23:37:05 +0000</pubDate>

<item>
<title>bps1960 konu: "CGI Hatası"</title>
<link>http://www.wordpress-tr.com/forum/topic/3197#post-38471</link>
<pubDate>Paz, 09 Nov 2008 00:51:46 +0000</pubDate>
<dc:creator>bps1960</dc:creator>
<guid isPermaLink="false">38471@http://www.wordpress-tr.com/forum/</guid>
<description>&#60;p&#62;Önerdiğiniz yolu denedim.. Yinede böyle hata alıyorum?&#60;/p&#62;
&#60;p&#62;CGI Error&#60;br /&#62;
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
&#60;/p&#62;</description>
</item>
<item>
<title>immoguitti konu: "CGI Hatası"</title>
<link>http://www.wordpress-tr.com/forum/topic/3197#post-21628</link>
<pubDate>Per, 10 Jan 2008 12:37:35 +0000</pubDate>
<dc:creator>immoguitti</dc:creator>
<guid isPermaLink="false">21628@http://www.wordpress-tr.com/forum/</guid>
<description>&#60;p&#62;asagidaki kodlari wp-includes/wp-db.php'ye koyarsan düzeliyor&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#38;lt;?php&#60;br /&#62;
//  WordPress DB Class&#60;/p&#62;
&#60;p&#62;//  ORIGINAL CODE FROM:&#60;br /&#62;
//  Justin Vincent (justin@visunet.ie)&#60;br /&#62;
//	&#60;a href=&#34;http://php.justinvincent.com&#34; rel=&#34;nofollow&#34;&#62;http://php.justinvincent.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;define('EZSQL_VERSION', 'WP1.25');&#60;br /&#62;
define('OBJECT', 'OBJECT', true);&#60;br /&#62;
define('ARRAY_A', 'ARRAY_A', false);&#60;br /&#62;
define('ARRAY_N', 'ARRAY_N', false);&#60;/p&#62;
&#60;p&#62;if (!defined('SAVEQUERIES'))&#60;br /&#62;
	define('SAVEQUERIES', false);&#60;/p&#62;
&#60;p&#62;class wpdb {&#60;/p&#62;
&#60;p&#62;	var $show_errors = true;&#60;br /&#62;
	var $num_queries = 0;&#60;br /&#62;
	var $last_query;&#60;br /&#62;
	var $col_info;&#60;br /&#62;
	var $queries;&#60;/p&#62;
&#60;p&#62;	// Our tables&#60;br /&#62;
	var $posts;&#60;br /&#62;
	var $users;&#60;br /&#62;
	var $categories;&#60;br /&#62;
	var $post2cat;&#60;br /&#62;
	var $comments;&#60;br /&#62;
	var $links;&#60;br /&#62;
	var $options;&#60;br /&#62;
	var $optiontypes;&#60;br /&#62;
	var $optionvalues;&#60;br /&#62;
	var $optiongroups;&#60;br /&#62;
	var $optiongroup_options;&#60;br /&#62;
	var $postmeta;&#60;br /&#62;
	var $usermeta;&#60;br /&#62;
	var $terms;&#60;br /&#62;
	var $term_taxonomy;&#60;br /&#62;
	var $term_relationships;&#60;/p&#62;
&#60;p&#62;	var $charset;&#60;br /&#62;
	var $collate;&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Connects to the database server and selects a database&#60;br /&#62;
	 * @param string $dbuser&#60;br /&#62;
	 * @param string $dbpassword&#60;br /&#62;
	 * @param string $dbname&#60;br /&#62;
	 * @param string $dbhost&#60;br /&#62;
	 */&#60;br /&#62;
	function wpdb($dbuser, $dbpassword, $dbname, $dbhost) {&#60;br /&#62;
		return $this-&#38;gt;__construct($dbuser, $dbpassword, $dbname, $dbhost);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	function __construct($dbuser, $dbpassword, $dbname, $dbhost) {&#60;br /&#62;
		register_shutdown_function(array(&#38;#38;$this, &#34;__destruct&#34;));&#60;/p&#62;
&#60;p&#62;		if ( defined('DB_CHARSET') )&#60;br /&#62;
			$this-&#38;gt;charset = DB_CHARSET;&#60;/p&#62;
&#60;p&#62;		if ( defined('DB_COLLATE') )&#60;br /&#62;
			$this-&#38;gt;collate = DB_COLLATE;&#60;/p&#62;
&#60;p&#62;        $this-&#38;gt;dbuser = $dbuser;&#60;br /&#62;
        $this-&#38;gt;dbpassword = $dbpassword;&#60;br /&#62;
        $this-&#38;gt;dbname = $dbname;&#60;br /&#62;
        $this-&#38;gt;dbhost = $dbhost;&#60;/p&#62;
&#60;p&#62;        $this-&#38;gt;connecttodb();&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	function connecttodb()&#60;br /&#62;
	{&#60;/p&#62;
&#60;p&#62;		$this-&#38;gt;dbh = @mysql_connect($this-&#38;gt;dbhost, $this-&#38;gt;dbuser, $this-&#38;gt;dbpassword, true);&#60;br /&#62;
		if (!$this-&#38;gt;dbh) {&#60;br /&#62;
			$this-&#38;gt;bail(&#34;&#60;br /&#62;
&#38;lt;h1&#38;gt;Error establishing a database connection&#38;lt;/h1&#38;gt;&#60;br /&#62;
This either means that the username and password information in your &#60;code&#62;wp-config.php&#60;/code&#62; file is incorrect or we can't contact the database server at &#60;code&#62;$dbhost&#60;/code&#62;. This could mean your host's database server is down.&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;Are you sure you have the correct username and password?&#60;/li&#62;
&#60;li&#62;Are you sure that you have typed the correct hostname?&#60;/li&#62;
&#60;li&#62;Are you sure that the database server is running?&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the &#60;a href='http://wordpress.org/support/'&#62;WordPress Support Forums&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;&#34;);&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		if ( !empty($this-&#38;gt;charset) &#38;#38;&#38;#38; version_compare(mysql_get_server_info(), '4.1.0', '&#38;gt;=') )&#60;br /&#62;
 			$this-&#38;gt;query(&#34;SET NAMES '$this-&#38;gt;charset'&#34;);&#60;/p&#62;
&#60;p&#62;		$this-&#38;gt;select($this-&#38;gt;dbname);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	function checkconnection()&#60;br /&#62;
	{&#60;br /&#62;
        $maxcount = 5;&#60;br /&#62;
        $cnt = 1;&#60;/p&#62;
&#60;p&#62;        $ping = mysql_ping( $this-&#38;gt;dbh ) ;&#60;/p&#62;
&#60;p&#62;        while( !$ping &#38;#38;&#38;#38; $cnt &#38;lt; $maxcount)&#60;br /&#62;
        {&#60;br /&#62;
            @mysql_close($this-&#38;gt;dbh);&#60;br /&#62;
            $this-&#38;gt;connecttodb();&#60;/p&#62;
&#60;p&#62;            $ping = mysql_ping( $this-&#38;gt;dbh ) ;&#60;/p&#62;
&#60;p&#62;            if(!$ping )&#60;br /&#62;
            {&#60;br /&#62;
                sleep(2);&#60;br /&#62;
            }&#60;br /&#62;
            $cnt+=1;&#60;br /&#62;
        }&#60;/p&#62;
&#60;p&#62;        if(!$ping ) { die(&#34;Attempted to connect for &#34; . $maxcount . &#34; but failed...&#34;) ; }&#60;/p&#62;
&#60;p&#62;	}&#60;/p&#62;
&#60;p&#62;	function __destruct() {&#60;br /&#62;
		return true;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Selects a database using the current class's $this-&#38;gt;dbh&#60;br /&#62;
	 * @param string $db name&#60;br /&#62;
	 */&#60;br /&#62;
	function select($db) {&#60;br /&#62;
		if (!@mysql_select_db($db, $this-&#38;gt;dbh)) {&#60;br /&#62;
			$this-&#38;gt;bail(&#34;&#60;br /&#62;
&#38;lt;h1&#38;gt;Can’t select database&#38;lt;/h1&#38;gt;&#60;br /&#62;
We were able to connect to the database server (which means your username and password is okay) but not able to select the &#60;code&#62;$db&#60;/code&#62; database.&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;Are you sure it exists?&#60;/li&#62;
&#60;li&#62;On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;If you don't know how to setup a database you should &#60;strong&#62;contact your host&#60;/strong&#62;. If all else fails you may find help at the &#60;a href='http://wordpress.org/support/'&#62;WordPress Support Forums&#60;/a&#62;.&#60;br /&#62;
&#34;);&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Escapes content for insertion into the database, for security&#60;br /&#62;
	 *&#60;br /&#62;
	 * @param string $string&#60;br /&#62;
	 * @return string query safe string&#60;br /&#62;
	 */&#60;br /&#62;
	function escape($string) {&#60;br /&#62;
		return addslashes( $string ); // Disable rest for now, causing problems&#60;br /&#62;
		if( !$this-&#38;gt;dbh &#124;&#124; version_compare( phpversion(), '4.3.0' ) == '-1' )&#60;br /&#62;
			return mysql_escape_string( $string );&#60;br /&#62;
		else&#60;br /&#62;
			return mysql_real_escape_string( $string, $this-&#38;gt;dbh );&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Escapes content by reference for insertion into the database, for security&#60;br /&#62;
	 * @param string $s&#60;br /&#62;
	 */&#60;br /&#62;
	function escape_by_ref(&#38;#38;$s) {&#60;br /&#62;
		$s = $this-&#38;gt;escape($s);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Prepares a SQL query for safe use, using sprintf() syntax&#60;br /&#62;
	 */&#60;br /&#62;
	function prepare($args=NULL) {&#60;br /&#62;
		if ( NULL === $args )&#60;br /&#62;
			return;&#60;br /&#62;
		$args = func_get_args();&#60;br /&#62;
		$query = array_shift($args);&#60;br /&#62;
		$query = str_replace(&#34;'%s'&#34;, '%s', $query); // in case someone mistakenly already singlequoted it&#60;br /&#62;
		$query = str_replace('&#34;%s&#34;', '%s', $query); // doublequote unquoting&#60;br /&#62;
		$query = str_replace('%s', &#34;'%s'&#34;, $query); // quote the strings&#60;br /&#62;
		array_walk($args, array(&#38;#38;$this, 'escape_by_ref'));&#60;br /&#62;
		return @vsprintf($query, $args);&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	// ==================================================================&#60;br /&#62;
	//	Print SQL/DB error.&#60;/p&#62;
&#60;p&#62;	function print_error($str = '') {&#60;br /&#62;
		global $EZSQL_ERROR;&#60;br /&#62;
		if (!$str) $str = mysql_error($this-&#38;gt;dbh);&#60;br /&#62;
		$EZSQL_ERROR[] =&#60;br /&#62;
		array ('query' =&#38;gt; $this-&#38;gt;last_query, 'error_str' =&#38;gt; $str);&#60;/p&#62;
&#60;p&#62;		$str = htmlspecialchars($str, ENT_QUOTES);&#60;br /&#62;
		$query = htmlspecialchars($this-&#38;gt;last_query, ENT_QUOTES);&#60;br /&#62;
		// Is error output turned on or not..&#60;br /&#62;
		if ( $this-&#38;gt;show_errors ) {&#60;br /&#62;
			// If there is an error then take note of it&#60;br /&#62;
			print &#34;&#60;div&#62;&#60;br /&#62;
			&#38;lt;p class='wpdberror'&#38;gt;&#60;strong&#62;WordPress database error:&#60;/strong&#62; [$str]&#60;br /&#62;
			&#60;code&#62;$query&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;			&#60;/div&#62;&#34;;&#60;br /&#62;
		} else {&#60;br /&#62;
			return false;&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	// ==================================================================&#60;br /&#62;
	//	Turn error handling on or off..&#60;/p&#62;
&#60;p&#62;	function show_errors() {&#60;br /&#62;
		$this-&#38;gt;show_errors = true;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	function hide_errors() {&#60;br /&#62;
		$this-&#38;gt;show_errors = false;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	// ==================================================================&#60;br /&#62;
	//	Kill cached query results&#60;/p&#62;
&#60;p&#62;	function flush() {&#60;br /&#62;
		$this-&#38;gt;last_result = array();&#60;br /&#62;
		$this-&#38;gt;col_info = null;&#60;br /&#62;
		$this-&#38;gt;last_query = null;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	// ==================================================================&#60;br /&#62;
	//	Basic Query	- see docs for more detail&#60;/p&#62;
&#60;p&#62;	function query($query) {&#60;br /&#62;
		// filter the query, if filters are available&#60;br /&#62;
		// NOTE: some queries are made before the plugins have been loaded, and thus cannot be filtered with this method&#60;/p&#62;
&#60;p&#62;		$this-&#38;gt;checkconnection();&#60;/p&#62;
&#60;p&#62;		if ( function_exists('apply_filters') )&#60;br /&#62;
			$query = apply_filters('query', $query);&#60;/p&#62;
&#60;p&#62;		// initialise return&#60;br /&#62;
		$return_val = 0;&#60;br /&#62;
		$this-&#38;gt;flush();&#60;/p&#62;
&#60;p&#62;		// Log how the function was called&#60;br /&#62;
		$this-&#38;gt;func_call = &#34;\$db-&#38;gt;query(\&#34;$query\&#34;)&#34;;&#60;/p&#62;
&#60;p&#62;		// Keep track of the last query for debug..&#60;br /&#62;
		$this-&#38;gt;last_query = $query;&#60;/p&#62;
&#60;p&#62;		// Perform the query via std mysql_query function..&#60;br /&#62;
		if (SAVEQUERIES)&#60;br /&#62;
			$this-&#38;gt;timer_start();&#60;/p&#62;
&#60;p&#62;		$this-&#38;gt;result = @mysql_query($query, $this-&#38;gt;dbh);&#60;br /&#62;
		++$this-&#38;gt;num_queries;&#60;/p&#62;
&#60;p&#62;		if (SAVEQUERIES)&#60;br /&#62;
			$this-&#38;gt;queries[] = array( $query, $this-&#38;gt;timer_stop() );&#60;/p&#62;
&#60;p&#62;		// If there is an error then take note of it..&#60;br /&#62;
		if ( mysql_error($this-&#38;gt;dbh) ) {&#60;br /&#62;
			$this-&#38;gt;print_error();&#60;br /&#62;
			return false;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		if ( preg_match(&#34;/^\\s*(insert&#124;delete&#124;update&#124;replace) /i&#34;,$query) ) {&#60;br /&#62;
			$this-&#38;gt;rows_affected = mysql_affected_rows($this-&#38;gt;dbh);&#60;br /&#62;
			// Take note of the insert_id&#60;br /&#62;
			if ( preg_match(&#34;/^\\s*(insert&#124;replace) /i&#34;,$query) ) {&#60;br /&#62;
				$this-&#38;gt;insert_id = mysql_insert_id($this-&#38;gt;dbh);&#60;br /&#62;
			}&#60;br /&#62;
			// Return number of rows affected&#60;br /&#62;
			$return_val = $this-&#38;gt;rows_affected;&#60;br /&#62;
		} else {&#60;br /&#62;
			$i = 0;&#60;br /&#62;
			while ($i &#38;lt; @mysql_num_fields($this-&#38;gt;result)) {&#60;br /&#62;
				$this-&#38;gt;col_info[$i] = @mysql_fetch_field($this-&#38;gt;result);&#60;br /&#62;
				$i++;&#60;br /&#62;
			}&#60;br /&#62;
			$num_rows = 0;&#60;br /&#62;
			while ( $row = @mysql_fetch_object($this-&#38;gt;result) ) {&#60;br /&#62;
				$this-&#38;gt;last_result[$num_rows] = $row;&#60;br /&#62;
				$num_rows++;&#60;br /&#62;
			}&#60;/p&#62;
&#60;p&#62;			@mysql_free_result($this-&#38;gt;result);&#60;/p&#62;
&#60;p&#62;			// Log number of rows the query returned&#60;br /&#62;
			$this-&#38;gt;num_rows = $num_rows;&#60;/p&#62;
&#60;p&#62;			// Return number of rows selected&#60;br /&#62;
			$return_val = $this-&#38;gt;num_rows;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		return $return_val;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Get one variable from the database&#60;br /&#62;
	 * @param string $query (can be null as well, for caching, see codex)&#60;br /&#62;
	 * @param int $x = 0 row num to return&#60;br /&#62;
	 * @param int $y = 0 col num to return&#60;br /&#62;
	 * @return mixed results&#60;br /&#62;
	 */&#60;br /&#62;
	function get_var($query=null, $x = 0, $y = 0) {&#60;br /&#62;
		$this-&#38;gt;func_call = &#34;\$db-&#38;gt;get_var(\&#34;$query\&#34;,$x,$y)&#34;;&#60;br /&#62;
		if ( $query )&#60;br /&#62;
			$this-&#38;gt;query($query);&#60;/p&#62;
&#60;p&#62;		// Extract var out of cached results based x,y vals&#60;br /&#62;
		if ( $this-&#38;gt;last_result[$y] ) {&#60;br /&#62;
			$values = array_values(get_object_vars($this-&#38;gt;last_result[$y]));&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		// If there is a value return it else return null&#60;br /&#62;
		return (isset($values[$x]) &#38;#38;&#38;#38; $values[$x]!=='') ? $values[$x] : null;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Get one row from the database&#60;br /&#62;
	 * @param string $query&#60;br /&#62;
	 * @param string $output ARRAY_A &#124; ARRAY_N &#124; OBJECT&#60;br /&#62;
	 * @param int $y row num to return&#60;br /&#62;
	 * @return mixed results&#60;br /&#62;
	 */&#60;br /&#62;
	function get_row($query = null, $output = OBJECT, $y = 0) {&#60;br /&#62;
		$this-&#38;gt;func_call = &#34;\$db-&#38;gt;get_row(\&#34;$query\&#34;,$output,$y)&#34;;&#60;br /&#62;
		if ( $query )&#60;br /&#62;
			$this-&#38;gt;query($query);&#60;br /&#62;
		else&#60;br /&#62;
			return null;&#60;/p&#62;
&#60;p&#62;		if ( !isset($this-&#38;gt;last_result[$y]) )&#60;br /&#62;
			return null;&#60;/p&#62;
&#60;p&#62;		if ( $output == OBJECT ) {&#60;br /&#62;
			return $this-&#38;gt;last_result[$y] ? $this-&#38;gt;last_result[$y] : null;&#60;br /&#62;
		} elseif ( $output == ARRAY_A ) {&#60;br /&#62;
			return $this-&#38;gt;last_result[$y] ? get_object_vars($this-&#38;gt;last_result[$y]) : null;&#60;br /&#62;
		} elseif ( $output == ARRAY_N ) {&#60;br /&#62;
			return $this-&#38;gt;last_result[$y] ? array_values(get_object_vars($this-&#38;gt;last_result[$y])) : null;&#60;br /&#62;
		} else {&#60;br /&#62;
			$this-&#38;gt;print_error(&#34; \$db-&#38;gt;get_row(string query, output type, int offset) -- Output type must be one of: OBJECT, ARRAY_A, ARRAY_N&#34;);&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Gets one column from the database&#60;br /&#62;
	 * @param string $query (can be null as well, for caching, see codex)&#60;br /&#62;
	 * @param int $x col num to return&#60;br /&#62;
	 * @return array results&#60;br /&#62;
	 */&#60;br /&#62;
	function get_col($query = null , $x = 0) {&#60;br /&#62;
		if ( $query )&#60;br /&#62;
			$this-&#38;gt;query($query);&#60;/p&#62;
&#60;p&#62;		$new_array = array();&#60;br /&#62;
		// Extract the column values&#60;br /&#62;
		for ( $i=0; $i &#38;lt; count($this-&#38;gt;last_result); $i++ ) {&#60;br /&#62;
			$new_array[$i] = $this-&#38;gt;get_var(null, $x, $i);&#60;br /&#62;
		}&#60;br /&#62;
		return $new_array;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Return an entire result set from the database&#60;br /&#62;
	 * @param string $query (can also be null to pull from the cache)&#60;br /&#62;
	 * @param string $output ARRAY_A &#124; ARRAY_N &#124; OBJECT&#60;br /&#62;
	 * @return mixed results&#60;br /&#62;
	 */&#60;br /&#62;
	function get_results($query = null, $output = OBJECT) {&#60;br /&#62;
		$this-&#38;gt;func_call = &#34;\$db-&#38;gt;get_results(\&#34;$query\&#34;, $output)&#34;;&#60;/p&#62;
&#60;p&#62;		if ( $query )&#60;br /&#62;
			$this-&#38;gt;query($query);&#60;br /&#62;
		else&#60;br /&#62;
			return null;&#60;/p&#62;
&#60;p&#62;		// Send back array of objects. Each row is an object&#60;br /&#62;
		if ( $output == OBJECT ) {&#60;br /&#62;
			return $this-&#38;gt;last_result;&#60;br /&#62;
		} elseif ( $output == ARRAY_A &#124;&#124; $output == ARRAY_N ) {&#60;br /&#62;
			if ( $this-&#38;gt;last_result ) {&#60;br /&#62;
				$i = 0;&#60;br /&#62;
				foreach( $this-&#38;gt;last_result as $row ) {&#60;br /&#62;
					$new_array[$i] = (array) $row;&#60;br /&#62;
					if ( $output == ARRAY_N ) {&#60;br /&#62;
						$new_array[$i] = array_values($new_array[$i]);&#60;br /&#62;
					}&#60;br /&#62;
					$i++;&#60;br /&#62;
				}&#60;br /&#62;
				return $new_array;&#60;br /&#62;
			} else {&#60;br /&#62;
				return null;&#60;br /&#62;
			}&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Grabs column metadata from the last query&#60;br /&#62;
	 * @param string $info_type one of name, table, def, max_length, not_null, primary_key, multiple_key, unique_key, numeric, blob, type, unsigned, zerofill&#60;br /&#62;
	 * @param int $col_offset 0: col name. 1: which table the col's in. 2: col's max length. 3: if the col is numeric. 4: col's type&#60;br /&#62;
	 * @return mixed results&#60;br /&#62;
	 */&#60;br /&#62;
	function get_col_info($info_type = 'name', $col_offset = -1) {&#60;br /&#62;
		if ( $this-&#38;gt;col_info ) {&#60;br /&#62;
			if ( $col_offset == -1 ) {&#60;br /&#62;
				$i = 0;&#60;br /&#62;
				foreach($this-&#38;gt;col_info as $col ) {&#60;br /&#62;
					$new_array[$i] = $col-&#38;gt;{$info_type};&#60;br /&#62;
					$i++;&#60;br /&#62;
				}&#60;br /&#62;
				return $new_array;&#60;br /&#62;
			} else {&#60;br /&#62;
				return $this-&#38;gt;col_info[$col_offset]-&#38;gt;{$info_type};&#60;br /&#62;
			}&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Starts the timer, for debugging purposes&#60;br /&#62;
	 */&#60;br /&#62;
	function timer_start() {&#60;br /&#62;
		$mtime = microtime();&#60;br /&#62;
		$mtime = explode(' ', $mtime);&#60;br /&#62;
		$this-&#38;gt;time_start = $mtime[1] + $mtime[0];&#60;br /&#62;
		return true;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Stops the debugging timer&#60;br /&#62;
	 * @return int total time spent on the query, in milliseconds&#60;br /&#62;
	 */&#60;br /&#62;
	function timer_stop() {&#60;br /&#62;
		$mtime = microtime();&#60;br /&#62;
		$mtime = explode(' ', $mtime);&#60;br /&#62;
		$time_end = $mtime[1] + $mtime[0];&#60;br /&#62;
		$time_total = $time_end - $this-&#38;gt;time_start;&#60;br /&#62;
		return $time_total;&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/**&#60;br /&#62;
	 * Wraps fatal errors in a nice header and footer and dies.&#60;br /&#62;
	 * @param string $message&#60;br /&#62;
	 */&#60;br /&#62;
	function bail($message) { // Just wraps errors in a nice header and footer&#60;br /&#62;
		if ( !$this-&#38;gt;show_errors )&#60;br /&#62;
			return false;&#60;br /&#62;
		wp_die($message);&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;if ( ! isset($wpdb) )&#60;br /&#62;
	$wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);&#60;br /&#62;
?&#38;gt;&#60;/p&#62;&#60;/blockquote&#62;</description>
</item>
<item>
<title>garizma konu: "CGI Hatası"</title>
<link>http://www.wordpress-tr.com/forum/topic/3197#post-18186</link>
<pubDate>Per, 01 Nov 2007 08:40:36 +0000</pubDate>
<dc:creator>garizma</dc:creator>
<guid isPermaLink="false">18186@http://www.wordpress-tr.com/forum/</guid>
<description>&#60;p&#62;Aynı şekildeki hatayı bende alıyorum.
&#60;/p&#62;</description>
</item>
<item>
<title>samsung konu: "CGI Hatası"</title>
<link>http://www.wordpress-tr.com/forum/topic/3197#post-16367</link>
<pubDate>Per, 04 Oct 2007 21:58:22 +0000</pubDate>
<dc:creator>samsung</dc:creator>
<guid isPermaLink="false">16367@http://www.wordpress-tr.com/forum/</guid>
<description>&#60;p&#62;Merhaba Arkadaslar, Yeni wordpress kullanicisiyim.Gecen ay Wordpress 2.2.3 kurdum  k2 Temasini düzenledim hemde bu sayede eklentileri vede birazda olsa wordpresi cözmeye calistim.2 Gün önce Veri tabanini ve Ftpden Tüm wordpress dosyalarini sildim. 2.3 kurmak icin. 2.3 sürümünü ftpye attim veri tabanini olusturdum. &#60;/p&#62;
&#60;p&#62;kurulumu yaptiktan sonra Siteme girdigim zaman söyle bir hata aliyorum..&#60;/p&#62;
&#60;p&#62;Hata: &#60;/p&#62;
&#60;p&#62;  &#60;strong&#62;CGI Hatası&#60;br /&#62;
 Belirtilen CGI uygulaması, tam bir HTTP üstbilgisi kümesi döndürmeyerek hatalı çalıştı.&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;Daha sonra sürümdendir belki dedim vede 2.2.3 ü kurdum yine ayni hatayi verdi.Wordpress.org 'a girip  ordaki ingilizce wordpress 2.3 ü kurdum yine olmadi  rc1 , beta1 ,2,3 kisaca Tüm wordpress sürümlerini indirip kurdum olmadi. Veri tabanlarini sildim yeniden olusturdum hep ayni hatayi aldim. bu konuda yardimci olursaniz Sevinirim. İyi calismalar..
&#60;/p&#62;</description>
</item>

</channel>
</rss>
