473,378 Members | 1,482 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,378 software developers and data experts.

[PHP 5 MySQL 5 Apache2 win32]Hi everybody, I'm really stuck

Am I the only one on this planet to try:

PHP 5
MySQL 5
Apache 2

On Windows XP no firewall

With Symantec Norton Internet

I got apache 2 and PHP 5 to work fine.

Previously, using a package called Wamp 5 ( PHP5, Apache 1.3., MySQL 4)
, I managed to read a table in a PHP page.

No I got an error message at the first MYSQL function:

$database = mysql_connect( $server, $user, $password )

PHP complains that he doesn't know this function.

I have these lines in the php.ini file:
extension_dir = "c:\php\ext"
and both
extension=php_mysqli.dll
extension=php_mysql.dll
just in case he wants to pick one.

Also I copied this dll in c:\windows\system32
libmysql.dll

So I'm really at a loss, and frustrated, I feel like I done my homework
and got an F--.

I really do need MySQL 5 for the triggers and I don't feel like
configuring Apache 1.3 for security now and having to do it again later
for Apache 2 from scratch.

I'm ready to everything, even reading some wikipedia faq if I have to.

PPPlease help!!

Feb 21 '06 #1
12 2144
universalbitmapper wrote:
Am I the only one on this planet to try:

PHP 5
MySQL 5
Apache 2

On Windows XP no firewall

With Symantec Norton Internet

I got apache 2 and PHP 5 to work fine.

Previously, using a package called Wamp 5 ( PHP5, Apache 1.3., MySQL 4)
, I managed to read a table in a PHP page.

No I got an error message at the first MYSQL function:

$database = mysql_connect( $server, $user, $password )

PHP complains that he doesn't know this function.

I have these lines in the php.ini file:
extension_dir = "c:\php\ext"
and both
extension=php_mysqli.dll
extension=php_mysql.dll
just in case he wants to pick one.

Also I copied this dll in c:\windows\system32
libmysql.dll

So I'm really at a loss, and frustrated, I feel like I done my homework
and got an F--.

I really do need MySQL 5 for the triggers and I don't feel like
configuring Apache 1.3 for security now and having to do it again later
for Apache 2 from scratch.

I'm ready to everything, even reading some wikipedia faq if I have to.

PPPlease help!!

A couple of things..
1. when you say 'PHP complains that he doesn't know this function', is
that from running from the command line or from apache?
2. If apache, try moving the libmysql.dll to the apache2/bin directory.
3. If apache, try running a small mysql php file from the command line.
4. What does php_info() tell you?

-david-

Feb 21 '06 #2
universalbitmapper,

Dude, just use MSAS 4.5.2 or whatever release is out now! It's the
easiest way to get all three services up and running.
~pizzy

Feb 21 '06 #3
Hi,

many thanks for your reply,

I'll try points 2 and 3 ASAP but I never ran PHP/MySQL from the command
line, so it's going to take some time.

I have a full .php script that connects to MySQL, serves a query,
extracts the results and displays them in a table and is working on
MySQL 4, that come from a package called WAMP.

Now when I run the exact same script with mysql 5 I get the message in
the Internet Explorer 6 window:

Fatal error: Call to undefined function mysql_connect() in
C:\jbmorla\data\sources\php\www\database\database. php on line 25

In the Wamp site faq, there is a question, why don't u propose MySQL 5
and they reply it's because now MySQL 5 doesnot accept password
authentification, so you have to use mysqli.dll instead of mysql.dll.

Point 4 php_info()
I don't know this function, I'll try it now, I'll keep you posted.

Feb 21 '06 #4
universalbitmapper,

Dude, just use MSAS 4.5.2 or whatever release is out now! It's the
easiest way to get all three services up and running.
~pizzy

Feb 21 '06 #5
Hi,
I just visited the mamboserver site, I did not find any mention of php,
mysql or apache.
But I'll download it, just to check what's in the zip.
Many thanks.

Feb 21 '06 #6
Hi,
about phpinfo(),
I just ran phpinfo(), which should return the full configuration, it
says nothing about MySQL.
I'm pretty sure it's just a question of having the right .dll in the
right directory and some settings in the php.ini.

Feb 21 '06 #7
universalbitmapper wrote:
Hi,
about phpinfo(),
I just ran phpinfo(), which should return the full configuration, it
says nothing about MySQL.
I'm pretty sure it's just a question of having the right .dll in the
right directory and some settings in the php.ini.

If phpinfo does not say anything about MySQL, then the mysql dll is not
being loaded. Typically that means that the php.ini file is not being
read or has not been set up correctly.

Do the other settings you are seeing from phpinfo() make sense? Do they
correspond to the php.ini file? Is there any chance there is another
instance of php on the system?

Also, is there a php_mysql.dll and php_mysqli.dll in c:\php\ext?

-david-

Feb 21 '06 #8
universalbitmapper,

Google search "MSAS Mambo Stand Alone Server" for it... :-) I found it
on http://mamboxchange.com/frs/?group_id=106 ... There's a
msas-web-installer-45232.

~pizzy

Feb 21 '06 #9
I personally don't like the template idea of Mambo because I like to
code my own stuff, but this MSAS is really an easy way to get a web
server up and running in minutes.

Feb 21 '06 #10
Hi, I tried it too, in the end I found that PHP5 no longer supports
MySQL as a built-in component like it used to. The reason for this is
that MySQL gone fully commercial since version 4, PHP doesn't ship with
the driver any longer. The MySQL dll's packed with PHP now only
supports MySQL 3.

It's been such a long time ago that I may have gotten some facts or
info wrong here.

Feb 22 '06 #11
Hi, 200602221028

After a late nite of research I got a message indicating that there is
a new version of WAMP that supports both PHP 5 and MySQL 5.
I just installed it and tried /localhost/ and got the wamp welcome
page. PhPMyAdmin is also included, which spares a lot of make hassle.
Now I'll try MySQL 5.
I'll keep you posted.

Feb 22 '06 #12
Yes! Yes! Yes!

I got the database.php script running first try, MySQL5, PHP 5, Apache
2.
Kudos for the WAMP project.
The world is my fried oyster.

Many thanks for your replies

Feb 22 '06 #13

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

Similar topics

13
by: Gurtaj | last post by:
Hello! I am working with PHP and MySQL in a proyect with some partners of our university, and we are thinking about building some classes and use inheritance and polymorphism. The problem is...
7
by: AF | last post by:
I am a real novice to php and MySQL, with about a week's worth of reading and self tutoring. I have an urgent need to publish a database of information and need some guidance on how to do this. ...
22
by: godfader | last post by:
I read somewhere that asp is much more better.if someone has plan to do more complex job (like web shop or with databases) than it is better for that person to learn asp. is that true? why? ...
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
4
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the...
66
by: flarosa | last post by:
Hi, I'm wondering if I can get a reasonably civil (without starting any huge wars) opinion on how server-side PHP compares to server-side Java. I've been strictly a Java developer for almost...
4
by: Viator | last post by:
Hi folks, I have a basic question. When I do object-oriented programming using C++ or Java, all my objects reside in RAM. I do not have to think about storing and retrieving them, because they...
7
by: Daniel Klein | last post by:
Seeing as PHP is a dynamic language (like Python and Smalltalk), I don't see what use an Interface has other than to satisfy a contract. Why were they even added to the language? Can anyone think...
69
by: notbob | last post by:
I'm not posting this just to initiate some religious flame war, though it's the perfect subject to do so. No, I actaully want some serious advice about these two languages and since I think usenet...
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.