mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-06 14:06:34 +02:00
Update Database links to use https
This commit is contained in:
@@ -14,6 +14,6 @@ MySQL and a little bit of MSSQL, or you need to connect to an Oracle database, t
|
|||||||
same drivers. You'll need to learn a brand new API for each database — and that can get silly.
|
same drivers. You'll need to learn a brand new API for each database — and that can get silly.
|
||||||
|
|
||||||
|
|
||||||
[mysqli]: http://php.net/mysqli
|
[mysqli]: https://secure.php.net/mysqli
|
||||||
[pgsql]: http://php.net/pgsql
|
[pgsql]: https://secure.php.net/pgsql
|
||||||
[mssql]: http://php.net/mssql
|
[mssql]: https://secure.php.net/mssql
|
||||||
|
@@ -27,10 +27,10 @@ your applications within your own development schedules so you won't be rushed l
|
|||||||
* [PHP: Choosing an API for MySQL][mysql_api]
|
* [PHP: Choosing an API for MySQL][mysql_api]
|
||||||
* [PDO Tutorial for MySQL Developers][pdo4mysql_devs]
|
* [PDO Tutorial for MySQL Developers][pdo4mysql_devs]
|
||||||
|
|
||||||
[mysql]: http://php.net/mysql
|
[mysql]: https://secure.php.net/mysqli
|
||||||
[mysql_deprecated]: http://php.net/migration55.deprecated
|
[mysql_deprecated]: https://secure.php.net/migration55.deprecated
|
||||||
[mysql_removed]: http://php.net/manual/en/migration70.removed-exts-sapis.php
|
[mysql_removed]: https://secure.php.net/manual/migration70.removed-exts-sapis.php
|
||||||
[mysqli]: http://php.net/mysqli
|
[mysqli]: https://secure.php.net/mysqli
|
||||||
[pdo]: http://php.net/pdo
|
[pdo]: https://secure.php.net/pdo
|
||||||
[mysql_api]: http://php.net/mysqlinfo.api.choosing
|
[mysql_api]: https://secure.php.net/mysqlinfo.api.choosing
|
||||||
[pdo4mysql_devs]: http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
|
[pdo4mysql_devs]: http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
|
||||||
|
@@ -71,7 +71,7 @@ unless of course you are using persistent connections.
|
|||||||
* [Learn about PDO connections]
|
* [Learn about PDO connections]
|
||||||
|
|
||||||
|
|
||||||
[pdo]: http://php.net/pdo
|
[pdo]: https://secure.php.net/pdo
|
||||||
[SQL Injection]: http://wiki.hashphp.org/Validation
|
[SQL Injection]: http://wiki.hashphp.org/Validation
|
||||||
[Learn about PDO]: http://php.net/book.pdo
|
[Learn about PDO]: https://secure.php.net/book.pdo
|
||||||
[Learn about PDO connections]: http://php.net/pdo.connections
|
[Learn about PDO connections]: https://secure.php.net/pdo.connections
|
||||||
|
@@ -48,7 +48,7 @@ logic in and you have a "View", which is very nearly [MVC] - a common OOP archit
|
|||||||
|
|
||||||
{% highlight php %}
|
{% highlight php %}
|
||||||
<?php
|
<?php
|
||||||
$db = new PDO('mysql:host=localhost;dbname=testdb;charset=utf8', 'username', 'password');
|
$db = new PDO('mysql:host=localhost;dbname=testdb;charset=utf8mb4', 'username', 'password');
|
||||||
|
|
||||||
// Make your model available
|
// Make your model available
|
||||||
include 'models/FooModel.php';
|
include 'models/FooModel.php';
|
||||||
@@ -98,6 +98,6 @@ real problem if you ever want to [unit-test](/#unit-testing) your application.
|
|||||||
developers just getting used to the concept of interacting with databases.
|
developers just getting used to the concept of interacting with databases.
|
||||||
|
|
||||||
|
|
||||||
[MVC]: http://code.tutsplus.com/tutorials/mvc-for-noobs--net-10488
|
[MVC]: https://code.tutsplus.com/tutorials/mvc-for-noobs--net-10488
|
||||||
[PHPBridge]: http://phpbridge.org/
|
[PHPBridge]: https://phpbridge.org/docs/
|
||||||
[Creating a Data Class]: http://phpbridge.org/intro-to-php/creating_a_data_class
|
[Creating a Data Class]: https://phpbridge.org/intro-to-php/creating_a_data_class
|
||||||
|
@@ -21,10 +21,10 @@ installed in any application you like:
|
|||||||
* [Zend-db][4]
|
* [Zend-db][4]
|
||||||
|
|
||||||
|
|
||||||
[1]: http://php.net/book.pdo
|
[1]: https://secure.php.net/book.pdo
|
||||||
[2]: http://www.doctrine-project.org/projects/dbal.html
|
[2]: https://www.doctrine-project.org/projects/dbal.html
|
||||||
[4]: https://packages.zendframework.com/docs/latest/manual/en/index.html#zendframework/zend-db
|
[4]: https://packages.zendframework.com/docs/latest/manual/en/index.html#zendframework/zend-db
|
||||||
[6]: https://github.com/auraphp/Aura.Sql
|
[6]: https://github.com/auraphp/Aura.Sql
|
||||||
[7]: http://propelorm.org/
|
[7]: http://propelorm.org/
|
||||||
[psr0]: http://www.php-fig.org/psr/psr-0/
|
[psr0]: https://www.php-fig.org/psr/psr-0/
|
||||||
[psr4]: http://www.php-fig.org/psr/psr-4/
|
[psr4]: https://www.php-fig.org/psr/psr-4/
|
||||||
|
Reference in New Issue
Block a user