-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
updateLastDatabaseError
Description
Updates the "$db_last_error" timestamp in Settings.php, which is used in determining whether or not to send the admin an email about a database error.
Syntax
bool updateLastDatabaseError ()
Return value
Expected type: Boolean
Description: True if successful, false otherwise
Notes
- Attempts to write to Settings_bak.php first
- Will try to create Settings_bak.php if it doesn't exist
- Attempts to chmod the file if it isn't writable (tries 755 first, then 775 and finally 777 before giving up)
- Will only write to Settings.php if the update of Settings_bak.php was successful
- Will not work if fopen is disabled
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.037 seconds with 13 queries.
- Forum Search