Задать вопрос
  • Почему возникает ошибка "Class mysqli not found"?

    @oleksandrbog Автор вопроса
    IvanU7n, Нет, просто пустая строчка. Ну ок, спасибо, буду думать
  • Почему возникает ошибка "Class mysqli not found"?

    @oleksandrbog Автор вопроса
    IvanU7n, да, не работает
  • Почему возникает ошибка "Class mysqli not found"?

    @oleksandrbog Автор вопроса
    Дмитрий, так тоже не работает
  • Почему возникает ошибка "Class mysqli not found"?

    @oleksandrbog Автор вопроса
    IvanU7n,
    array(39) { [0]=> string(4) "Core" [1]=> string(6) "bcmath" [2]=> string(8) "calendar" [3]=> string(5) "ctype" [4]=> string(4) "date" [5]=> string(6) "filter" [6]=> string(4) "hash" [7]=> string(5) "iconv" [8]=> string(4) "json" [9]=> string(3) "SPL" [10]=> string(4) "pcre" [11]=> string(6) "random" [12]=> string(8) "readline" [13]=> string(10) "Reflection" [14]=> string(7) "session" [15]=> string(8) "standard" [16]=> string(7) "mysqlnd" [17]=> string(9) "tokenizer" [18]=> string(4) "zlib" [19]=> string(6) "libxml" [20]=> string(3) "dom" [21]=> string(3) "PDO" [22]=> string(3) "bz2" [23]=> string(9) "SimpleXML" [24]=> string(3) "xml" [25]=> string(9) "xmlreader" [26]=> string(9) "xmlwriter" [27]=> string(14) "apache2handler" [28]=> string(7) "openssl" [29]=> string(4) "curl" [30]=> string(8) "fileinfo" [31]=> string(7) "gettext" [32]=> string(8) "mbstring" [33]=> string(4) "exif" [34]=> string(6) "mysqli" [35]=> string(9) "pdo_mysql" [36]=> string(10) "pdo_sqlite" [37]=> string(4) "Phar" [38]=> string(3) "ftp" }
  • Почему возникает ошибка "Class mysqli not found"?

    @oleksandrbog Автор вопроса
    IvanU7n,
    array(28) { [0]=> string(4) "Core" [1]=> string(6) "bcmath" [2]=> string(8) "calendar" [3]=> string(5) "ctype" [4]=> string(4) "date" [5]=> string(6) "filter" [6]=> string(4) "hash" [7]=> string(5) "iconv" [8]=> string(4) "json" [9]=> string(3) "SPL" [10]=> string(4) "pcre" [11]=> string(6) "random" [12]=> string(8) "readline" [13]=> string(10) "Reflection" [14]=> string(7) "session" [15]=> string(8) "standard" [16]=> string(7) "mysqlnd" [17]=> string(9) "tokenizer" [18]=> string(4) "zlib" [19]=> string(6) "libxml" [20]=> string(3) "dom" [21]=> string(3) "PDO" [22]=> string(4) "Phar" [23]=> string(9) "SimpleXML" [24]=> string(3) "xml" [25]=> string(9) "xmlreader" [26]=> string(9) "xmlwriter" [27]=> string(10) "cli_server" }
    Fatal error: Uncaught Error: Class "mysqli" not found in C:\Users\bogat\Documents\site\JSleht\Content\andmebaas\conf.php:8 Stack trace: #0 {main} thrown in C:\Users\bogat\Documents\site\JSleht\Content\andmebaas\conf.php on line 8
  • Почему возникает ошибка "Class mysqli not found"?

    @oleksandrbog Автор вопроса
    IvanU7n,
    C:\WINDOWS\system32>cd C:/xampp/php/
    
    C:\xampp\php>php -m
    PHP Warning:  PHP Startup: Unable to load dynamic library 'php_mysql.dll' (tried: C:/xampp/php/ext\php_mysql.dll (Не найден указанный модуль), C:/xampp/php/ext\php_php_mysql.dll.dll (Не найден указанный модуль)) in Unknown on line 0
    
    Warning: PHP Startup: Unable to load dynamic library 'php_mysql.dll' (tried: C:/xampp/php/ext\php_mysql.dll (Не найден указанный модуль), C:/xampp/php/ext\php_php_mysql.dll.dll (Не найден указанный модуль)) in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/php/ext/php_mysql.dll' (tried: C:/php/ext/php_mysql.dll (Не найден указанный модуль), C:/xampp/php/ext\php_C:/php/ext/php_mysql.dll.dll (Не найден указанный модуль)) in Unknown on line 0
    
    Warning: PHP Startup: Unable to load dynamic library 'C:/php/ext/php_mysql.dll' (tried: C:/php/ext/php_mysql.dll (Не найден указанный модуль), C:/xampp/php/ext\php_C:/php/ext/php_mysql.dll.dll (Не найден указанный модуль)) in Unknown on line 0
    PHP Warning:  Module "mysqli" is already loaded in Unknown on line 0
    
    Warning: Module "mysqli" is already loaded in Unknown on line 0
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    exif
    fileinfo
    filter
    ftp
    gettext
    hash
    iconv
    json
    libxml
    mbstring
    mysqli
    mysqlnd
    openssl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    random
    readline
    Reflection
    session
  • Почему возникает ошибка "Class mysqli not found"?

    @oleksandrbog Автор вопроса
    extension=curl
    ;extension=ffi
    ;extension=ftp
    extension=fileinfo
    ;extension=gd
    extension=gettext
    ;extension=gmp
    ;extension=intl
    ;extension=imap
    extension=mbstring
    extension=exif      ; Must be after mbstring as it depends on it
    extension=mysqli
    ;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
    ;extension=oci8_19  ; Use with Oracle Database 19 Instant Client
    ;extension=odbc
    ;extension=openssl
    ;extension=pdo_firebird
    extension=pdo_mysql
    ;extension=pdo_oci
    ;extension=pdo_odbc
    ;extension=pdo_pgsql
    extension=pdo_sqlite
    ;extension=pgsql
    ;extension=shmop
    
    ; The MIBS data available in the PHP distribution must be installed.
    ; See https://www.php.net/manual/en/snmp.installation.php
    ;extension=snmp
    
    ;extension=soap
    ;extension=sockets
    ;extension=sodium
    ;extension=sqlite3
    ;extension=tidy
    ;extension=xsl
    ;extension=zip
    
    ;zend_extension=opcache
    
    ;;;;;;;;;;;;;;;;;;;
    ; Module Settings ;
    ;;;;;;;;;;;;;;;;;;;
    asp_tags=Off
    display_startup_errors=On
    track_errors=Off
    y2k_compliance=On
    allow_call_time_pass_reference=Off
    safe_mode=Off
    safe_mode_gid=Off
    safe_mode_allowed_env_vars=PHP_
    safe_mode_protected_env_vars=LD_LIBRARY_PATH
    error_log="C:\xampp\php\logs\php_error_log"
    register_globals=Off
    register_long_arrays=Off
    magic_quotes_gpc=Off
    magic_quotes_runtime=Off
    magic_quotes_sybase=Off
    extension=php_openssl.dll
    extension=php_ftp.dll
    extension=php_mysql.dll
    extension_dir = "C:/myphp/ext"
    extension=C:/php/ext/php_mysql.dll
    extension=C:/php/ext/php_mysqli.dll
    extension_dir = ./ext
    extension_dir = C:/xampp/php/ext

    не помогло
  • Почему возникает ошибка "Class mysqli not found"?

    @oleksandrbog Автор вопроса
    SergioMarquinha, да

    Дмитрий,
    PHP Version 8.2.12
    System Windows NT DESKTOP-19NJUT3 10.0 build 19045 (Windows 10) AMD64
    Build Date Oct 24 2023 21:10:40
    Build System Microsoft Windows Server 2019 Datacenter [10.0.17763]
    Compiler Visual C++ 2019
    Architecture x64
    Configure Command cscript /nologo /e:jscript configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-pdo-oci=..\..\..\..\instantclient\sdk,shared" "--with-oci8-19=..\..\..\..\instantclient\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--without-analyzer" "--with-pgo"
    Server API Apache 2.0 Handler
    Virtual Directory Support enabled
    Configuration File (php.ini) Path no value
    Loaded Configuration File C:\xampp\php\php.ini
    Scan this dir for additional .ini files (none)
    Additional .ini files parsed (none)
    PHP API 20220829
    PHP Extension 20220829
    Zend Extension 420220829
    Zend Extension Build API420220829,TS,VS16
    PHP Extension Build API20220829,TS,VS16
    Debug Build no
    Thread Safety enabled
    Thread API Windows Threads
    Zend Signal Handling disabled
    Zend Memory Manager enabled
    Zend Multibyte Support disabled
    Zend Max Execution Timers disabled
    IPv6 Support enabled
    DTrace Support disabled
    Registered PHP Streams php, file, glob, data, http, ftp, compress.zlib, phar
    Registered Stream Socket Transports tcp, udp
    Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, convert.*, consumed, dechunk, zlib.*

    Apache Environment
    Variable Value
    MIBDIRS C:/xampp/php/extras/mibs
    MYSQL_HOME \xampp\mysql\bin
    OPENSSL_CONF C:/xampp/apache/bin/openssl.cnf
    PHP_PEAR_SYSCONF_DIR \xampp\php
    PHPRC \xampp\php
    TMP \xampp\tmp
    HTTP_HOST localhost
    HTTP_CONNECTION keep-alive
    HTTP_SEC_CH_UA "Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"
    HTTP_SEC_CH_UA_MOBILE ?0
    HTTP_SEC_CH_UA_PLATFORM "Windows"
    HTTP_UPGRADE_INSECURE_REQUESTS 1
    HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
    HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    HTTP_SEC_FETCH_SITE none
    HTTP_SEC_FETCH_MODE navigate
    HTTP_SEC_FETCH_USER ?1
    HTTP_SEC_FETCH_DEST document
    HTTP_ACCEPT_ENCODING gzip, deflate, br
    HTTP_ACCEPT_LANGUAGE en-US,en;q=0.9,ru-UA;q=0.8,ru;q=0.7
    PATH C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\nodejs\;C:\xampp;C:\php;C:\Users\bogat\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\bogat\AppData\Local\Programs\Python\Python36-32\;C:\Users\bogat\AppData\Local\Microsoft\WindowsApps;C:\Users\bogat\.dotnet\tools;C:\Users\bogat\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\bogat\AppData\Local\GitHubDesktop\bin;C:\Users\bogat\AppData\Roaming\npm
    SystemRoot C:\WINDOWS
    COMSPEC C:\WINDOWS\system32\cmd.exe
    PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    WINDIR C:\WINDOWS
    SERVER_SIGNATURE Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 Server at localhost Port 80
    SERVER_SOFTWARE Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
    SERVER_NAME localhost
    SERVER_ADDR ::1
    SERVER_PORT 80
    REMOTE_ADDR ::1
    DOCUMENT_ROOT C:/xampp/htdocs
    REQUEST_SCHEME http
    CONTEXT_PREFIX no value
    CONTEXT_DOCUMENT_ROOT C:/xampp/htdocs
    SERVER_ADMIN postmaster@localhost
    SCRIPT_FILENAME C:/xampp/htdocs/info.php
    REMOTE_PORT 50744
    GATEWAY_INTERFACE CGI/1.1
    SERVER_PROTOCOL HTTP/1.1
    REQUEST_METHOD GET
    QUERY_STRING no value
    REQUEST_URI /info.php
    SCRIPT_NAME /info.php

    mysqlnd enabled
    Version mysqlnd 8.2.12
    Compression supported
    core SSL supported
    extended SSL supported
    Command buffer size 4096
    Read buffer size 32768
    Read timeout 86400
    Collecting statistics Yes
    Collecting memory statistics Yes
    Tracing n/a
    Loaded plugins mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_caching_sha2_password,auth_plugin_sha256_password
    API Extensions no value