<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>CUBRID Q&amp;A</title>
        <link>http://www.cubrid.org/?mid=questions</link>
        <description>CUBRID Q&amp;A</description>
        <language>en</language>
        <pubDate>Fri, 21 Oct 2011 02:37:10 -0800</pubDate>
        <lastBuildDate>Mon, 17 Jun 2013 00:34:43 -0800</lastBuildDate>
        <generator>XpressEngine 1.4.4.1</generator>
                        										        <item>
            <title>cubrid shard with PHP driver</title>
            <dc:creator></dc:creator>
            <link>http://www.cubrid.org/questions/663251</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/663251</guid>
                                    <description><![CDATA[<p>Hi,</p>
<p>I've done some tests with <a href="/manual/91/en/shard.html">cubrid shard</a> and it seems that I cannot use mysql driver for PHP and that I have to use cubrid driver for PHP. I've read that it was compatible with MySQL but it seems that it just means that it can be used to shard a MySQL database and that cubrid driver's functions have <a href="/wiki_apis/entry/cubrid-vs-mysql-php-api-functions-comparison">similar names</a> to mysql driver's functions. My aim is to use cubrid shard with an existing PHP application that uses MySQL as its database. Here is my question :</p>
<p>In my tests, I realized that I MUST use cubrid driver for PHP and that prepared queries are mandatory. Am I true or is there anything wrong in my code ?</p>
<p>thanks&nbsp;</p>]]></description>
                        <pubDate>Thu, 23 May 2013 07:47:23 -0800</pubDate>
                        <category>PHP</category>
                        <category>Sharding</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>What does &quot;Error: CCI, -4, Cannot communicate with server&quot; mean?</title>
            <dc:creator>eye</dc:creator>
            <link>http://www.cubrid.org/questions/295947</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/295947</guid>
                                    <description><![CDATA[<p>I installed CUBRID and the PHP API yesterday. Everything was working perfect. I was quite glad. I created some code and could work with CUBRID. But today in the morning I started my Web server, navigated to my site, and I saw this error:</p>

<p></p>

<div editor_component="code_highlighter" code_type="Php" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">Error: CCI, -4, Cannot communicate with server</div>

<p>What does it mean, and how can I resolve it?</p>]]></description>
                        <pubDate>Tue, 14 Feb 2012 20:00:49 -0800</pubDate>
                        <category>PHP</category>
                        <category>Error Code</category>
                        <category>CCI</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How do I SHOW CREATE TABLE in CUBRID?</title>
            <dc:creator>eye</dc:creator>
            <link>http://www.cubrid.org/questions/242600</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/242600</guid>
                                    <description><![CDATA[<p>MySQL provides <strong>SHOW CREATE TABLE </strong>syntax which shows the CREATE TABLE statement that creates the given table including all its CONSTRAINTS and INDEXes. How do I obtain the same information in CUBRID?</p>
<p><strong>Edit:</strong> I need an SQL solution so that I can execute the query in scripting language such as PHP. So, CUBRID Manager solution is not exactly what I&nbsp;am looking for.</p><p>Considering that $object_name = 'stadium', the following will be the output.</p><p></p><p></p><div editor_component="code_highlighter" code_type="Sql" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url(/modules/editor/components/code_highlighter/code.png) no-repeat top right;"><p>CREATE TABLE stadium(<br />&nbsp; &nbsp; code INTEGER NOT NULL,<br />&nbsp; &nbsp; nation_code CHAR NOT NULL,<br />&nbsp; &nbsp;&nbsp;name VARCHAR(50) NOT NULL,<br />&nbsp; &nbsp;&nbsp;area NUMERIC,<br />&nbsp; &nbsp;&nbsp;seats INTEGER,<br />&nbsp; &nbsp;&nbsp;address VARCHAR(100),<br />&nbsp; &nbsp;&nbsp;CONSTRAINT pk_stadium_code PRIMARY KEY (code)<br />);</p></div><p></p><p></p><p></p><p>Does anyone know pure PHP solution?</p>]]></description>
                        <pubDate>Mon, 28 Nov 2011 22:43:30 -0800</pubDate>
                        <category>SQL</category>
                        <category>schema</category>
                        <category>PHP</category>
                                    <slash:comments>5</slash:comments>
                    </item>
        										        <item>
            <title>CUBRID 64 bit with PHP x86 on Windows 7</title>
            <dc:creator>ovidiuv</dc:creator>
            <link>http://www.cubrid.org/questions/388741</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/388741</guid>
                                    <description><![CDATA[<p>Hello,</p><p>I have installed CUBRID x64 bit and PHP x86 (official release) on Windows 7 64 bit. I tried to manually install the PHP API by adding the driver from here:&nbsp;<a href="/?mid=downloads&amp;item=php_driver&amp;os=windows&amp;ostype=any&amp;php=php53&amp;driver_type=phpdr">http://www.cubrid.org/?mid=downloads&amp;item=php_driver&amp;os=windows&amp;ostype=any&amp;php=php53&amp;driver_type=phpdr</a></p><p>I have VC9 thread safe (TS) version of PHP 5.3.10. I added the lines</p><p>[PHP_CUBRID]</p><p>extension=php_cubrid.dll</p><p>to php.ini and the file php_cubrid.dll to ext folder. I have tried with any PHP driver version but it fails to load (php crashes and apache fails to start).</p><p>Is there a workaround ?</p>]]></description>
                        <pubDate>Mon, 09 Jul 2012 03:46:11 -0800</pubDate>
                        <category>PHP</category>
                        <category>driver</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How do I escape strings in PHP to pass binary data to a table via an insert or update statement ?</title>
            <dc:creator>andrevanzuydam</dc:creator>
            <link>http://www.cubrid.org/questions/360063</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/360063</guid>
                                    <description><![CDATA[<p>This is on the back of my previous question, it would be important for Cubrid to have a similar function to&nbsp; mysql_escape_string for passing of binary information to an SQL statement.</p><p>How should I do this in the interim, I have already done the normal replace single quotes with double single quotes.</p><p><br /></p>]]></description>
                        <pubDate>Wed, 16 May 2012 01:18:46 -0800</pubDate>
                        <category>PHP</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>What is the difference between synchronous and asynchronous modes in PHP cubrid_execute()?</title>
            <dc:creator>eye</dc:creator>
            <link>http://www.cubrid.org/questions/316951</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/316951</guid>
                                    <description><![CDATA[In <a href="http://www.php.net/manual/en/function.cubrid-execute.php" target="_self">cubrid_execute()</a>&nbsp;documentation is says that the developer can specify which mode to use: either <b>synchronous</b> or <b>asynchronous</b>. What is the difference between them and how they affect the performance?]]></description>
                        <pubDate>Wed, 28 Mar 2012 18:00:20 -0800</pubDate>
                        <category>PHP</category>
                        <category>cubrid_execute</category>
                        <category>async_mode</category>
                        <category>sync_mode</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>Does CUBRID UPDATE the record if the new value is same as the old one?</title>
            <dc:creator>eye</dc:creator>
            <link>http://www.cubrid.org/questions/290823</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/290823</guid>
                                    <description><![CDATA[<p>As stated in <a href="http://kr2.php.net/manual/en/function.mysql-affected-rows.php" target="_self">mysql_affected_rows()</a>&nbsp;PHP API manual:</p><blockquote class="q4"><p>When using UPDATE, MySQL will not update columns where the new value is the same as the old value. This creates the possibility that mysql_affected_rows() may not actually equal the number of rows matched, only the number of rows that were literally affected by the query.</p></blockquote><p>Based on this, how does CUBRID behave when the new value is the same as the old value?</p>]]></description>
                        <pubDate>Mon, 06 Feb 2012 17:58:21 -0800</pubDate>
                        <category>PHP</category>
                        <category>SQL</category>
                        <category>UPDATE</category>
                        <category>cubrid_affected_rows</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>Do CUBRID PHP and PDO APIs require any dependent library?</title>
            <dc:creator>eye</dc:creator>
            <link>http://www.cubrid.org/questions/252425</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/252425</guid>
                                    <description><![CDATA[<p>I can see CUBRID PHP and PDO drivers are available through PECL packaging system. Can I directly install them? Or are they dependent on any external library, perhaps CUBRID's?</p>]]></description>
                        <pubDate>Thu, 05 Jan 2012 21:07:35 -0800</pubDate>
                        <category>PHP</category>
                        <category>PDO</category>
                        <category>PECL</category>
                        <category>driver</category>
                        <category>installation</category>
                                    <slash:comments>1</slash:comments>
                    </item>
            </channel>
</rss>
