473,326 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

PHP5 and MySQL

Looking at the list of changes made in PHP5 one of them is

"Removed the bundled MySQL client library"

Does anyone know exactly what this means? I assume we will still be able to
code for MySQL as we do now?

Thanks

Hamilton
Jul 16 '05 #1
6 4735
Yes, but you need to specify the client library at compilation using
--with-mysql=/usr/local (that's the default path I think)

Spidah wrote:
Looking at the list of changes made in PHP5 one of them is

"Removed the bundled MySQL client library"

Does anyone know exactly what this means? I assume we will still be able to
code for MySQL as we do now?

Thanks

Hamilton


Jul 16 '05 #2
On Thu, 31 Jul 2003 10:07:59 +1200, "Spidah" <no****@eggstra.co.nz>
wrote:
Looking at the list of changes made in PHP5 one of them is

"Removed the bundled MySQL client library"
Previously PHP came with the client portions of MySQL included in the
distribution. This is no longer the case (apparently because of
licensing issues).
Does anyone know exactly what this means? I assume we will still be able to
code for MySQL as we do now?


Yes.

Just because a MySQL client isn't included, this does not mean that
MySQL support has been dropped - not at all, the MySQL PHP extension
is there as before, and an improved version based on MySQL 4.1 is in
development (the mysqli extension).

All it means is you have to have an existing MySQL client installed
(if your MySQL database is on the same machine then you've already got
it, if not then it's no great hardship to install it), and you specify
--with-mysql when compiling PHP, or possibly pass it the path to the
client libraries if it's in a non-standard location.

The situation in the Windows precompiled .zip version for PHP5beta1
appears confused at the moment, as they've included the MySQL client
libraries, but not included the MySQL PHP extension. I can't see any
reason why this can't be worked out before PHP5 comes out of beta.

Looking in the latest php5 .zip package from snaps.php.net, that does
now appear to include the php_mysql.dll PHP extension. (And also,
still, the MySQL client library).

[ What's the betting that this'll be the new FAQ to replace
register_globals ;-p ]

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 16 '05 #3
Thanks to both respondents for the clarification.

Sounds like the new regime will be much as I thought.

Of course, I can't actually see how licensing issues would be behind the
change when both PHP & MySQL(most versions) are both open source and
provided free of charge. Presumably the dll included in the latest builds of
PHP5 is to ensure support for at least the free versions of MySQL is
continued as before.

Hamilton

http://www.laughland.biz
"the web site for web sites"

"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:pj********************************@4ax.com...
On Thu, 31 Jul 2003 10:07:59 +1200, "Spidah" <no****@eggstra.co.nz>
wrote:
Looking at the list of changes made in PHP5 one of them is

"Removed the bundled MySQL client library"


Previously PHP came with the client portions of MySQL included in the
distribution. This is no longer the case (apparently because of
licensing issues).
Does anyone know exactly what this means? I assume we will still be able tocode for MySQL as we do now?


Yes.

Just because a MySQL client isn't included, this does not mean that
MySQL support has been dropped - not at all, the MySQL PHP extension
is there as before, and an improved version based on MySQL 4.1 is in
development (the mysqli extension).

All it means is you have to have an existing MySQL client installed
(if your MySQL database is on the same machine then you've already got
it, if not then it's no great hardship to install it), and you specify
--with-mysql when compiling PHP, or possibly pass it the path to the
client libraries if it's in a non-standard location.

The situation in the Windows precompiled .zip version for PHP5beta1
appears confused at the moment, as they've included the MySQL client
libraries, but not included the MySQL PHP extension. I can't see any
reason why this can't be worked out before PHP5 comes out of beta.

Looking in the latest php5 .zip package from snaps.php.net, that does
now appear to include the php_mysql.dll PHP extension. (And also,
still, the MySQL client library).

[ What's the betting that this'll be the new FAQ to replace
register_globals ;-p ]

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

Jul 16 '05 #4
> Of course, I can't actually see how licensing issues would be behind the
change when both PHP & MySQL(most versions) are both open source and
provided free of charge. Presumably the dll included in the latest builds of PHP5 is to ensure support for at least the free versions of MySQL is
continued as before.


Reminiscient of George Orwell's Animal Farm, some licenses are more "free"
than others. MySQL ships with a GPL license, which does not play nicely
with PHP's BSD-style license. (GPL would seem to imply that the simple act
of linking PHP to the MySQL client libraries would make PHP a derivative
work of MySQL... ya, okay.)

Not all open-source projects are created equal. :-)

For more information on the MySQL / PHP debundling and license issues, have
a look at http://www.phparch.com/mysql/

HTH.
Pete.

--
Peter James
pe***@phparch.com

php|architect
The Magazine for PHP Professionals
http://www.phparch.com
Jul 16 '05 #5
Exactly what does this mean for PHP scripters?

If I write a PHP script that uses MySQL as its database engine is my script
considered a derivative work of MySQL (meaning I need a commercial MySQL
licence if I want to sell the script)?

Regards
Hamilton
"Peter James" <pe***@shaman.ca> wrote in message
news:vi************@corp.supernews.com...
Of course, I can't actually see how licensing issues would be behind the
change when both PHP & MySQL(most versions) are both open source and
provided free of charge. Presumably the dll included in the latest
builds of
PHP5 is to ensure support for at least the free versions of MySQL is
continued as before.
Reminiscient of George Orwell's Animal Farm, some licenses are more "free"
than others. MySQL ships with a GPL license, which does not play nicely
with PHP's BSD-style license. (GPL would seem to imply that the simple

act of linking PHP to the MySQL client libraries would make PHP a derivative
work of MySQL... ya, okay.)

Not all open-source projects are created equal. :-)

For more information on the MySQL / PHP debundling and license issues, have a look at http://www.phparch.com/mysql/

HTH.
Pete.

--
Peter James
pe***@phparch.com

php|architect
The Magazine for PHP Professionals
http://www.phparch.com

Jul 16 '05 #6
I think no.
Check out: http://www.nusphere.com/products/lib...401openmag.pdf
(a lawyer's view on these matters)

That being said, the Mysql license page contains some fuzzy-looking
language to the effect that if your application can only use MySQL you
may have to pay a license fee, but not if your application could
(theoretically) use a different DB package. Sort of funny.

Using PEAR DB, and staying away from MySQL-specific syntax should
alleviate that concern, anyway.

Best, Mattias

Spidah wrote:
Exactly what does this mean for PHP scripters?

If I write a PHP script that uses MySQL as its database engine is my script
considered a derivative work of MySQL (meaning I need a commercial MySQL
licence if I want to sell the script)?

Regards
Hamilton
"Peter James" <pe***@shaman.ca> wrote in message
news:vi************@corp.supernews.com...
Of course, I can't actually see how licensing issues would be behind the
change when both PHP & MySQL(most versions) are both open source and
provided free of charge. Presumably the dll included in the latest


builds
of
PHP5 is to ensure support for at least the free versions of MySQL is
continued as before.


Reminiscient of George Orwell's Animal Farm, some licenses are more "free"
than others. MySQL ships with a GPL license, which does not play nicely
with PHP's BSD-style license. (GPL would seem to imply that the simple


act
of linking PHP to the MySQL client libraries would make PHP a derivative
work of MySQL... ya, okay.)

Not all open-source projects are created equal. :-)

For more information on the MySQL / PHP debundling and license issues,


have
a look at http://www.phparch.com/mysql/

HTH.
Pete.

--
Peter James
pe***@phparch.com

php|architect
The Magazine for PHP Professionals
http://www.phparch.com



Jul 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Christoph Nothdurfter | last post by:
Hallo! I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the beta yet). Does anybody know? Thank you, -Christoph
4
by: Philipp Lenssen | last post by:
OK, I can get PHP5 running on Apache 2 installed on Windows XP Home Edition. Now I want to add MySQL4 to the package. I installed it but I'm not sure what to do now. My PHP5 scripts are running...
0
by: gunzip | last post by:
I want to setup PHP5 to access MySQL 4.0 on the local (Fedora 2) machine and 4.1 on a remote (OS X) machine. I've compiled PHP5 successfully using '--with-mysql=/usr' to find the local MySQL 4.0...
12
by: Sarah Tanembaum | last post by:
Though I installed MySQL5 and PHP5, how come my phpinfo() shows as follow: MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.57 <<<<<<<<<<<<<<< ...
0
by: Roy Shaw | last post by:
When configuring PHP5 (5.0.3) to use the mysqli libraries I get a "No such file or directory" from the configure script. My goal is to get PHP5 running with mysql 4.1.09 with both the mysql and...
1
by: Mike | last post by:
Last weekend I decided to install Apache 2.0.53-win32-x86-no_ssl PHP 5.0.3 Smarty 2.6.7 MySQL essential-4.1.10-win32 I have Apache up (Port 80 blocked at the router and firewall!) and I have...
0
by: Jason | last post by:
Hi I've been looking at the upcoming PHP5 with some excitement -- well, until tonight. It seems support for MySQL in PHP5 will be dropped, or that is to say; support for MySQL 4 and later will...
1
by: Nospam | last post by:
I am trying to get mysql 4, php5, and apache to work on my winxp sp2 comp, unfortunately even though php5 and apache seems to work ok I am unable to utilise mysql with php and apache, I have yet to...
8
by: Tony B | last post by:
Hi, I'm trying out my local copy of a site that uses php4, mysql,apache2. I've moved it from a php4 machine to a php5 machine, and it doesn't work at all now. A couple of other php4 sites I've...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.