Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Marek Kilimajer
Binay wrote: Hi all! Its really strange/weird problem for me. it says::: Fatal error: Call to undefined function: mysql_connect() in /home/abcde/dfdfdfd/incfiles/db.inc on line 24 till afternoon site was running fine with all mysql connection . but suddenly its showing that error

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay
i tried mysql_pconnect() also ... but same problem.. - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 7:18 PM Subject: RE: [PHP] mysql_connect() : undefined function [snip] I just upload a simple file containing

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay
it says --without-mysql -- i don know .. how suddenly this can happen Binay - Original Message - From: Sophie Mattoug [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 7:16 PM Subject: Re: [PHP] mysql_connect() : undefined function If you do phpinfo

RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip] i tried mysql_pconnect() also ... but same problem.. [/snip] As the others have suggested, what does it say when you run phpinfo() ? Is this server under your control? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay
it says --without-mysql -- i don know .. how suddenly this can happen Binay - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 7:23 PM Subject: RE: [PHP] mysql_connect() : undefined function [snip] i tried

RE: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Jay Blanchard
[snip] it says --without-mysql -- i don know .. how suddenly this can happen [/snip] Do you own the server or control it? If not, someone else has recompiled PHP without MySQL support and it needs to be re-compiled. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Chris Hayes
] To: [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 7:16 PM Subject: Re: [PHP] mysql_connect() : undefined function If you do phpinfo(), do you see in the section names *Configure Command* this directive: --with-mysql=something ? If not, you must re-compile PHP lwith MySQL support Binay

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Marek Kilimajer
Binay wrote: it says --without-mysql -- i don know .. how suddenly this can happen Binay You might have some other version of php installed that was used instead. Check your startup scripts. ps ax |grep httpd will tell you where apache reads its configuration, is it the one it should

Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): [snip] it says --without-mysql -- i don know .. how suddenly this can happen [/snip] Do you own the server or control it? If not, someone else has recompiled PHP without MySQL support and it needs to be re-compiled. Another option is

[PHP] mysql_connect error

2003-08-25 Thread Mjec
Hi, again this line is causing problems: $h = mysql_connect('localhost',constant(mysql_user),constant(mysql_password)) ; Aparantly a parse error. Idaes? Thanks, Mjec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect error

2003-08-25 Thread John W. Holmes
Mjec wrote: Hi, again this line is causing problems: $h = mysql_connect('localhost',constant(mysql_user),constant(mysql_password)) ; Aparantly a parse error. Idaes? Is there a reason you're using constant()?? Try: $h = mysql_connect('localhost', mysql_user, mysql_password); One thing to

Re: [PHP] mysql_connect error

2003-08-25 Thread Mjec
on 25/08/2003 12:11 PM, John W. Holmes at [EMAIL PROTECTED] wrote: Mjec wrote: Hi, again this line is causing problems: $h = mysql_connect('localhost',constant(mysql_user),constant(mysql_password)) ; Aparantly a parse error. Idaes? Is there a reason you're using constant()??

Re: [PHP] mysql_connect error

2003-08-25 Thread murugesan
);; --- -murugesan - Original Message - From: Mjec [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 25, 2003 7:53 AM Subject: Re: [PHP] mysql_connect error on 25/08/2003 12:11 PM, John W. Holmes at [EMAIL PROTECTED] wrote: Mjec wrote: Hi, again this line

[PHP] mysql_connect() fails randomly

2003-08-18 Thread Jon Drukman
i've got a library file that i require() in all my scripts. it starts with this line: $dbh=mysql_connect() or die(mysql connect failed: . mysql_error()); about 5% of the time, this fails for no apparent reason. it just prints mysql connect failed: with no error message. there's nothing

Re: [PHP] mysql_connect() fails randomly

2003-08-18 Thread Curt Zirzow
* Thus wrote Jon Drukman ([EMAIL PROTECTED]): i've got a library file that i require() in all my scripts. it starts with this line: $dbh=mysql_connect() or die(mysql connect failed: . mysql_error()); The problem is the mysql_error() cant display what the problem is because the connect

[PHP] mysql_connect, client flags, php 4.3, oh my!

2003-07-22 Thread John Manko
mysql_connect() added support for client flags in 4.3+ I'm wondering if there is another method to supply these flags for any php 4.3? thanks, john -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Jean-Christian IMbeault
I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. When I try and connect from php using mysql_connect() I get the following error: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) The server is up and running and I

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread - Edwin -
Hello, Jean-Christian IMbeault [EMAIL PROTECTED] wrote: I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. When I try and connect from php using mysql_connect() I get the following error: Warning: mysql_connect(): Can't connect to local MySQL server through

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Jason Wong
On Thursday 26 June 2003 15:53, Jean-Christian IMbeault wrote: I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. When I try and connect from php using mysql_connect() I get the following error: Warning: mysql_connect(): Can't connect to local MySQL server through

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Didier McGillis
] To: [EMAIL PROTECTED] Subject: [PHP] mysql_connect(): '/tmp/mysql.sock' error Date: Thu, 26 Jun 2003 16:53:22 +0900 I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. When I try and connect from php using mysql_connect() I get the following error: Warning: mysql_connect

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Jean-Christian IMbeault
Jason Wong wrote: Find out where your mysql.sock is and edit php.ini to match. Good idea. The problem was that the installation instructions for MySQL for vague and confusing. I started trying to install from rpm and that didn't work. I then installed from the binary

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread - Edwin -
Jean-Christian IMbeault [EMAIL PROTECTED] wrote: [snip] The problem was that the installation instructions for MySQL for vague and confusing. I started trying to install from rpm and that didn't work. I then installed from the binary and that was hell too. All the problems stemmed from the

[PHP] mysql_connect() -- flags

2003-06-01 Thread Armand Turpel
Hi, Is there any body who have experience with the flags in mysql_connect() in php = 4.3 . Especially the MYSQL_CLIENT_COMPRESS flag. I dont know if it works or not. I cant make any difference. Should php must be compiled with a special flag to get work this? Thanks Armand -- PHP General

[PHP] mysql_connect issue

2003-03-14 Thread Steve Shead
I'm trying to get a small PHP based log reader to run but get this error every time: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/weblog/weblog.php on line 58 Here is the PHP I'm using ... does anyone know what is happening here? ?php /* Simple syslog web viewer by

Re: [PHP] mysql_connect issue

2003-03-14 Thread Philip J. Newman
try mysql_connect(loghost:3306,$username,$password); - Original Message - From: Steve Shead [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 15, 2003 12:14 PM Subject: [PHP] mysql_connect issue I'm trying to get a small PHP based log reader to run but get this error

[PHP] mysql_connect problem..update

2003-01-21 Thread Tom Ray
It turns out after some checking, the other admin on the machine ran a kernel update last week. I hadn't been testing any scripts over the last week myself so I didn't notice the issue until the other day. When I run a function_exists() for mysql_connect it comes back false. When I run phpinfo()

Re: [PHP] mysql_connect problem..update

2003-01-21 Thread Tracy Finifter Rotton
Talk to the other admin. If you're using RPMs, you just need to install the php_mysql RPM, restart apache, and you should be up and running again. If you're compiling PHP from scratch, you'll have to do so again with --with-mysql in the configure command. But, as this is the default when

Re: [PHP] mysql_connect problem..update

2003-01-21 Thread Tom Ray
Thanks, we're going to give that a try. -Original Message- From: Tracy Finifter Rotton [EMAIL PROTECTED] To: Tom Ray [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Tue, 21 Jan 2003 10:25:55 -0800 Subject: Re: [PHP] mysql_connect problem..update Talk to the other admin. If you're using RPMs

[PHP] mysql_connect error

2003-01-20 Thread Tom Ray
Can someone please tell me why I'm getting this error: *Fatal error*: Call to undefined function: mysql_connect() in */webs/tom/www.bohabcentral.com/www/bohabs/auth.php* on line *4 *mysql_connect was working a week or so ago, and I haven't made any changes to the servers configuration. If

Re: [PHP] mysql_connect error

2003-01-20 Thread Chris Shiflett
--- Tom Ray [EMAIL PROTECTED] wrote: Can someone please tell me why I'm getting this error: *Fatal error*: Call to undefined function: mysql_connect() in */webs/tom/www.bohabcentral.com/www/bohabs/auth.php* on line *4 *mysql_connect was working a week or so ago, and I haven't made any

[PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Brian J. Celenza
Hello! When trying to connect to a mysql database under my linux system, I get the following error: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php on line 2 Here is a copy of the code I am using: ? $link =

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Tom Rogers
Hi, Monday, December 9, 2002, 2:29:35 AM, you wrote: BJC Hello! BJC When trying to connect to a mysql database under my linux system, I get the BJC following error: BJC Warning: Can't connect to local MySQL server through socket BJC '/var/lib/mysql/mysql.sock' (2) in /webroot/dbconnect.php on

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Jason Wong
On Monday 09 December 2002 00:29, Brian J. Celenza wrote: Hello! When trying to connect to a mysql database under my linux system, I get the following error: How did you install your apache, mysql php? Source/RPM? If RPM, where did you get the RPMs? IIRC Redhat's packaging of MySQL differs

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Brian J. Celenza
] Sent: Sunday, December 08, 2002 11:53 AM Subject: Re: [PHP] mysql_connect problem under RedHat 8.0 ? On Monday 09 December 2002 00:29, Brian J. Celenza wrote: Hello! When trying to connect to a mysql database under my linux system, I get the following error: How did you install your

