|
|
|
|
![]() ![]() |
Feb 17 2008, 05:11 PM
Post
#1
|
|
|
Member [ Level 1 ] Group: Members Posts: 44 Joined: 5-February 08 Member No.: 28,155 |
I have problems running PHP MySQL function in a windows set web environment. PhP scripts are executed but if I try to use mysql connect and other like functions I get a blank window (while using the browser).
The command line client is working...I've added the path to libmysql.dll and the extension=php_mysql.dll in the php.ini. |
|
|
|
Feb 17 2008, 06:37 PM
Post
#2
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 1,886 Joined: 16-August 05 Member No.: 7,896 |
Wich Apache PHP Mysql environment are you using ?
Personnally I use easyphp : very easy to install, it sets up anything, works fine each time I install it. I use for testing my phpbb3 sites, whether with the local mysql database or with a remote Oracle database. It's free, get it from here : http://www.easyphp.org/index.php QUOTE EasyPHP is a complete package allowing to use all the power and the flexibility that offers the dynamic language PHP. Package includes an Apache server, a MySQL database, PHPMyAdmin as well as easy development tools for web sites and applications. I tried other distros like XAMP, did not work or simply crashed my windows. |
|
|
|
Feb 18 2008, 12:28 AM
Post
#3
|
|
|
Premium Member Group: [HOSTED] Posts: 442 Joined: 5-November 06 Member No.: 17,016 |
WAMP http://www.wampserver.com/en/, was easy to install and use also. I've been using for quite a few years, before I learn how to install each component individually. I need to do so due to the fact that sometime I need to use particular version of the component for my project, which these distros cannot provide.
|
|
|
|
Feb 18 2008, 03:59 AM
Post
#4
|
|
|
Member [ Level 1 ] Group: Members Posts: 44 Joined: 5-February 08 Member No.: 28,155 |
I bumped on this combo server applications but I preferred to use the raw distributions...I would appreciate if you could check for me the config files if there are any (e.g. httpd.conf of Apache and the php.ini ) and give me the lines including mysql, safe there are no personal or sequrity issue therewith!
Thanks. |
|
|
|
Feb 18 2008, 06:05 AM
Post
#5
|
|
|
Member - Active Contributor Group: [HOSTED] Posts: 91 Joined: 26-December 07 From: Venezuela Member No.: 27,134 |
the only problem I see with using WAMP is that they don't allow you to change the password for the mysql user, i remember me looking through lots of documentation to be able to change the password
they should have that option on the setup... other than that, super easy to set up and run!.. in less than 5min |
|
|
|
Feb 18 2008, 11:16 AM
Post
#6
|
|
|
the Q Group: [HOSTED] Posts: 980 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
I used to go with installing everything myself, Apache, PHP, MySQL on Windows and Linux, it was quite easy, but now on Windows I am using Wampserver and I really think that it's great, it works, the default settings are good and what I like about it that in some mouse clicks you can change between PHP, MySQL and Apache versions, by doing that I still didn't get any really big errors, so it is kind of stable.
Used to use EasyPHP too, before I tried WAMP5 which now is called Wampserver, but EasyPHP wasn't updated frequently and somehow I didn't like it, but the main thing it worked.. So when you know what is Apache, Mysql and PHP and know how to install them yourself, I think that making your live easy, you could just go with Wampserver |
|
|
|
Feb 18 2008, 02:50 PM
Post
#7
|
|
|
Member [ Level 1 ] Group: Members Posts: 44 Joined: 5-February 08 Member No.: 28,155 |
REsolved.
The problem was the php.ini file - the automatic configuration done by mysql isn't working properly. You need to add some extension caluses in the php.ini file to dynamic libraries that aren't present explicitely....I found an answer - rather a workaround here: http://www.tanguay.info/wamp/installPhp5.php5?step=15 simply add the lines to php.ini: extension=php_mysqli.dll however, this libabry doesn't exists - its fictious in that it can be obtained by renaming php_mysql.dll to php_mysqli.dll (you may find them in the ext folder of your php installation directory) I have them both in the extension clause - now cannot be bothered as to check which one is necessary(some forums say both anyway). I don't know how such a bug can exists? Maybe its a third party stuff interested in promoting their software... |
|
|
|
Feb 18 2008, 03:36 PM
Post
#8
|
|
|
Premium Member Group: [HOSTED] Posts: 442 Joined: 5-November 06 Member No.: 17,016 |
|
|
|
|
Feb 19 2008, 09:38 PM
Post
#9
|
|
|
Super Member Group: [HOSTED] Posts: 713 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 |
REsolved. The problem was the php.ini file - the automatic configuration done by mysql isn't working properly. You need to add some extension caluses in the php.ini file to dynamic libraries that aren't present explicitely....I found an answer - rather a workaround here: http://www.tanguay.info/wamp/installPhp5.php5?step=15 simply add the lines to php.ini: extension=php_mysqli.dll however, this libabry doesn't exists - its fictious in that it can be obtained by renaming php_mysql.dll to php_mysqli.dll (you may find them in the ext folder of your php installation directory) I have them both in the extension clause - now cannot be bothered as to check which one is necessary(some forums say both anyway). I don't know how such a bug can exists? Maybe its a third party stuff interested in promoting their software... You can use both extensions at the same time, i do it without problems, i never use both of them on the same script, but i use them on different scripts and never had problems. Now, if i remember correctly you must use the php_mysqli extension if you want to use the complete functionality offered by MySql 4.1.0 and greater versions, if not you can still use the php_mysql extension because is compatible with it. Best regards, |
|
|
|
Apr 1 2008, 07:48 AM
Post
#10
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 2 Joined: 1-April 08 Member No.: 29,532 |
i just did this yesterday. i manually installed php and uncommented the extension=php_mysql.dll, and then evrything worked fine
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th July 2008 - 06:25 AM |