note 54414 added to ref.mysql
| From: | jimmy dot a dot gunawan at gmail dot com | Date: | Sun, 03 Jul 2005 19:18:49 +0000 |
| Subject: | note 54414 added to ref.mysql | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91374@lists.php.net to get a copy of this message | ||
I almost desperately connect my apache 2.0.54 winversion to PHP 5.0.4 and MYSQL 4.1.12 under
windows, since there are lack of any accurate information to setup them properly.
If you got any error message said: "Call to undefined function mysql_connect()", here is
the right tips.
Apache installed in c:\apache\apachegroup
PHP installed in c:\php
Mysql installed in c:\mysql
1. Find and add c:\apache\apachegroup\conf\httpd.conf
with:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
2. Go to php directory c:\php then rename php.ini-dist to php.ini
(or make a new php.ini based on old php.ini file),
make sure we set the right extension:
extension_dir = "c:\php\ext"
extension=php_mysql.dll
If you setup an php script that call function php_info();
and you can find table:
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.7
that mean the mysql.dll properly attached to suppport the php, happy SQL-ing
----
Manual Page -- http://www.php.net/manual/en/ref.mysql.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54414
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54414&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54414&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54414&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54414&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54414&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54414&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54414&report=yes
Search -- http://master.php.net/manage/user-notes.php