473,385 Members | 1,570 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,385 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 4740
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...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.