Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Warning: Mysql_connect(): Client Does Not Support Authentication Protocol


I get the following error when trying to establish a connection:

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:xitami-25appwebpagesest.php on line 3

I tryed searching the forum but could not come up with any accurate results. I remeber having this problem before, but I just upgraded to MySql 5.0 and I cannot find my old thread.




View Complete Forum Thread with Replies

Related Forum Messages:
Client Does Not Support Authentication Protocol MYSQL
Just thought I would post a solution (temporary at best, but a solution at
least.) for all those using PostNuke who have upgraded MySql to 4.1. I have
had problems with PostNuke logging into MySql after upgrading to MySql 4.1.
I received the message:

"Client does not support authentication protocol requested by server.
Consider upgrading MySQL client."

After reading here:
http://www.mysql.com/doc/en/Old_client.html

And here:
http://www.mysql.com/doc/en/Password_hashing.html

* I simply edited my startup script for MySql Server on my box to launch
with:
mysqld_safe --old-passwords

* Restarted my MySQL server

* and then changed my MySQL passwords with the OLD_PASSWORD function rather
than the previous PASSWORD function.

It solved my problem. I was able to create a new site database and all was
well!

View Replies !
Client Does Not Support Authentication Protocol Requested By Server
I've installed php 4x on IIS. I try to open the database I get the following message:

Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in c:ProjectsManagementSystemMenu.php on line 6
Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client.

View Replies !
#1251 - Client Does Not Support Authentication Protocol Requested By Server; Consider
I am getting an error. I am using

apache_2.0.59-win32-x86-no_ssl
php-4.4.4-Win32.zip
mysql-essential-5.0.27-win32.msi
I get this error

#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client The error is in phpmyadmin, it shows up after login

View Replies !
#1251 - Client Does Not Support Authentication Protocol Requested By Server
I,ve setup my WAMP environment on Windows XP by installing: apache 2.049. PHP 5. MySQL 4.1.14 I,ve configured apache & PHP successfully but whenever I try to connect MySQL through PHP script following error appears:

"#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client"

View Replies !
Authentication Protocol
I don't know if this is a PHP problem or a MySQL problem - hopefully, someone here can give me a clue. I am getting the subject error when I try to connect to MySQL from a
PHP page.

$conn = mysql_connect( $domain, $user, $password );

I'm using PHP 5.0.1 and MySQL Server: 4.1.9; Client: 5.0.0
Running on Windows XP (IIS, of course)

According to the MySQL Reference Manual, this problem occurs only when using client programs older than 4.1.1. I'm not sure what they mean by "client programs". Is PHP the "client" in my situation?

View Replies !
Warning: Mysql_connect():
I just went to visit a website and i click on their forum link and this is what i got. Are they having problems w/ their site?

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in /home/bam2x/public_html/forums/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/bam2x/public_html/forums/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/bam2x/public_html/forums/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database .

View Replies !
How To Check If Client Browser Support Pdf Or Not????
I want to check if the client browser support pdf reading or not, so i can direct it to adobe reader web to install the reader...any solution for my problem?? 

View Replies !
How To Check Whether The Client Browser Support PDF Or Not?
Hi..Does anyone know how to check our client browser whether it support PDF file reading or not???
And Does PHP support pdf file reading?

View Replies !
Warning: Mysql_connect(): Too Many Connections
I just tried to visit my site and got the following error:

Warning: mysql_connect():

Too many connections in /home/httpd/vhosts/workincairns.com/httpdocs/connect.php on line 2 Too many connections

whats happenned and how to fix it?

View Replies !
Warning: Mysql_connect() [function.mysql-connect]:
i am haveing an issue connecting to a mysql database i get the following error

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query in /home/cutencud/public_html/testing.php on line 1

now testing.php only has one line and it looks like this

<?php mysql_connect("66.97.165.60", "root", "") ?>
anyone know what would cause that? (and i removed the password before posting

View Replies !
Warning: Mysql_connect(): Access Denied For User ...
Does anyone know what these error messages are about?

Warning: mysql_connect(): Access denied for user 'hoopstar_hoopsta'@'localhost' (using password: YES) in /home/hoopstar/public_html/vars.php on line 8

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/hoopstar/public_html/vars.php on line 10

Here is the code:

<?php
##Requires Edit##
$user = "created a user with all privleges";
$pass = "which password is this?";
$db = "hoopstar_HoopStartRegistration";

// open the connection
$connection = mysql_connect("localhost", "$user", "$pass");
// pick the database to use
mysql_select_db("$db",$connection);

View Replies !
Does MyAdmin Support Windows Integrated Authentication
I have installed PHP 4.x and PHPMyAdmin and all works. But I cannot get PHPMyAdmin to work with IIS and Windows Integrated Authentication. Does PhpMyAdmin work with IIS Windows Integrated Authentication or only Anonymous Access.

I have searched but cannot find an answer. It is using auth_type http in the config.inc.php file.

View Replies !
PHP Warning: Mysql_connect(): Can't Connect To Local MySQL Server
PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/*****/public_html/mysqlconnection.php on line 2

whats this error mean?

View Replies !
Client Side HTTP Digest Authentication
I'm trying to retrieve the contents of a URL using file_get_contents($url). The problem is that the URL is protected via *HTTP Digest Authentication*.

Is there any php library that can handle all the necessary headers during the request, or do I have to do it manually ?

View Replies !
Warning: Mysql_connect(): Can't Connect To Local MySQL Server Through Socket
A friend sent me a PHP script he uses to manage data. He wants me to do some minor changes on some of the tables. He sent the binaries , the database dump and the php files in a tar file. I set up a database for testing on my server. I ftp'd the php files to my server. When I try to access any of the php files I get this...


Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/m/e/n/menlo/html/pmtool/goremote/common/CommonLib.php on line 130
Failed to connect to the database ..!

Do I need to do something with the database dump?

View Replies !
Warning: Mysql_connect(): Can't Connect To MySQL Server On 'localhost' (10061)
i was coding a database script in php which uses mysql as backend, am not a newbie to either mysql or php, its been fun for years for me, but during my coding 5 mins before i just got

Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061)

I was not connected to internet so no chance of virus or so, niether any chance of configuration change issue by someone, how can this happen at once? i restarted machine but still the same. I am on a windows server.

View Replies !
Warning: Mysql_connect() [function.mysql-connect]: Access Denied For
please anybody of u please help me to solve this problem. i don't know what happen.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql_user'@'localhost' (using password: YES) in C:AppServwwwmangrovedatabase.php on line 2 Could not connect: Access denied for user 'mysql_user'@'localhost' (using password: YES)

View Replies !
Warning: Main(): Stream Does Not Support Seeking ....
I have the following warning message when I move all the php files to the
new server. It had no problem with the former server.

Warning: main(): stream does not support seeking in
/home/dominator/public_html/footer.php on line 11

MySQL is running with PHP. How could I fix this problem?


View Replies !
Warning: Main(): Stream Does Not Support Seeking
I am trying to put a php script on my site, it works somewhat. It is a calendar. The calendar appears on the page, just not correctly and with this error message.

Warning: main(): stream does not support seeking in /home/kozakfam/public_html/index.php on line 50. What does that mean?

View Replies !
Warning: Mysql_connect(): Access Denied For User 'ODBC'@'localhost' (using Password: YES) In C:Program FilesApache GroupApache2htdocsExercisesDBTest.php On Line 1
I have this error when i try to load my php file which reads a database. I only have a password setting for mySQL database.Although i have supplied the correct password, this error appears in the page.

Warning: mysql_connect(): Access denied for user 'ODBC'@'localhost' (using password: YES) in C:Program FilesApache GroupApache2htdocsExercisesDBTest.php on line 1

View Replies !
Warning: Date(): Windows Does Not Support Dates Prior To Midnight
I tried to use the date() function with the mktime(). It keeps giving warning:

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970

