承接 rubo77/php-mysql-fix 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rubo77/php-mysql-fix

最新稳定版本:v4.0.0

Composer 安装命令:

composer require rubo77/php-mysql-fix

包简介

A replacement for all mysql functions with mysqli equivalents.

README 文档

README

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:

{
    "require": {
        "rubo77/php-mysql-fix": "^4.0"
    },
    "autoload": {
        "files": [
            "vendor/rubo77/php-mysql-fix/fix_mysql.inc.php"
        ]
    }
}

and then typing:

$ composer update

Alternatively you can manually download and include the file at the top of your PHP script:

<?php
require 'fix_mysql.inc.php';

discussion

see: https://stackoverflow.com/a/37877644/1069083

If you have any questions open an issue here or enhancements as Pull Request

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 114
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 113
  • Watchers: 8
  • Forks: 70
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-27