<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Errore di connessione database : mysql_pconnect]]></title><description><![CDATA[<p dir="auto">Ciao ho installato in locale <a href="http://sphider.eu" rel="nofollow ugc">sphider.eu</a> (uno spider sviluppato in php/mysql), ho un problema di connessione con il database.<br />
il file databse.php è cosi composto:</p>
<pre><code class="language-php">&lt;?php    $database="sphider";    $mysql_user = "root";    $mysql_password = "";     $mysql_host = "localhost";    $mysql_table_prefix = "";


    $success = mysql_pconnect ($mysql_host, $mysql_user, $mysql_password);    if (!$success)        die ("&lt;b&gt;Cannot connect to database, check if username, password and host are correct.&lt;/b&gt;");    $success =  mysql_select_db ($database);    if (!$success) {        print "&lt;b&gt;Cannot choose database, check if database name is correct.";        die();    }?&gt;
</code></pre>
<p dir="auto">lanciando l'installazione mi appare errore:<br />
<strong>Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in</strong>/Applications/XAMPP/xamppfiles/htdocs/spider/settings/database.php on line <strong>10</strong>****</p>
<p dir="auto"><strong>ho provato ha risolvere in questo modo:</strong></p>
<p dir="auto"><strong>```php</strong><br />
<strong>&lt;?php    $database="sphider";    $mysql_user = "root";    $mysql_password = "";     $mysql_host = "localhost";    $mysql_table_prefix = "";</strong></p>
<pre><code>**$success = new mysqli_connect ($mysql_host, $mysql_user, $mysql_password);    if (!$success)        die ("&lt;b&gt;Cannot connect to database, check if username, password and host are correct.&lt;/b&gt;");    $success =  mysql_select_db ($database);    if (!$success) {        print "&lt;b&gt;Cannot choose database, check if database name is correct.";        die();    }?&gt;**
</code></pre>
<p dir="auto"><strong>```</strong></p>
<p dir="auto"><strong>ma non funziona. Come posso risolvere?</strong><br />
<strong>Grazie</strong></p>
]]></description><link>https://dev.connect.gt/topic/220777/errore-di-connessione-database-mysql_pconnect</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 02:56:44 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/220777.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Feb 2016 14:29:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Errore di connessione database : mysql_pconnect on Tue, 02 Feb 2016 10:48:23 GMT]]></title><description><![CDATA[<p dir="auto">Ciao ronyone, come dice il messaggio di errore la funzione mysql_pconnect() è deprecata.<br />
Se vuoi continuare ad utilizzare questa funzione dovresti utilizzare una versione PHP precedente alla 5.5.0, altrimenti (consigliato) utilizza le classi PDO.</p>
]]></description><link>https://dev.connect.gt/post/1216148</link><guid isPermaLink="true">https://dev.connect.gt/post/1216148</guid><dc:creator><![CDATA[mrbee]]></dc:creator><pubDate>Tue, 02 Feb 2016 10:48:23 GMT</pubDate></item></channel></rss>