I could use the @ to surpress the warning but I would like to know why it's happening. Take a look at this. There doesn't seem to be anything wrong with it. PHP Code:

View Replies !
Warning: Session_start(): - Authentication Error
I just switched hosting companies. All my code worked before, now I'm getting this error upon user authentication (username/pw is compared to SQL db) and redirection to proper page (error if fails, extranet if valid)

Can someone tell me what this means?

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/ecbp.com/httpsdocs/customer/portal.php:9) in /home/httpd/vhosts/ecbp.com/httpsdocs/customer/portal.php on line 65

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/ecbp.com/httpsdocs/customer/portal.php:9) in /home/httpd/vhosts/ecbp.com/httpsdocs/customer/portal.php on line 65

line 65 reads as:
$_SESSION['valid_log'] = array($_SERVER['REMOTE_ADDR'], $User);

View Replies !
Email: SMTP Authentication - PHP Warning: Mail()
I am running Apache/PHP on Windows 2000. How do we set up authentication for outgoing mail, since my yahoo server requires that? My current settings in php.ini are the following:

SMTP=smtp.mail.yahoo.com
smtp_port=25
sendmail_from=me@myemail.com
;sendmail_path=
Call the mail() function:
mail("the@ddress.com", "Test", "Message");

And finally, the error message output when it fails:

[02-Mar-2003 12:01:31] PHP Warning: mail() [http://www.php.net/function.mail]: SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html in c:apachehtdocsmail.php on line 11

View Replies !
Warning: Mysql_connect() [function.mysql-connect]: Lost Connection To MySQL Server
I've set up a test server on an Ubuntu system. I installed and configured Apache, PHP and MySQL however, whenever I try to connect to a MySQL database I get this error:
PHP Code:

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /var/www/index.php on line 8
Lost connection to MySQL server at 'reading initial communication packet', system error: 111

Does anyone know what is causing this and how I can solve the problem?

View Replies !
Warning: Mysql_connect() [function.mysql-connect]: Unknown MySQL Server Host 'sql1bravehostcom'
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'sql1bravehostcom' (1) in /misc/13/000/126/295/2/user/web/jeppers90.com/includes/fiction_mysql.inc.php on line 11
Cannot connect to server

this message is what i get when i try to upload it to a webserver..things i have done set up database put in correct information from the database in to my php form. what ever i try i can't seem to set it up .

View Replies !
Warning: Mysql_connect(): Can't Connect To Local MySQL Server Through Socket '/tmp/mysql.sock' (2) In /home/custcare/dbconn.inc On Line 2
It's really strange. I downloaded the latest 4.0.16 RPM from mysql.com
and installed it to my Fedora system, and did *not* do anything else
(Actually I am completely new to mysql).

I wrote a test php script to test mysql (ftp_connect('localhost',
'root');), but got the following error:

Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/tmp/mysql.sock' (2) in /home/custcare/dbconn.inc on line 2

I ran phpBB2 installation page, got the same error. But it can connect
to mysql using my computer name.

View Replies !
Authentication - "asking" The Client Browser For The Users ID.
I can build a userfriendly INTRANET. I have successfully used PHP on an IIS6 box to grab
the credintials of the connecting user and then passing them off to an
AD LDAP to grab first and last name, by turning off anonymous access
and forcing INTEGRATED WINDOWS authentication. however, this broke
other parts of my intranet... I do NOT want the user to get a dialog
box requesting logon. So, my question is there a way of "asking" the
client browser for the users ID.

View Replies !
Warning: Fopen(http://localhost/.. ?HTTP Wrapper Does Not Support Writeable Conn
I am able to create a pdf using php and ezpdf, its works fine, and display the pdf document in the current server page.

But here are two things i wish to do, first store the pdf and than open, if possible in a new popup window?

When i tried this function below, it gives me an error

Error:
Warning: fopen(http://localhost/pdf/files/tmp1/yasmina.pdf) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections. in C:Program FilesxampphtdocspdfpdfClassesAndFonts_009ecertificate.php on line 139
Could not open file to save PDF. Code:

View Replies !
Protocol (c)
I know this must be really simple but I just cant see why it isnt working. Im uploading a file to a local apache server then inserting the path to a mysql database. I am trying to create a link so it opens the file uploaded, but it gives me this error. FireFox doesnt know how to open this address because the protocol (c) isnt associated with any program.

View Replies !
Curl Unknown Protocol
I have got this script that works perfectly fine on a different server. It uses curl to communicate to a different website via https. On this new server, however, I keep receiving an error message:

Error: HTTP Error: cURL ERROR: 35: SSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Some sites suggest to manually change the SSL version curl uses to SSL 2. After I do that, I get the error:

Error: HTTP Error: cURL ERROR: 35: SSL: error:00000000:lib(0):func(0):reason(0)

If I change it to SSL version 3, I go back to the previous error (unknown protocol). Has anybody experienced this before? The script is correct - it works on a different server. It must have something to do with the installation of curl for PHP on this server.

View Replies !
Nusoap - Array ( [faultcode] =env:Client [faultstring] =Rejected (from Client) )
Using a PHP 4 and Nusoap I get the following errors when attempting to
call a web service

I need to login to the main web service and get a session token to be
able to access the second web service - this part works ok

When I try and call the second web service, I get the following error.

Result
Array ( [faultcode] =env:Client [faultstring] =Rejected (from
client) )

Request

Response

VR array(2) { ["faultcode"]=string(10) "env:Client" ["faultstring"]=>
string(22) "Rejected (from client)" }

Below is my code:

$VendorWsdl =
"https://api.betfair.com/betex-api-public-ws/v1/VendorService.wsdl";
$VendorSoap = new soapclient($VendorWsdl,"wsdl");
$VendorProxy = $VendorSoap->getProxy();

$AddUserParams =
array(request=>array('header'=>$BetfairRequestHeader,'username'=>$tok[3],'vendorSoftwareId'=>342,'expiryDate'=>$expiry));
$VendorAddResult = $VendorProxy->addVendorSubscription($AddUserParams);

$VendorSessionToken =
$VendorAddResult['Result']['header']['sessionToken'];
print("VST "); print($VendorSessionToken); print("<br>
");
if ($VendorSoap->fault)
{
print_r($VendorAddResult);
echo "";
}
else
{
$VendorError = $VendorSoap->getError();
if ($VendorError)
{
echo "<h2>Error</h2>" . $VendorError . "";
}
else
{
echo "<h2>Result</h2>";
print_r($VendorAddResult);
echo "";
}
}
echo "<h2>Request</h2>";
print_r($VendorSoap->request); print("<br>
");
echo "" . htmlspecialchars($VendorSoap->request, ENT_QUOTES) . "";
echo "<h2>Response</h2>";
echo($VendorSoap->response); print("<br>
");
echo "" . htmlspecialchars($VendorSoap->response, ENT_QUOTES) . "";

print("VR "); var_dump($VendorAddResult);

View Replies !
Pdf With Unicode Support Or Arabic Characterset Support
I am working on a project that have a featre to print the news as a PDF file format. I am having a problem in generaing pdf with unicode support or Arabic characterset support. I can generat eenglish document like a charm but the probem in Arabic text. I am geting the data from the MySQL database. Anyone have any idea what to do, I search everywhere on net find some small results but still I am not been able to accomplish the task.

View Replies !
PHP News Group Under NNTP Protocol
Is there any possibility to access a PHP newsgroup though a news
client (i.e. Mozilla, Pan), using the NNTP protocol?

View Replies !
Gzopen - SSL: Fatal Protocol Error ?
I have a set of Php scripts that run on my home PC (Windows XP- Apache 2
- Php 4.4.1) that reads my web sites' daily Apache access log file (a
gzipped file) on the remote server (Linux/Apache/CPanel), and inserts
the entries into a database on my PC. I use gzlib to open the gzipped
file on the remote server. This script has been working fine for months
(nearly a year).

Today, without changing anything, I got a new error message (fatal?**)
that I have never gotten before (** the script seems to work anyway).

Warning: gzopen(): SSL: fatal protocol error in .....
ead_logfile.php
on line 76
(sub "......" with a real path on my PC)

Line 76 is:
$fp = gzopen($logfile, 'rb');
Where $logfile =
https://username:password@theserver...sslog-domain.gz

(sub "username, password, theserver and domain" for real values).

The remote server just had a major upgrade (Perl upgrade, MySQL upgrade,
Php4 to Php5), but I don't know how that could be the problem, as the
error is generated on my home machine.

View Replies !
Create Some Applications Using The Curl Protocol
i am currently trying to create some applications using the curl protocol, the other night I thought it would be a cool idea to code a forums bot, but my problem with curl is I php.net doesnot provide you with enough string option information.

View Replies !
Spider To Respect The Robots.txt Protocol?
How when you use fopen() to read a web page, do you parse the text of a web page and insert it into a database? How do you follow links? How do you set up your php spider to respect the robots.txt protocol.

View Replies !
PHP Warning: Mysql_connect() [<a Href='function.mysql-connect'>function.mysql-connect</a>]
I am getting the following error

PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections in /usr/share/pear/adodb/drivers/adodb-mysql.inc.php on line 340

Can anyone tell me the possible reasons for this.

View Replies !
HTTP Authentication .vs. Session Authentication
I am designing a PHP application (yes, I have
investigated using existing applications). I cannot use HTTPS
for reasons I shall not disclose. I must authenticate users
against a database (MySQL) before granting them access. There
are two methods I am considering: HTTP authentication, and session
authentication. My webpage is spread across multiple scripts, and
the user must not have to repeatedly reauthenticate him/herself.
It does not matter, however, if the login session remains or is
destroyed when the browser closes, although destruction is
preferred.

To my knowledge, PHP only supports Basic HTTP authentication.
This would be easier, and if it matches session authentication in
security, I would prefer to use it. Session authentication would
be accomplished via a hashed password supplied in a form, sent via
POST, after which the userid or another identifying piece of data
would be stored in a session variable. My webserver does host other
websites, and I cannot adjust its configuration. It seems to me,
however, that Basic HTTP authentication sends the username and
password in plaintext at the opening of every page. Is this true?

View Replies !
"SSL: Fatal Protocol Error" With Fsockopen()
I'm experience the infamous "SSL: Fatal Protocol Error" bug with Apache 2.x

According the fopen() documentation:

"If you are using fsockopen() to create an ssl:// socket, you are
responsible for detecting and suppressing the warning yourself."

View Replies !
Mysql_connect() Used Twice
I need that my script retrieves data from two different databases so I use
mysql_connect() to open two connections. I have only one server, user and
password, just two different databases. Simplified, it'd be:

$con1=mysql_connect($server, $user, $pass);
mysql_select_db($database1, $con1);
$res1=mysql_query($sql1, $con1);

$con2=mysql_connect($server, $user, $pass);
mysql_select_db($database2, $con2);
$res2=mysql_query($sql2, $con2);

print_r($con1);
print_4($con2);

do_things_with_res1();
do_things_with_res2();

mysql_close($con2);
mysql_close($con1);

the problem is that, no matter what names I give to links and results, each
mysql_connect() overrides the previous ones. So when I call
do_things_with_res1() it actually uses $database2. The print_r() part shows
that $con1 has been unset!

I browsed php.ini and found this:

; Maximum number of links (persistent + non-persistent).
; -1 means no limit.
mysql.max_links = -1

View Replies !
Where Is Mysql_connect()?
I'm running PHP5 on Windows Vista with mysql 5.2. I have a simple php
file with

<?
$dbc = mysql_connect ();
?>

When I run the file, I get this error:
Fatal error: Call to undefined function mysql_connect() in E:www
mysiteconnecttest.php on line 2

PHP seems to be installed correctly. What could I be doing wrong?

View Replies !
Mysql_connect ?
what are the parameters for mysql_connect ? do i need to put in the database name, username, password ?

<? mysql_connect("localhost", "webuser", "");
$query = "SELECT name, phone FROM mytable";?>

View Replies !
Mysql_connect
Don't laugh but im new to php (not programming) I read somewhere that if u use mysql_connect (instead of mysql_pconnect) that u have to use it in every script.

I was just wonderting if a script is from on <?php to ?> or if a script is from the top of the file to the end. (basically if it doesn't end the connecting after it encouters its first set of a ?> tag.

View Replies !
Cannot Get Mysql_connect To Work
I'm trying to do something which should be very simple - connect to the
MySQL database. Here is the call, followed by the error msg.

$conn = mysql_connect("localhost", "root", "");

Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13) in /var/www/html/buildhw.php on
line 13
failed

I've also tried this with the host arg as "", but I get the same
result. Logging on as root made no difference either.

View Replies !
Mysql_connect Not Working
I am very new to php, and I am trying to use it to access a mysql
database. But I'm trying to use mysql_connect but the browser returns
the following error sayin that the mysql_connect function is undefined.
Why? Can anyone help?

Fatal error: Call to undefined function mysql_connect() in
C:DataNowContractWorkFriendsKnittingLiveWebSi tefriends_emailsubmit.php
on line 11

View Replies !
Mysql_connect Function
How do I get the mysql_connect function in PHP to work when my webserver is win2000 based? It asks for my servername when I use this function. But because mysql executable is installed at c:mysqlbinmysql.exe, just typing in my server name won't start mysql. How do I make this work?

View Replies !
Mysql_connect Password
I am wondering if it's possible to pass the encrypted password through the mysql_connect function.

View Replies !
Mysql_connect Error
I got error when using mysql_connect function in my php script.
If i set the db host to localhost, it give me that error altough all
the user and password that I wrote is true(I can login using that
username/passwd using mysql console), but when I change the db host
into 127.0.0.1 mysql_connect will work.
Beside of that I can't make my php script to do I/O operation on
dir/file in the apache /var/www though the permision already own by
apache uid, even if I gave the permision to 777(just for the testing
sake) the I/O operation still wont work.
I really confuse what else to do :'(
I'm using SuSE 10, Apache/2.0.54, and php 4.5 (it's all from standard
rpm that provided by SuSE)

View Replies !
Mysql_connect Problem ...
this is the code:

$user = "user";
$pass = "";
$connect = mysql_connect('localhost',$user,$pass);
or die('could not connect: '. mysql_error());

mysql_close($connect);

i'm a beginer, and i just want to see if i could connect to server.
on pypmyadmin i set the following for the user@localhost:

password: No
global privileges: all privileges
grant: yes ...

and ofcourse i get the warning: mysql_connect()function.mysql-connect]:
Access denied for user 'user'@'localhost' error on the connect string line.

View Replies !
Mysql_close For Every Mysql_connect?
after all the pages of website have to interact with the database so for each page i have a mysql_connect, now if i jump to another page (link), this new one again perform an mysql_connect and so on, so maybe for 10 mysql_connect just 1 mysql_close is executed.

View Replies !
Mysql_connect Fails
i'm baffled. or maybe missing the obvious ....

when requesting a particular page, which attempts to connect to my MySQL
server, at least one user receives the 'Can't connect ...' message:

Warning: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2) in /usr/www/users/.../xyz.inc.php on line 108

line 108 of the included file is:

$link = mysql_connect ($h, $u, $p) ;

the user has no problem with the rest of the site, but always has this
problem if the page requested attempts to connect to the server.

no other user has reported the problem and this user is reliable.

i really can't see how the user's browser or firewall could cause this,
but ....

View Replies !
Multiple Mysql_connect
I need more than one mysql_connect on the same page, do I need to name them different? If so how?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved