SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Ireland
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I have php and mysql set up and working on windows98. I am using omnihttpd for my server. Could someone tell me what I need to do to make PHP know where mysql is. I think I have to edit the php.ini file or something like that but I'm not sure exactly what to do.

    Php.exe is located at C:\httpd\php
    Php.ini is in the same dir

    Mysql.exe is located at C:\mysql\bin

    Omnihttpd (the server) is located at C:\httpd

    Can someone tell me what I need to change and what to change it to. If you need more info I will post it on request.

    Oh, I did a test to see if PHP could connect to mysql beforehand to see if it was set up correctly and I got this error message:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Fatal error: Call to undefined function: mysql_connect() in C:\HTTPD\HTDOCS\phptest\index.php on line 8
    <HR></BLOCKQUOTE>

    I don't know if that helps anything.
    Anyway thanks in advance for any help.

    ------------------
    Gem
    S I F O X - Giving The Internet A Makeover

  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In your PHP.ini you'll see a section like this:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;
    ; if you wish to have an extension loaded automaticly, use the
    ; following syntax: extension=modulename.extension
    ; for example, on windows,
    ; extension=msql.dll
    ; or under UNIX,
    ; extension=msql.so
    ; Note that it should be the name of the module only, no directory information
    ; needs to go here. Specify the location of the extension with the extension_dir directive above.


    ;Windows Extensions
    extension=php_mysql.dll
    extension=php_nsmail.dll
    extension=php_calendar.dll
    extension=php_dbase.dll
    extension=php_filepro.dll
    extension=php_gd.dll
    extension=php_dbm.dll
    ;extension=php_mssql.dll
    extension=php_zlib.dll
    ;extension=php_filepro.dll
    extension=php_imap4r2.dll
    extension=php_ldap.dll
    extension=php_crypt.dll
    ;extension=php_msql2.dll
    extension=php_odbc.dll
    [/code]

    Remove the ; from the "extension=php_mysql.dll" and you're set.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Ireland
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks d3v I'll try that later. I'll let you know how it works out.

    ------------------
    Gem
    S I F O X - Giving The Internet A Makeover


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •