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
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
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
[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
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
[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:
]
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
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
* 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
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
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
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()??
);;
---
-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
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
* 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
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
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
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
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
]
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
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
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
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
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
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
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()
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
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
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
--- 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
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 =
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
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
]
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
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
, 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
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
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
: [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
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
[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
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
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
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
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
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
201 - 246 of 246 matches
Mail list logo