SitePoint Sponsor

User Tag List

Results 1 to 19 of 19
  1. #1
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Fatal error: Call to undefined function mysql_connect()

    Please help me correct this. Thanks.


    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <?php
    $user = "cbplus";
    $pass = "xidong74";
    $db = "jokes";
    $link = mysql_connect ("localhost:3306", $user, $pass);
    if (!$link)
    die( "Couldn't connect to MySQL" );
    print "<p>Successfully connected to server/p>";
    mysql_select_db( $db )
    or die ( "Couldn't open $db: ".mysql_error() );
    print "<p>Successfully connected to selected database \"$db\"</p>";
    mysql_close( $link );
    ?>
    </body>
    </html>

  2. #2
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check your php.ini file, you probably just need to add/uncomment the line:
    extension=php_mysql.dll (.dll on windows, .so on *nix) then restart the web server.
    Create a <?php phpinfo() ?> page if you don't know where your php.ini is, it will tell you at the top. Failing that let us know what OS you're on and how you installed PHP (package or compiled etc).

  3. #3
    SitePoint Zealot rain5017's Avatar
    Join Date
    Sep 2005
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    php ver?
    if you use php5,you have to load mysql.dell(win32 os)

  4. #4
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question extension=php_mysql.dll present

    Quote Originally Posted by markl999
    Check your php.ini file, you probably just need to add/uncomment the line:
    extension=php_mysql.dll (.dll on windows, .so on *nix) then restart the web server.
    Create a <?php phpinfo() ?> page if you don't know where your php.ini is, it will tell you at the top. Failing that let us know what OS you're on and how you installed PHP (package or compiled etc).
    extension=php_mysql.dll present in the php.ini file. My OS is Windows XP Professional Version 2002 Service PACK 1. PHP Package

  5. #5
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you see a mysql section in a <?php phpinfo() ?> page? If you can put a copy of your phpinfo() output somewhere online that might help?

  6. #6
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question I believe there is no mysql section.

    Quote Originally Posted by markl999
    Do you see a mysql section in a <?php phpinfo() ?> page? If you can put a copy of your phpinfo() output somewhere online that might help?

    I believe there is no mysql section. Thanks!

    System Windows NT CBPLUS 5.1 build 2600
    Build Date Sep 5 2005 15:50:13
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
    Server API CGI/FastCGI
    Virtual Directory Support enabled
    Configuration File (php.ini) Path C:\WINDOWS\php.ini
    PHP API 20031224
    PHP Extension 20041030
    Zend Extension 220040412
    Debug Build no
    Thread Safety enabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams php, file, http, ftp, compress.zlib
    Registered Stream Socket Transports tcp, udp

    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies



    --------------------------------------------------------------------------------

    PHP Credits

    --------------------------------------------------------------------------------

    Configuration
    PHP Core
    Directive Local Value Master Value
    allow_call_time_pass_reference On On
    allow_url_fopen On On
    always_populate_raw_post_data Off Off
    arg_separator.input & &
    arg_separator.output & &
    asp_tags Off Off
    auto_append_file no value no value
    auto_globals_jit On On
    auto_prepend_file no value no value
    browscap no value no value
    default_charset no value no value
    default_mimetype text/html text/html
    define_syslog_variables Off Off
    disable_classes no value no value
    disable_functions no value no value
    display_errors On On
    display_startup_errors Off Off
    doc_root no value no value
    docref_ext no value no value
    docref_root no value no value
    enable_dl On On
    error_append_string no value no value
    error_log no value no value
    error_prepend_string no value no value
    error_reporting 2039 2039
    expose_php On On
    extension_dir ./ ./
    file_uploads On On
    highlight.bg #FFFFFF #FFFFFF
    highlight.comment #FF8000 #FF8000
    highlight.default #0000BB #0000BB
    highlight.html #000000 #000000
    highlight.keyword #007700 #007700
    highlight.string #DD0000 #DD0000
    html_errors On On
    ignore_repeated_errors Off Off
    ignore_repeated_source Off Off
    ignore_user_abort Off Off
    implicit_flush Off Off
    include_path .;C:\php5\pear .;C:\php5\pear
    log_errors Off Off
    log_errors_max_len 1024 1024
    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off
    mail.force_extra_parameters no value no value
    max_execution_time 30 30
    max_input_time 60 60
    open_basedir no value no value
    output_buffering no value no value
    output_handler no value no value
    post_max_size 8M 8M
    precision 12 12
    register_argc_argv On On
    register_globals Off Off
    register_long_arrays On On
    report_memleaks On On
    report_zend_debug On On
    safe_mode Off Off
    safe_mode_exec_dir no value no value
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value
    sendmail_from no value no value
    sendmail_path no value no value
    serialize_precision 100 100
    short_open_tag On On
    SMTP localhost localhost
    smtp_port 25 25
    sql.safe_mode Off Off
    track_errors Off Off
    unserialize_callback_func no value no value
    upload_max_filesize 2M 2M
    upload_tmp_dir C:\PHP\uploadtemp C:\PHP\uploadtemp
    user_dir no value no value
    variables_order EGPCS EGPCS
    xmlrpc_error_number 0 0
    xmlrpc_errors Off Off
    y2k_compliance On On
    zend.ze1_compatibility_mode Off Off


    bcmath
    BCMath support enabled


    calendar
    Calendar support enabled


    com_dotnet
    COM support enabled
    DCOM support disabled
    .Net support enabled

    Directive Local Value Master Value
    com.allow_dcom 0 0
    com.autoregister_casesensitive 1 1
    com.autoregister_typelib 0 0
    com.autoregister_verbose 0 0
    com.code_page no value no value
    com.typelib_file no value no value


    ctype
    ctype functions enabled


    dom
    DOM/XML enabled
    DOM/XML API Version 20031129
    libxml Version 2.6.11
    HTML Support enabled
    XPath Support enabled
    XPointer Support enabled
    Schema Support enabled
    RelaxNG Support enabled


    ftp
    FTP support enabled


    iconv
    iconv support enabled
    iconv implementation "libiconv"
    iconv library version 1.9

    Directive Local Value Master Value
    iconv.input_encoding ISO-8859-1 ISO-8859-1
    iconv.internal_encoding ISO-8859-1 ISO-8859-1
    iconv.output_encoding ISO-8859-1 ISO-8859-1


    libxml
    libXML support active
    libXML Version 2.6.11
    libXML streams enabled


    odbc
    ODBC Support enabled
    Active Persistent Links 0
    Active Links 0
    ODBC library Win32

    Directive Local Value Master Value
    odbc.allow_persistent On On
    odbc.check_persistent On On
    odbc.default_db no value no value
    odbc.default_pw no value no value
    odbc.default_user no value no value
    odbc.defaultbinmode return as is return as is
    odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
    odbc.max_links Unlimited Unlimited
    odbc.max_persistent Unlimited Unlimited


    pcre
    PCRE (Perl Compatible Regular Expressions) Support enabled
    PCRE Library Version 6.2 01-Aug-2005


    session
    Session Support enabled
    Registered save handlers files user sqlite
    Registered serializer handlers php php_binary wddx

    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 On On
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 100 100
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1
    session.hash_bits_per_character 4 4
    session.hash_function 0 0
    session.name PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler files files
    session.save_path no value no value
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid 0 0


    SimpleXML
    Simplexml support enabled
    Revision $Revision: 1.139.2.4 $
    Schema support enabled


    SPL
    SPL support enabled
    Interfaces RecursiveIterator, SeekableIterator
    Classes ArrayIterator, ArrayObject, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator


    SQLite
    SQLite support enabled
    PECL Module version 2.0-dev $Id: sqlite.c,v 1.146.2.7 2005/06/07 15:38:37 dmitry Exp $
    SQLite Library 2.8.14
    SQLite Encoding iso8859

    Directive Local Value Master Value
    sqlite.assoc_case 0 0


    standard
    Regex Library Bundled library enabled
    Dynamic Library Support enabled
    Internal Sendmail Support for Windows enabled

    Directive Local Value Master Value
    assert.active 1 1
    assert.bail 0 0
    assert.callback no value no value
    assert.quiet_eval 0 0
    assert.warning 1 1
    auto_detect_line_endings 0 0
    date.default_latitude 31.7667 31.7667
    date.default_longitude 35.2333 35.2333
    date.sunrise_zenith 90.83 90.83
    date.sunset_zenith 90.83 90.83
    default_socket_timeout 60 60
    safe_mode_allowed_env_vars PHP_ PHP_
    safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
    url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
    user_agent no value no value


    tokenizer
    Tokenizer Support enabled


    wddx
    WDDX Support enabled
    WDDX Session Serializer enabled


    xml
    XML Support active
    XML Namespace Support active
    libxml2 Version 2.6.11


    zlib
    ZLib Support enabled
    Compiled Version 1.2.3
    Linked Version 1.2.3

    Directive Local Value Master Value
    zlib.output_compression Off Off
    zlib.output_compression_level -1 -1
    zlib.output_handler no value no value


    Additional Modules
    Module Name


    Environment
    Variable Value
    ALLUSERSPROFILE C:\Documents and Settings\All Users
    CommonProgramFiles C:\Program Files\Common Files
    COMPUTERNAME CBPLUS
    ComSpec C:\WINDOWS\system32\cmd.exe
    CONTENT_LENGTH 0
    GATEWAY_INTERFACE CGI/1.1
    HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    HTTP_ACCEPT_LANGUAGE en-us
    HTTP_CONNECTION Keep-Alive
    HTTP_HOST localhost
    HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
    HTTP_ACCEPT_ENCODING gzip, deflate
    HTTPS off
    INCLUDE C:\Program Files\Microsoft.NET\FrameworkSDK\include\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\
    INSTANCE_ID 1
    LIB C:\Program Files\Microsoft.NET\FrameworkSDK\Lib\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\
    LOCAL_ADDR 127.0.0.1
    NUMBER_OF_PROCESSORS 1
    OS Windows_NT
    Path C:\Program Files\Microsoft.NET\FrameworkSDK\Bin\;C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\;C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;F:\Program Files\Executive Software\Diskeeper\;C:\WINDOWS\System32\spool\DRIVERS\W32X86\3;C:\Program Files\Common Files\Adobe\AGL;
    PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE x86
    PROCESSOR_IDENTIFIER x86 Family 15 Model 4 Stepping 10, AuthenticAMD
    PROCESSOR_LEVEL 15
    PROCESSOR_REVISION 040a
    ProgramFiles C:\Program Files
    REMOTE_ADDR 127.0.0.1
    REMOTE_HOST 127.0.0.1
    REQUEST_METHOD GET
    SCRIPT_NAME /php test/TMP1bu43o8y6p.php
    SERVER_NAME localhost
    SERVER_PORT 80
    SERVER_PORT_SECURE 0
    SERVER_PROTOCOL HTTP/1.1
    SERVER_SOFTWARE Microsoft-IIS/5.1
    SystemDrive C:
    SystemRoot C:\WINDOWS
    TEMP C:\WINDOWS\TEMP
    TMP C:\WINDOWS\TEMP
    tvdumpflags 8
    USERPROFILE C:\Documents and Settings\LocalService
    windir C:\WINDOWS
    ORIG_PATH_TRANSLATED c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php
    ORIG_PATH_INFO /php test/TMP1bu43o8y6p.php
    ORIG_SCRIPT_NAME /php test/TMP1bu43o8y6p.php
    SCRIPT_FILENAME c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php


    PHP Variables
    Variable Value
    _SERVER["ALLUSERSPROFILE"] C:\Documents and Settings\All Users
    _SERVER["CommonProgramFiles"] C:\Program Files\Common Files
    _SERVER["COMPUTERNAME"] CBPLUS
    _SERVER["ComSpec"] C:\WINDOWS\system32\cmd.exe
    _SERVER["CONTENT_LENGTH"] 0
    _SERVER["GATEWAY_INTERFACE"] CGI/1.1
    _SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
    _SERVER["HTTP_CONNECTION"] Keep-Alive
    _SERVER["HTTP_HOST"] localhost
    _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
    _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
    _SERVER["HTTPS"] off
    _SERVER["INCLUDE"] C:\Program Files\Microsoft.NET\FrameworkSDK\include\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\
    _SERVER["INSTANCE_ID"] 1
    _SERVER["LIB"] C:\Program Files\Microsoft.NET\FrameworkSDK\Lib\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\
    _SERVER["LOCAL_ADDR"] 127.0.0.1
    _SERVER["NUMBER_OF_PROCESSORS"] 1
    _SERVER["OS"] Windows_NT
    _SERVER["Path"] C:\Program Files\Microsoft.NET\FrameworkSDK\Bin\;C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\;C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;F:\Program Files\Executive Software\Diskeeper\;C:\WINDOWS\System32\spool\DRIVERS\W32X86\3;C:\Program Files\Common Files\Adobe\AGL;
    _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    _SERVER["PROCESSOR_ARCHITECTURE"] x86
    _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 15 Model 4 Stepping 10, AuthenticAMD
    _SERVER["PROCESSOR_LEVEL"] 15
    _SERVER["PROCESSOR_REVISION"] 040a
    _SERVER["ProgramFiles"] C:\Program Files
    _SERVER["REMOTE_ADDR"] 127.0.0.1
    _SERVER["REMOTE_HOST"] 127.0.0.1
    _SERVER["REQUEST_METHOD"] GET
    _SERVER["SCRIPT_NAME"] /php test/TMP1bu43o8y6p.php
    _SERVER["SERVER_NAME"] localhost
    _SERVER["SERVER_PORT"] 80
    _SERVER["SERVER_PORT_SECURE"] 0
    _SERVER["SERVER_PROTOCOL"] HTTP/1.1
    _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.1
    _SERVER["SystemDrive"] C:
    _SERVER["SystemRoot"] C:\WINDOWS
    _SERVER["TEMP"] C:\WINDOWS\TEMP
    _SERVER["TMP"] C:\WINDOWS\TEMP
    _SERVER["tvdumpflags"] 8
    _SERVER["USERPROFILE"] C:\Documents and Settings\LocalService
    _SERVER["windir"] C:\WINDOWS
    _SERVER["ORIG_PATH_TRANSLATED"] c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php
    _SERVER["ORIG_PATH_INFO"] /php test/TMP1bu43o8y6p.php
    _SERVER["ORIG_SCRIPT_NAME"] /php test/TMP1bu43o8y6p.php
    _SERVER["SCRIPT_FILENAME"] c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php
    _SERVER["PHP_SELF"] /php test/TMP1bu43o8y6p.php
    _SERVER["argv"] Array
    (
    )


    _SERVER["argc"] 0
    _ENV["ALLUSERSPROFILE"] C:\Documents and Settings\All Users
    _ENV["CommonProgramFiles"] C:\Program Files\Common Files
    _ENV["COMPUTERNAME"] CBPLUS
    _ENV["ComSpec"] C:\WINDOWS\system32\cmd.exe
    _ENV["CONTENT_LENGTH"] 0
    _ENV["GATEWAY_INTERFACE"] CGI/1.1
    _ENV["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    _ENV["HTTP_ACCEPT_LANGUAGE"] en-us
    _ENV["HTTP_CONNECTION"] Keep-Alive
    _ENV["HTTP_HOST"] localhost
    _ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
    _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
    _ENV["HTTPS"] off
    _ENV["INCLUDE"] C:\Program Files\Microsoft.NET\FrameworkSDK\include\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\
    _ENV["INSTANCE_ID"] 1
    _ENV["LIB"] C:\Program Files\Microsoft.NET\FrameworkSDK\Lib\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\
    _ENV["LOCAL_ADDR"] 127.0.0.1
    _ENV["NUMBER_OF_PROCESSORS"] 1
    _ENV["OS"] Windows_NT
    _ENV["Path"] C:\Program Files\Microsoft.NET\FrameworkSDK\Bin\;C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\;C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;F:\Program Files\Executive Software\Diskeeper\;C:\WINDOWS\System32\spool\DRIVERS\W32X86\3;C:\Program Files\Common Files\Adobe\AGL;
    _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    _ENV["PROCESSOR_ARCHITECTURE"] x86
    _ENV["PROCESSOR_IDENTIFIER"] x86 Family 15 Model 4 Stepping 10, AuthenticAMD
    _ENV["PROCESSOR_LEVEL"] 15
    _ENV["PROCESSOR_REVISION"] 040a
    _ENV["ProgramFiles"] C:\Program Files
    _ENV["REMOTE_ADDR"] 127.0.0.1
    _ENV["REMOTE_HOST"] 127.0.0.1
    _ENV["REQUEST_METHOD"] GET
    _ENV["SCRIPT_NAME"] /php test/TMP1bu43o8y6p.php
    _ENV["SERVER_NAME"] localhost
    _ENV["SERVER_PORT"] 80
    _ENV["SERVER_PORT_SECURE"] 0
    _ENV["SERVER_PROTOCOL"] HTTP/1.1
    _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.1
    _ENV["SystemDrive"] C:
    _ENV["SystemRoot"] C:\WINDOWS
    _ENV["TEMP"] C:\WINDOWS\TEMP
    _ENV["TMP"] C:\WINDOWS\TEMP
    _ENV["tvdumpflags"] 8
    _ENV["USERPROFILE"] C:\Documents and Settings\LocalService
    _ENV["windir"] C:\WINDOWS
    _ENV["ORIG_PATH_TRANSLATED"] c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php
    _ENV["ORIG_PATH_INFO"] /php test/TMP1bu43o8y6p.php
    _ENV["ORIG_SCRIPT_NAME"] /php test/TMP1bu43o8y6p.php
    _ENV["SCRIPT_FILENAME"] c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php


    PHP License
    This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.



    PHP Version 5.0.5

    System Windows NT CBPLUS 5.1 build 2600
    Build Date Sep 5 2005 15:50:13
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
    Server API CGI/FastCGI
    Virtual Directory Support enabled
    Configuration File (php.ini) Path C:\WINDOWS\php.ini
    PHP API 20031224
    PHP Extension 20041030
    Zend Extension 220040412
    Debug Build no
    Thread Safety enabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams php, file, http, ftp, compress.zlib
    Registered Stream Socket Transports tcp, udp

    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies



    --------------------------------------------------------------------------------

    PHP Credits

    --------------------------------------------------------------------------------

    Configuration
    PHP Core
    Directive Local Value Master Value
    allow_call_time_pass_reference On On
    allow_url_fopen On On
    always_populate_raw_post_data Off Off
    arg_separator.input & &
    arg_separator.output & &
    asp_tags Off Off
    auto_append_file no value no value
    auto_globals_jit On On
    auto_prepend_file no value no value
    browscap no value no value
    default_charset no value no value
    default_mimetype text/html text/html
    define_syslog_variables Off Off
    disable_classes no value no value
    disable_functions no value no value
    display_errors On On
    display_startup_errors Off Off
    doc_root no value no value
    docref_ext no value no value
    docref_root no value no value
    enable_dl On On
    error_append_string no value no value
    error_log no value no value
    error_prepend_string no value no value
    error_reporting 2039 2039
    expose_php On On
    extension_dir ./ ./
    file_uploads On On
    highlight.bg #FFFFFF #FFFFFF
    highlight.comment #FF8000 #FF8000
    highlight.default #0000BB #0000BB
    highlight.html #000000 #000000
    highlight.keyword #007700 #007700
    highlight.string #DD0000 #DD0000
    html_errors On On
    ignore_repeated_errors Off Off
    ignore_repeated_source Off Off
    ignore_user_abort Off Off
    implicit_flush Off Off
    include_path .;C:\php5\pear .;C:\php5\pear
    log_errors Off Off
    log_errors_max_len 1024 1024
    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off
    mail.force_extra_parameters no value no value
    max_execution_time 30 30
    max_input_time 60 60
    open_basedir no value no value
    output_buffering no value no value
    output_handler no value no value
    post_max_size 8M 8M
    precision 12 12
    register_argc_argv On On
    register_globals Off Off
    register_long_arrays On On
    report_memleaks On On
    report_zend_debug On On
    safe_mode Off Off
    safe_mode_exec_dir no value no value
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value
    sendmail_from no value no value
    sendmail_path no value no value
    serialize_precision 100 100
    short_open_tag On On
    SMTP localhost localhost
    smtp_port 25 25
    sql.safe_mode Off Off
    track_errors Off Off
    unserialize_callback_func no value no value
    upload_max_filesize 2M 2M
    upload_tmp_dir C:\PHP\uploadtemp C:\PHP\uploadtemp
    user_dir no value no value
    variables_order EGPCS EGPCS
    xmlrpc_error_number 0 0
    xmlrpc_errors Off Off
    y2k_compliance On On
    zend.ze1_compatibility_mode Off Off


    bcmath
    BCMath support enabled


    calendar
    Calendar support enabled


    com_dotnet
    COM support enabled
    DCOM support disabled
    .Net support enabled

    Directive Local Value Master Value
    com.allow_dcom 0 0
    com.autoregister_casesensitive 1 1
    com.autoregister_typelib 0 0
    com.autoregister_verbose 0 0
    com.code_page no value no value
    com.typelib_file no value no value


    ctype
    ctype functions enabled


    dom
    DOM/XML enabled
    DOM/XML API Version 20031129
    libxml Version 2.6.11
    HTML Support enabled
    XPath Support enabled
    XPointer Support enabled
    Schema Support enabled
    RelaxNG Support enabled


    ftp
    FTP support enabled


    iconv
    iconv support enabled
    iconv implementation "libiconv"
    iconv library version 1.9

    Directive Local Value Master Value
    iconv.input_encoding ISO-8859-1 ISO-8859-1
    iconv.internal_encoding ISO-8859-1 ISO-8859-1
    iconv.output_encoding ISO-8859-1 ISO-8859-1


    libxml
    libXML support active
    libXML Version 2.6.11
    libXML streams enabled


    odbc
    ODBC Support enabled
    Active Persistent Links 0
    Active Links 0
    ODBC library Win32

    Directive Local Value Master Value
    odbc.allow_persistent On On
    odbc.check_persistent On On
    odbc.default_db no value no value
    odbc.default_pw no value no value
    odbc.default_user no value no value
    odbc.defaultbinmode return as is return as is
    odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
    odbc.max_links Unlimited Unlimited
    odbc.max_persistent Unlimited Unlimited


    pcre
    PCRE (Perl Compatible Regular Expressions) Support enabled
    PCRE Library Version 6.2 01-Aug-2005


    session
    Session Support enabled
    Registered save handlers files user sqlite
    Registered serializer handlers php php_binary wddx

    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 On On
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 100 100
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1
    session.hash_bits_per_character 4 4
    session.hash_function 0 0
    session.name PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler files files
    session.save_path no value no value
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid 0 0


    SimpleXML
    Simplexml support enabled
    Revision $Revision: 1.139.2.4 $
    Schema support enabled


    SPL
    SPL support enabled
    Interfaces RecursiveIterator, SeekableIterator
    Classes ArrayIterator, ArrayObject, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator


    SQLite
    SQLite support enabled
    PECL Module version 2.0-dev $Id: sqlite.c,v 1.146.2.7 2005/06/07 15:38:37 dmitry Exp $
    SQLite Library 2.8.14
    SQLite Encoding iso8859

    Directive Local Value Master Value
    sqlite.assoc_case 0 0


    standard
    Regex Library Bundled library enabled
    Dynamic Library Support enabled
    Internal Sendmail Support for Windows enabled

    Directive Local Value Master Value
    assert.active 1 1
    assert.bail 0 0
    assert.callback no value no value
    assert.quiet_eval 0 0
    assert.warning 1 1
    auto_detect_line_endings 0 0
    date.default_latitude 31.7667 31.7667
    date.default_longitude 35.2333 35.2333
    date.sunrise_zenith 90.83 90.83
    date.sunset_zenith 90.83 90.83
    default_socket_timeout 60 60
    safe_mode_allowed_env_vars PHP_ PHP_
    safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
    url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
    user_agent no value no value


    tokenizer
    Tokenizer Support enabled


    wddx
    WDDX Support enabled
    WDDX Session Serializer enabled


    xml
    XML Support active
    XML Namespace Support active
    libxml2 Version 2.6.11


    zlib
    ZLib Support enabled
    Compiled Version 1.2.3
    Linked Version 1.2.3

    Directive Local Value Master Value
    zlib.output_compression Off Off
    zlib.output_compression_level -1 -1
    zlib.output_handler no value no value


    Additional Modules
    Module Name


    Environment
    Variable Value
    ALLUSERSPROFILE C:\Documents and Settings\All Users
    CommonProgramFiles C:\Program Files\Common Files
    COMPUTERNAME CBPLUS
    ComSpec C:\WINDOWS\system32\cmd.exe
    CONTENT_LENGTH 0
    GATEWAY_INTERFACE CGI/1.1
    HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    HTTP_ACCEPT_LANGUAGE en-us
    HTTP_CONNECTION Keep-Alive
    HTTP_HOST localhost
    HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
    HTTP_ACCEPT_ENCODING gzip, deflate
    HTTPS off
    INCLUDE C:\Program Files\Microsoft.NET\FrameworkSDK\include\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\
    INSTANCE_ID 1
    LIB C:\Program Files\Microsoft.NET\FrameworkSDK\Lib\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\
    LOCAL_ADDR 127.0.0.1
    NUMBER_OF_PROCESSORS 1
    OS Windows_NT
    Path C:\Program Files\Microsoft.NET\FrameworkSDK\Bin\;C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\;C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;F:\Program Files\Executive Software\Diskeeper\;C:\WINDOWS\System32\spool\DRIVERS\W32X86\3;C:\Program Files\Common Files\Adobe\AGL;
    PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE x86
    PROCESSOR_IDENTIFIER x86 Family 15 Model 4 Stepping 10, AuthenticAMD
    PROCESSOR_LEVEL 15
    PROCESSOR_REVISION 040a
    ProgramFiles C:\Program Files
    REMOTE_ADDR 127.0.0.1
    REMOTE_HOST 127.0.0.1
    REQUEST_METHOD GET
    SCRIPT_NAME /php test/TMP1bu43o8y6p.php
    SERVER_NAME localhost
    SERVER_PORT 80
    SERVER_PORT_SECURE 0
    SERVER_PROTOCOL HTTP/1.1
    SERVER_SOFTWARE Microsoft-IIS/5.1
    SystemDrive C:
    SystemRoot C:\WINDOWS
    TEMP C:\WINDOWS\TEMP
    TMP C:\WINDOWS\TEMP
    tvdumpflags 8
    USERPROFILE C:\Documents and Settings\LocalService
    windir C:\WINDOWS
    ORIG_PATH_TRANSLATED c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php
    ORIG_PATH_INFO /php test/TMP1bu43o8y6p.php
    ORIG_SCRIPT_NAME /php test/TMP1bu43o8y6p.php
    SCRIPT_FILENAME c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php


    PHP Variables
    Variable Value
    _SERVER["ALLUSERSPROFILE"] C:\Documents and Settings\All Users
    _SERVER["CommonProgramFiles"] C:\Program Files\Common Files
    _SERVER["COMPUTERNAME"] CBPLUS
    _SERVER["ComSpec"] C:\WINDOWS\system32\cmd.exe
    _SERVER["CONTENT_LENGTH"] 0
    _SERVER["GATEWAY_INTERFACE"] CGI/1.1
    _SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
    _SERVER["HTTP_CONNECTION"] Keep-Alive
    _SERVER["HTTP_HOST"] localhost
    _SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
    _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
    _SERVER["HTTPS"] off
    _SERVER["INCLUDE"] C:\Program Files\Microsoft.NET\FrameworkSDK\include\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\
    _SERVER["INSTANCE_ID"] 1
    _SERVER["LIB"] C:\Program Files\Microsoft.NET\FrameworkSDK\Lib\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\
    _SERVER["LOCAL_ADDR"] 127.0.0.1
    _SERVER["NUMBER_OF_PROCESSORS"] 1
    _SERVER["OS"] Windows_NT
    _SERVER["Path"] C:\Program Files\Microsoft.NET\FrameworkSDK\Bin\;C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\;C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;F:\Program Files\Executive Software\Diskeeper\;C:\WINDOWS\System32\spool\DRIVERS\W32X86\3;C:\Program Files\Common Files\Adobe\AGL;
    _SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    _SERVER["PROCESSOR_ARCHITECTURE"] x86
    _SERVER["PROCESSOR_IDENTIFIER"] x86 Family 15 Model 4 Stepping 10, AuthenticAMD
    _SERVER["PROCESSOR_LEVEL"] 15
    _SERVER["PROCESSOR_REVISION"] 040a
    _SERVER["ProgramFiles"] C:\Program Files
    _SERVER["REMOTE_ADDR"] 127.0.0.1
    _SERVER["REMOTE_HOST"] 127.0.0.1
    _SERVER["REQUEST_METHOD"] GET
    _SERVER["SCRIPT_NAME"] /php test/TMP1bu43o8y6p.php
    _SERVER["SERVER_NAME"] localhost
    _SERVER["SERVER_PORT"] 80
    _SERVER["SERVER_PORT_SECURE"] 0
    _SERVER["SERVER_PROTOCOL"] HTTP/1.1
    _SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.1
    _SERVER["SystemDrive"] C:
    _SERVER["SystemRoot"] C:\WINDOWS
    _SERVER["TEMP"] C:\WINDOWS\TEMP
    _SERVER["TMP"] C:\WINDOWS\TEMP
    _SERVER["tvdumpflags"] 8
    _SERVER["USERPROFILE"] C:\Documents and Settings\LocalService
    _SERVER["windir"] C:\WINDOWS
    _SERVER["ORIG_PATH_TRANSLATED"] c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php
    _SERVER["ORIG_PATH_INFO"] /php test/TMP1bu43o8y6p.php
    _SERVER["ORIG_SCRIPT_NAME"] /php test/TMP1bu43o8y6p.php
    _SERVER["SCRIPT_FILENAME"] c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php
    _SERVER["PHP_SELF"] /php test/TMP1bu43o8y6p.php
    _SERVER["argv"] Array
    (
    )


    _SERVER["argc"] 0
    _ENV["ALLUSERSPROFILE"] C:\Documents and Settings\All Users
    _ENV["CommonProgramFiles"] C:\Program Files\Common Files
    _ENV["COMPUTERNAME"] CBPLUS
    _ENV["ComSpec"] C:\WINDOWS\system32\cmd.exe
    _ENV["CONTENT_LENGTH"] 0
    _ENV["GATEWAY_INTERFACE"] CGI/1.1
    _ENV["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    _ENV["HTTP_ACCEPT_LANGUAGE"] en-us
    _ENV["HTTP_CONNECTION"] Keep-Alive
    _ENV["HTTP_HOST"] localhost
    _ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
    _ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
    _ENV["HTTPS"] off
    _ENV["INCLUDE"] C:\Program Files\Microsoft.NET\FrameworkSDK\include\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\
    _ENV["INSTANCE_ID"] 1
    _ENV["LIB"] C:\Program Files\Microsoft.NET\FrameworkSDK\Lib\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\
    _ENV["LOCAL_ADDR"] 127.0.0.1
    _ENV["NUMBER_OF_PROCESSORS"] 1
    _ENV["OS"] Windows_NT
    _ENV["Path"] C:\Program Files\Microsoft.NET\FrameworkSDK\Bin\;C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\;C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;F:\Program Files\Executive Software\Diskeeper\;C:\WINDOWS\System32\spool\DRIVERS\W32X86\3;C:\Program Files\Common Files\Adobe\AGL;
    _ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    _ENV["PROCESSOR_ARCHITECTURE"] x86
    _ENV["PROCESSOR_IDENTIFIER"] x86 Family 15 Model 4 Stepping 10, AuthenticAMD
    _ENV["PROCESSOR_LEVEL"] 15
    _ENV["PROCESSOR_REVISION"] 040a
    _ENV["ProgramFiles"] C:\Program Files
    _ENV["REMOTE_ADDR"] 127.0.0.1
    _ENV["REMOTE_HOST"] 127.0.0.1
    _ENV["REQUEST_METHOD"] GET
    _ENV["SCRIPT_NAME"] /php test/TMP1bu43o8y6p.php
    _ENV["SERVER_NAME"] localhost
    _ENV["SERVER_PORT"] 80
    _ENV["SERVER_PORT_SECURE"] 0
    _ENV["SERVER_PROTOCOL"] HTTP/1.1
    _ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.1
    _ENV["SystemDrive"] C:
    _ENV["SystemRoot"] C:\WINDOWS
    _ENV["TEMP"] C:\WINDOWS\TEMP
    _ENV["TMP"] C:\WINDOWS\TEMP
    _ENV["tvdumpflags"] 8
    _ENV["USERPROFILE"] C:\Documents and Settings\LocalService
    _ENV["windir"] C:\WINDOWS
    _ENV["ORIG_PATH_TRANSLATED"] c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php
    _ENV["ORIG_PATH_INFO"] /php test/TMP1bu43o8y6p.php
    _ENV["ORIG_SCRIPT_NAME"] /php test/TMP1bu43o8y6p.php
    _ENV["SCRIPT_FILENAME"] c:\inetpub\wwwroot\php test\TMP1bu43o8y6p.php


    PHP License
    This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

  7. #7
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, it's not loaded, can you show the relevant part of C:\WINDOWS\php.ini when you load the module?

  8. #8
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Quote Originally Posted by markl999
    Yeah, it's not loaded, can you show the relevant part of C:\WINDOWS\php.ini when you load the module?
    Sorry for my ignorance, but I'm quite not sure about your question. I installed my mysql and php automatically. Here is the php.ini file:


    ;;;;;;;;;;;;;;;;;
    ; Data Handling ;
    ;;;;;;;;;;;;;;;;;
    ;
    ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

    ; The separator used in PHP generated URLs to separate arguments.
    ; Default is "&".
    ;arg_separator.output = "&amp;"

    ; List of separator(s) used by PHP to parse input URLs into variables.
    ; Default is "&".
    ; NOTE: Every character in this directive is considered as separator!
    ;arg_separator.input = ";&"

    ; This directive describes the order in which PHP registers GET, POST, Cookie,
    ; Environment and Built-in variables (G, P, C, E & S respectively, often
    ; referred to as EGPCS or GPC). Registration is done from left to right, newer
    ; values override older values.
    variables_order = "EGPCS"

    ; Whether or not to register the EGPCS variables as global variables. You may
    ; want to turn this off if you don't want to clutter your scripts' global scope
    ; with user data. This makes most sense when coupled with track_vars - in which
    ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
    ; variables.
    ;
    ; You should do your best to write your scripts so that they do not require
    ; register_globals to be on; Using form variables as globals can easily lead
    ; to possible security problems, if the code is not very well thought of.
    register_globals = Off

    ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
    ; and friends. If you're not using them, it's recommended to turn them off,
    ; for performance reasons.
    register_long_arrays = On

    ; This directive tells PHP whether to declare the argv&argc variables (that
    ; would contain the GET information). If you don't use these variables, you
    ; should turn it off for increased performance.
    register_argc_argv = On

    ; When enabled, the SERVER and ENV variables are created when they're first
    ; used (Just In Time) instead of when the script starts. If these variables
    ; are not used within a script, having this directive on will result in a
    ; performance gain. The PHP directives register_globals, register_long_arrays,
    ; and register_argc_argv must be disabled for this directive to have any affect.
    auto_globals_jit = On

    ; Maximum size of POST data that PHP will accept.
    post_max_size = 8M

    ; Magic quotes
    ;

    ; Magic quotes for incoming GET/POST/Cookie data.
    magic_quotes_gpc = On

    ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
    magic_quotes_runtime = Off

    ; Use Sybase-style magic quotes (escape ' with '' instead of \').
    magic_quotes_sybase = Off

    ; Automatically add files before or after any PHP document.
    auto_prepend_file =
    auto_append_file =

    ; As of 4.0b4, PHP always outputs a character encoding by default in
    ; the Content-type: header. To disable sending of the charset, simply
    ; set it to be empty.
    ;
    ; PHP's built-in default is text/html
    default_mimetype = "text/html"
    ;default_charset = "iso-8859-1"

    ; Always populate the $HTTP_RAW_POST_DATA variable.
    ;always_populate_raw_post_data = On


    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    ; UNIX: "/path1:/path2"
    ;include_path = ".:/php/includes"
    ;
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes"

    ; The root of the PHP pages, used only if nonempty.
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues. The alternate is to use the
    ; cgi.force_redirect configuration below
    doc_root =

    ; The directory under which PHP opens the script using /~username used only
    ; if nonempty.
    user_dir =

    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "./"

    ; Whether or not to enable the dl() function. The dl() function does NOT work
    ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    ; disabled on them.
    enable_dl = On

    ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
    ; most web servers. Left undefined, PHP turns this on by default. You can
    ; turn it off here AT YOUR OWN RISK
    ; **You CAN safely turn this off for IIS, in fact, you MUST.**
    ; cgi.force_redirect = 0
    cgi.force_redirect = 0

    ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
    ; every request.
    ; cgi.nph = 1

    ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
    ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
    ; will look for to know it is OK to continue execution. Setting this variable MAY
    ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
    ; cgi.redirect_status_env = ;

    ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
    ; security tokens of the calling client. This allows IIS to define the
    ; security context that the request runs under. mod_fastcgi under Apache
    ; does not currently support this feature (03/17/2002)
    ; Set to 1 if running under IIS. Default is zero.
    ; fastcgi.impersonate = 1;

    ; Disable logging through FastCGI connection
    ; fastcgi.log = 0

    ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
    ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
    ; is supported by Apache. When this option is set to 1 PHP will send
    ; RFC2616 compliant header.
    ; Default is zero.
    ;cgi.rfc2616_headers = 0


    ;;;;;;;;;;;;;;;;;;;;;;
    ; Dynamic Extensions ;
    ;;;;;;;;;;;;;;;;;;;;;;
    ;
    ; If you wish to have an extension loaded automatically, 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
    ;Note that ODBC support is built in, so no dll is needed for it.
    ;

    ;extension=php_mbstring.dll
    ;extension=php_bz2.dll
    ;extension=php_cpdf.dll
    ;extension=php_curl.dll
    ;extension=php_dba.dll
    ;extension=php_dbase.dll
    ;extension=php_dbx.dll
    ;extension=php_exif.dll
    ;extension=php_fdf.dll
    ;extension=php_filepro.dll
    ;extension=php_gd2.dll
    ;extension=php_gettext.dll
    ;extension=php_ifx.dll
    ;extension=php_iisfunc.dll
    ;extension=php_imap.dll
    ;extension=php_interbase.dll
    ;extension=php_java.dll
    ;extension=php_ldap.dll
    ;extension=php_mcrypt.dll
    ;extension=php_mhash.dll
    ;extension=php_mime_magic.dll
    ;extension=php_ming.dll
    ;extension=php_mssql.dll
    ;extension=php_msql.dll
    ;extension=php_mysql.dll
    ;extension=php_oci8.dll
    ;extension=php_openssl.dll
    ;extension=php_oracle.dll
    ;extension=php_pdf.dll
    ;extension=php_pgsql.dll
    ;extension=php_shmop.dll
    ;extension=php_snmp.dll
    ;extension=php_sockets.dll
    ;extension=php_sybase_ct.dll
    ;extension=php_tidy.dll
    ;extension=php_w32api.dll
    ;extension=php_xmlrpc.dll
    ;extension=php_xsl.dll
    ;extension=php_yaz.dll
    ;extension=php_zip.dll

  9. #9
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ;extension=php_mysql.dll
    remove the leading ; and restart apache.
    The ; in the php.ini file means a comment, so php_mysql.dll is commented out at the moment.

  10. #10
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Quote Originally Posted by markl999
    remove the leading ; and restart apache.
    The ; in the php.ini file means a comment, so php_mysql.dll is commented out at the moment.

    I'm using IIS. How do I restart it?

  11. #11
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No idea. If in doubt google for 'restart IIS' or just ... reboot

  12. #12
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Quote Originally Posted by markl999
    No idea. If in doubt google for 'restart IIS' or just ... reboot

    Removed the ; from extensions=php_mysql.dll. This time I got a Warning - PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found

  13. #13
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Be sure to copy libmysql.dll from your php directory to your c:\windows\system32 directory.

  14. #14
    SitePoint Zealot
    Join Date
    May 2005
    Location
    Birmingham UK
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cbplus
    I'm using IIS. How do I restart it?
    Off Topic:

    I believe it is:

    Start->Settings->Control Panel->Administrative Tools->Services

    Hit 'i' and look for IIS Admin or something like that. Then hit the restart link at the top left of the frame.
    Contact: opserty@gmail.com
    Register your portfolio at: http://portfoliodb.net

  15. #15
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question

    Quote Originally Posted by markl999
    Be sure to copy libmysql.dll from your php directory to your c:\windows\system32 directory.
    Did the copy but still have this problem - Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\php test\TMP47nmoa0k4.php on line 9
    PHP Warning: PHP Startup: Unable to load dynamic library '.\php_mysql.dll' - The specified module could not be found. in Unknown on line 0

  16. #16
    SitePoint Member
    Join Date
    Oct 2005
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change the dir of the extension to the path of

    You need to change the default directory for the path of your extension the were the extension are in your folder. For example c:/php/ext or c:/php/extensions
    Then make sure you have un commented the below extension
    After the is all done restart ISS
    I usally create a shortcut on my desktop and also one for my web server
    Also i tip is that i always stop the web server before restarting the server and the start the web service back up.
    Ok well good luck and that should do it.

  17. #17
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Installation de php 5 sur Apache 2 [Merci aux installers!]

    1- Installer apache2
    2- Télécharger php.zip
    3- Extraire dans c:\php
    4- Ajouter à la fin de conf/httpd.conf de apache ces 3 lignes:

    # For PHP 5 do something like this:
    LoadModule php5_module "c:/php/php5apache2.dll"
    AddType application/x-httpd-php .php

    5- Mettre dans le répertoire windows le fichier :
    php.ini
    (php.ini-recommended , disponible dans /php peut être renommé)


    6- Dans php.ini effectuer les deux modifications suivantes:

    6.1- Changer le chemin par défaut de extension_dir :
    extension_dir = "c:/php/ext"

    6.2- Activer le chargement de mysql au démarrage en
    enlevant ';' du début de ligne afin d'avoir:

    extension= php_mysql.dll

    7- Copier dans le répertoire system32 le fichier :
    libmysql.dll

    8- Restart apache
    9- Tester avec succès.
    10- Installer mysql :
    Setup_mysql-5.0.15-win32.exe
    11- Installer MyManagerPro.exe pour gérer la base de données mysql.
    12- Développer les scripts php pour accéder à la base de données.
    13- Have fun.

    Thierry Brémard

  18. #18
    SitePoint Member
    Join Date
    Aug 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had the same issue, but have resolved it.

    I could reference MySQL when running directly through Apache, but was getting the "undefined function error" when running through Zend.

    The solution is to upgrade to the latest version of the Debugger using the following instructions:
    static . zend. com/topics / Updating-Studio-v6-0-Quick-Guide . pdf
    <remove the spaces from the link>

    Hope this helps.

  19. #19
    SitePoint Member
    Join Date
    Aug 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <body>
    <?php
    global $user, $pass, $db, $link;
    $user = "cbplus";
    $pass = "xidong74";
    $db = "jokes";
    $link = mysql_connect ("localhost:3306", $user, $pass);
    if (!$link)
    die( "Couldn't connect to MySQL" );
    print "<p>Successfully connected to server/p>";
    mysql_select_db( $db )
    or die ( "Couldn't open $db: ".mysql_error() );
    print "<p>Successfully connected to selected database \"$db\"</p>"; 
    mysql_close( $link );
    ?>
    </body>
    </html>
    Try changing your page to that. See how I have added the global line making them global variables.


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
  •