https://github.com/rubo77/php-mysql-fix
A php include that replaces all mysql functions with the corresponding mysqli functions
https://github.com/rubo77/php-mysql-fix
hacktoberfest
Last synced: 7 months ago
JSON representation
A php include that replaces all mysql functions with the corresponding mysqli functions
- Host: GitHub
- URL: https://github.com/rubo77/php-mysql-fix
- Owner: rubo77
- License: unlicense
- Created: 2019-03-02T07:25:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-29T13:02:01.000Z (about 2 years ago)
- Last Synced: 2025-10-14T15:38:54.247Z (9 months ago)
- Topics: hacktoberfest
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 113
- Watchers: 9
- Forks: 70
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-mysql-fix
A replacement for all mysql functions with mysqli equivalents.
Be aware, that this is just a workaround to fix-up some old code and the resulting project
will be more vulnerable than if you use the recommended newer mysqli-functions instead.
So only If you are sure that this is not setting your server at risk, you can fix your old
code by adding this replacement.
### usage
You can install it via Composer adding this to your `composer.json`:
```json
{
"require": {
"rubo77/php-mysql-fix": "^4.0"
},
"autoload": {
"files": [
"vendor/rubo77/php-mysql-fix/fix_mysql.inc.php"
]
}
}
```
and then typing:
```sh
$ composer update
```
Alternatively you can manually download and include the file at the top of your PHP script:
```php