[PHP] mysql_connect

2002-08-04 Thread Mantas Kriauciunas
Hey php-general, $db_host = localhost; how do i set with ip ? it works with localhost but it doesn't work: $db_host = IP.IP.IP.IP; or $db_host = Http://IP.IP.IP.IP/;; P.S IP i set numbers P.S.S i need to connet to mysql on other server thanks, sorry for dumb

RE: [PHP] mysql_connect

2002-08-04 Thread Paul Dale
, August 04, 2002 5:29 AM To: [EMAIL PROTECTED] Subject: [PHP] mysql_connect Hey php-general, $db_host = localhost; how do i set with ip ? it works with localhost but it doesn't work: $db_host = IP.IP.IP.IP; or $db_host = Http://IP.IP.IP.IP/;; P.S IP i set numbers

[PHP] mysql_connect()

2002-06-08 Thread Jason Soza
I posted this to the MySQL list as well, but haven't gotten an answer so far. Just wonderin gif it may be a PHP problem I'm looking at. Anyway, this is the text of the message I posted to MySQL, with a few edits: I don't know if this is more of a PHP thing or a MySQL user issue that I'm having

RE: [PHP] mysql_connect()

2002-06-08 Thread John Holmes
Subject: [PHP] mysql_connect() I posted this to the MySQL list as well, but haven't gotten an answer so far. Just wonderin gif it may be a PHP problem I'm looking at. Anyway, this is the text of the message I posted to MySQL, with a few edits: I don't know if this is more of a PHP thing

Re: [PHP] mysql_connect() help

2002-03-09 Thread Ellis M. Mendez-Hidaka
: [PHP] mysql_connect() help Greetings, I'm a newbie with apache and PHP. I was able to setup apache, php and mysql in RH Linux and have my website running. I was trying to test the BD connectivity capabilities of PHP but I keep receiving this error message: { Warning: Can't connect

[PHP] mysql_connect() help

2002-03-08 Thread Ellis M. Mendez-Hidaka
Greetings, I'm a newbie with apache and PHP. I was able to setup apache, php and mysql in RH Linux and have my website running. I was trying to test the BD connectivity capabilities of PHP but I keep receiving this error message: { Warning: Can't connect to local MySQL server through socket

Re: [PHP] mysql_connect() help

2002-03-08 Thread ruler
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 08, 2002 8:43 PM Subject: [PHP] mysql_connect() help Greetings, I'm a newbie with apache and PHP. I was able to setup apache, php and mysql in RH Linux and have my website running. I was trying to test the BD connectivity capabilities

[PHP] mysql_connect failes w/ variables and defines. why?

2001-09-22 Thread Dana Holt
Does anyone know why if I pass mysql_connect() or mysql_select_db() parms as variables or defined constants the connection always fails? If I copy and paste the values I assign to the variable or the defined constant it works like a champ. Can anyone explain this? Thanks in advance. -- Dana

[PHP] mysql_connect() error

2001-04-28 Thread Siim Einfeldt
I get this kind of error when trying to connect to mysql - http://myhost/~myname/baas.php What migth be the problem? The error exists on all accounts. PS: Drop a line to my private email as well

Re: [PHP] mysql_connect() with timeout

2001-03-06 Thread php3
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from [EMAIL PROTECTED] Tue, 6 Mar 2001 01:29:52 -0500 Frankly, I don't know how people would otherwise handle connections to MySQL since the attempts could, potentially, block forever. I guess because the

[PHP] mysql_connect or mysql_pconnect or DEATH ???

2001-03-06 Thread Marian Vasile
I have a chat software working on www.jumatateata.ro The problem is that all the time I get mysql sessions opened and I don't understand. I used mysql_connect (at the beggining of every script) and mysql_close in the end. The ISP told me that still remain mysql sessions opened. Then I used

[PHP] mysql_connect() with timeout

2001-03-05 Thread php
A few months ago I modified PHP 3.0.16 to add an optional fourth parameter to the mysql_connect() functions. The parameter specifies a timeout (in seconds) on the connect(). The patch simply uses the existing mysql_options() function in the MySQL library so it's quite stable code. I'm in the

<    1   2   3