GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Downloads
  • Documentation
  • Get Involved
  • Help
  • Getting Started
  • Introduction
  • A simple tutorial
  • Language Reference
  • Basic syntax
  • Types
  • Variables
  • Constants
  • Expressions
  • Operators

This view

  • Original page
  • New address

GeezerVison is showing www.php.net — PHP: mysqli::refresh - Manual

PHP 8.6.0 Released!
    mysqli::release_savepoint »
    « mysqli::reap_async_query
    • Preface
    • Function Reference
    • Database Extensions
    • Vendor Specific Database Extensions
    • MySQL
    • MySQLi
    • mysqli

    mysqli::refresh

    mysqli_refresh

    (PHP 5 >= 5.3.0, PHP 7, PHP 8)

    mysqli::refresh -- mysqli_refresh — Refreshes

    Warning

    This function has been DEPRECATED as of PHP 8.4.0. Relying on this function is highly discouraged.

    Description

    Object-oriented style

    #[\Deprecated(
        since: '8.4',
        message: 'use FLUSH SQL statement instead',
    )]

    public function mysqli::refresh(int $flags): bool

    Procedural style

    #[\Deprecated(
        since: '8.4',
        message: 'use FLUSH SQL statement instead',
    )]

    function mysqli_refresh(mysqli $mysql, int $flags): bool

    Flushes tables or caches, or resets the replication server information.

    Parameters

    mysql

    Procedural style only: A mysqli object returned by mysqli_connect() or mysqli_init()

    flags

    The options to refresh, using the MYSQLI_REFRESH_* constants as documented within the MySQLi constants documentation.

    See also the official » MySQL Refresh documentation.

    Return Values

    true if the refresh was a success, otherwise false

    Changelog

    Version Description
    8.4.0 Both mysqli::refresh() and mysqli_refresh() are now deprecated. Use FLUSH SQL commands instead.

    See Also

    • mysqli_poll() - Poll connections

    Found A Problem?

    Learn How To Improve This Page • Submit a Pull Request • Report a Bug
    +add a note

    User Contributed Notes

    There are no user contributed notes for this page.
    • mysqli
      • $affected_​rows
      • autocommit
      • begin_​transaction
      • change_​user
      • character_​set_​name
      • close
      • commit
      • $connect_​errno
      • $connect_​error
      • _​_​construct
      • debug
      • dump_​debug_​info
      • $errno
      • $error
      • $error_​list
      • escape_​string
      • execute_​query
      • $field_​count
      • get_​charset
      • $client_​info
      • $client_​version
      • get_​connection_​stats
      • $host_​info
      • $protocol_​version
      • $server_​info
      • $server_​version
      • get_​warnings
      • $info
      • $insert_​id
      • more_​results
      • multi_​query
      • next_​result
      • options
      • poll
      • prepare
      • query
      • quote_​string
      • real_​connect
      • real_​escape_​string
      • real_​query
      • reap_​async_​query
      • release_​savepoint
      • rollback
      • savepoint
      • select_​db
      • set_​charset
      • set_​opt
      • $sqlstate
      • ssl_​set
      • stat
      • stmt_​init
      • store_​result
      • $thread_​id
      • thread_​safe
      • use_​result
      • $warning_​count
    • Deprecated
      • init
      • kill
      • ping
      • refresh
    You are visitor 01402639 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.