Jump to content

Ascundere Erori Mysql In Wordpress Si Nu Numai !


Recommended Posts

Posted

Presupunem ca avem instalat un wordpress, avem urmatorul cod:

<?php
$adresa="localhost";
$utilizator="root";
$parola="";
$numebazedate="wordpresss";
$conexiune= mysql_connect($adresa,$utilizator,$parola) or die("Nu ma pot conecta la baza de date");
mysql_select_db($numebazedate,$conexiune) or die("nu merge");
?>[/code] Daca modificam utilizatorul din root in rot atunci vom primi eroarea:
[code]Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'roof'@'localhost' (using password: NO) in C:\Program Files\EasyPHP 2.0b15\www\config.php on line 6
Nu ma pot conecta la baza de date
Daca punem semnul @ in fata liniei:
@$conexiune= mysql_connect($adresa,$utilizator,$parola) or die("Nu ma pot conecta la baza de date");
Atunci vom primii numai:
Nu ma pot conecta la baza de date

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.