Hi,
I am new to php and I'm testing php connectivity to mysql. I created a
php script using the php.net sample. The script uses the mysql_connect
method and when I execute it I get the error:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/testPHP/testMysql.php on line 7
I have mysqld ver 4.0.20 and php 4.2.2 that came bundled with apache
(that came bundled with RH9).
Thanks for the help,
-Rex 7 2677
>I am new to php and I'm testing php connectivity to mysql. I created a php script using the php.net sample. The script uses the mysql_connect method and when I execute it I get the error:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/testPHP/testMysql.php on line 7
I have mysqld ver 4.0.20 and php 4.2.2 that came bundled with apache (that came bundled with RH9).
Not all configurations of PHP support Oracle. Or Postgresql. Or
MySQL. It looks like your version doesn't. Check the output of
phpinfo() to see how your PHP is configured. You may need to build
the configuration you need or find a binary distribution that has
what you need already configured in.
Gordon L. Burditt
"Frogman" <rf*@rocketmail .com> wrote in message
news:d7******** *************** ***@posting.goo gle.com... Hi,
I am new to php and I'm testing php connectivity to mysql. I created a php script using the php.net sample. The script uses the mysql_connect method and when I execute it I get the error:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/testPHP/testMysql.php on line 7
I have mysqld ver 4.0.20 and php 4.2.2 that came bundled with apache (that came bundled with RH9).
I had that configuration at one time. There is an RPM (or 2) you need to
download and install from RedHat that provides the MySQL connectivity. I
don't remember what it was.
I eventually wanted to upgrade my PHP to get the newer GD functions. Sad to
discover that getting PHP upgraded via the RPM route was like pulling teeth.
Too many dependencies from where you are now. I finally just installed
Fedora Core 1 and it resolved all my issues. Then, I noticed that the Update
mechanism in Fedora Core 1 indicated that a newer version of PHP was
available and I ran the update. It went smoothly.
- Virgil
Yes you're absolutely right. I tried upgrading my PHP with the latest
RPM and the dependencies goes on and on. I'm planning on just
installing Fed core 2 on my RH9 install.
Did you install Fedora on top of RH?
-Ray
"Virgil Green" <vj*@DESPAMobsy dian.com> wrote in message news:<4C******* **********@news svr23.news.prod igy.com>... "Frogman" <rf*@rocketmail .com> wrote in message news:d7******** *************** ***@posting.goo gle.com... Hi,
I am new to php and I'm testing php connectivity to mysql. I created a php script using the php.net sample. The script uses the mysql_connect method and when I execute it I get the error:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/testPHP/testMysql.php on line 7
I have mysqld ver 4.0.20 and php 4.2.2 that came bundled with apache (that came bundled with RH9).
I had that configuration at one time. There is an RPM (or 2) you need to download and install from RedHat that provides the MySQL connectivity. I don't remember what it was.
I eventually wanted to upgrade my PHP to get the newer GD functions. Sad to discover that getting PHP upgraded via the RPM route was like pulling teeth. Too many dependencies from where you are now. I finally just installed Fedora Core 1 and it resolved all my issues. Then, I noticed that the Update mechanism in Fedora Core 1 indicated that a newer version of PHP was available and I ran the update. It went smoothly.
- Virgil
On 25 Jun 2004 09:02:38 -0700, rf*@rocketmail. com (Frogman) wrote: Yes you're absolutely right. I tried upgrading my PHP with the latest RPM and the dependencies goes on and on. I'm planning on just installing Fed core 2 on my RH9 install.
If you don't mind taking the extra time, you should compile everything
you want to use (apache, php, mysql, ssl etc) from the source.
It's worth it. Especially at upgrade time.
Did you install Fedora on top of RH?
That'd be a bad idea. Security issues alone make a fresh install the
best install.
Oh, and could you please not top post? Thx. :)
--
gburnore@databa six dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
=============== =============== =============== =============== ===============
Want one? GET one! http://www.databasix.com
=============== =============== =============== =============== ===============
"Frogman" <rf*@rocketmail .com> wrote in message
news:d7******** *************** *@posting.googl e.com... "Virgil Green" <vj*@DESPAMobsy dian.com> wrote in message
news:<4C******* **********@news svr23.news.prod igy.com>... "Frogman" <rf*@rocketmail .com> wrote in message news:d7******** *************** ***@posting.goo gle.com... Hi,
I am new to php and I'm testing php connectivity to mysql. I created a php script using the php.net sample. The script uses the mysql_connect method and when I execute it I get the error:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/testPHP/testMysql.php on line 7
I have mysqld ver 4.0.20 and php 4.2.2 that came bundled with apache (that came bundled with RH9).
I had that configuration at one time. There is an RPM (or 2) you need to download and install from RedHat that provides the MySQL connectivity. I don't remember what it was.
I eventually wanted to upgrade my PHP to get the newer GD functions. Sad
to discover that getting PHP upgraded via the RPM route was like pulling
teeth. Too many dependencies from where you are now. I finally just installed Fedora Core 1 and it resolved all my issues. Then, I noticed that the
Update mechanism in Fedora Core 1 indicated that a newer version of PHP was available and I ran the update. It went smoothly.
- Virgil Yes you're absolutely right. I tried upgrading my PHP with the latest RPM and the dependencies goes on and on. I'm planning on just installing Fed core 2 on my RH9 install.
Did you install Fedora on top of RH?
-Ray
As I recall, I did indeed install Fedora 1 over RH9. It's my local box and
is only for playing, so I just took the quickest route. I had other things
to do at the moment.
- Virgil
Sorry but I'm not sure what you mean by 'top post'. Can you explain. Thanks.
Gary L. Burnore <gb******@datab asix.com> wrote in message news:<cb******* ***@blackhelico pter.databasix. com>... On 25 Jun 2004 09:02:38 -0700, rf*@rocketmail. com (Frogman) wrote:
Yes you're absolutely right. I tried upgrading my PHP with the latest RPM and the dependencies goes on and on. I'm planning on just installing Fed core 2 on my RH9 install.
If you don't mind taking the extra time, you should compile everything you want to use (apache, php, mysql, ssl etc) from the source.
It's worth it. Especially at upgrade time.
Did you install Fedora on top of RH?
That'd be a bad idea. Security issues alone make a fresh install the best install.
Oh, and could you please not top post? Thx. :)
-- gburnore@databa six dot com --------------------------------------------------------------------------- How you look depends on where you go. --------------------------------------------------------------------------- Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³ | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³ DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³ | ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³ Black Helicopter Repair Svcs Division | Official Proof of Purchase =============== =============== =============== =============== =============== Want one? GET one! http://www.databasix.com =============== =============== =============== =============== ===============
In article <d7************ **************@ posting.google. com>, Frogman wrote: Sorry but I'm not sure what you mean by 'top post'. Can you explain. Thanks.
So i did a little websearch.... typed in "top post" at http://www.google.com *bam* got the answer.
--
Tim Van Wassenhove <http://home.mysth.be/~timvw> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: BT |
last post by:
Hi .. a newbie question.
I get the following error:
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/index.php on line 3.
I have the following RPMS installed on RH7.2
MySQL-client-4.0.14-0 I would really appreciate it.
MySQL-shared-4.0.14-0
MySQL-server-4.0.14-0
MySQL-devel-4.0.14-0
|
by: Frobinrobin |
last post by:
I am running Win2k3 Server and when I try to use the mysql_connect
function I am getting an error:
Fatal error: Call to undefined function mysql_connect() in
C:\Inetpub\wwwroot\programs\index.php on line 8
Now, I def know I've configured my php.ini correctly (its literally the
same as my XP machine) and I know that mysql works fine with PHP as I
can run it from the command line :D
I've got the files (tried in multiple places - but...
|
by: Sugapablo |
last post by:
I have a small test script connecting to a MySQL database. It seems to
work, unless I try to use the resource link identifier returned by
mysql_connect();
This works and returns all the rows in the table:
<?php
include("../config.php");
$dbi = mysql_connect($dbhost,$dbuname,$dbpass);
|
by: ezmiller |
last post by:
Hi,
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:\Data\Now\ContractWork\FriendsKnitting\LiveWebSite\friends_emailsubmit.php
on line 11
|
by: avenpace |
last post by:
Hi,
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: GD |
last post by:
Hi All,
I've got MySQL 5.0.21 running on Windows Server 2003, and php running
on Apache on a Linux box (Fedora Core 4).
Previously when the pages were running on an IIS server the connection
was succesful, now I get:
Can't connect to MySQL server on 'SERVER' (13)
|
by: hugo |
last post by:
Hello people,
There is a problem is that mysql_connect() somehow caches last sessions
IP and is not using the one which you put into host place.
Has anyone made mysql_connect() from php to multiple SQL servers so
that script tries to connect to resolved IPs until it finds one that
works?
I have set up DNS so that on request sql.example.com it returns two
|
by: criveraf |
last post by:
Hi there,
I wasn't sure where to put this question, since it deals with both PHP and MySQL. I apologize if this is not the correct forum for this.
I am working with a simple PHP application using MySQL at the data layer.
This is on a Windows XP machine, using IIS 6.0, MySQL 5.0, PHP 5.
The problem I am having is that a call to mysql_connect is not working, it is not doing anything at all. I'm not getting any error messages, or...
|
by: Ralf Seliger |
last post by:
Hi,
I hope someone here has a clue as to what is going on since I am
completely baffled by the following:
I'm working with a PHP/MySQL-web application called Moodle. When this
application is started from a web browser, one of the first things to
happen is a call to mysql_connect which succeds without any problems.
One component of moodle is a so called chat daemon which is just another
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |