Skip to content

Commit df119b0

Browse files
authored
Merge pull request #958 from petk/patch-https
Update php.net links to point to https://www.php.net
2 parents 55589d1 + 5638836 commit df119b0

27 files changed

+90
-91
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ All content is completely free now, and always will be.
116116
3. Wrap all text to 120 characters
117117
4. Code samples should adhere to PSR-1 or higher
118118
5. Use [GitHub Flavored Markdown](https://github.github.com/gfm/) for all content
119-
6. Use language agnostic urls when referring to external websites such as the [php.net](http://php.net/urlhowto.php) manual
119+
6. Use language agnostic urls when referring to external websites such as the [php.net](https://www.php.net/urlhowto.php) manual

_posts/01-02-01-Use-the-Current-Stable-Version.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ anchor: use_the_current_stable_version
88

99
If you are getting started with PHP, start with the current stable release of [PHP 8.2][php-release]. PHP 8.x adds many [new features](#language_highlights) over the older 7.x and 5.x versions. The engine has been largely re-written, and PHP is now even quicker than older versions. PHP 8 is a major update of the language and contains many new features and optimizations.
1010

11-
You should try to upgrade to the latest stable version quickly - PHP 7.4 [is already End of Life](http://php.net/supported-versions.php). Upgrading is easy, as there are not many backwards compatibility breaks [PHP 8.0][php-bc-80], [PHP 8.1][php-bc-81], [PHP 8.2][php-bc-82]. If you are not sure which version a function or feature is in, you can check the PHP documentation on the [php.net][php-docs] website.
11+
You should try to upgrade to the latest stable version quickly - PHP 7.4 [is already End of Life][php-supported]. Upgrading is easy, as there are not many backwards compatibility breaks [PHP 8.0][php-bc-80], [PHP 8.1][php-bc-81], [PHP 8.2][php-bc-82]. If you are not sure which version a function or feature is in, you can check the PHP documentation on the [php.net][php-docs] website.
1212

13-
[php-release]: https://php.net/downloads.php
14-
[php-docs]: https://php.net/manual/
15-
[php-bc-80]: https://php.net/manual/migration80.incompatible.php
16-
[php-bc-81]: https://php.net/manual/migration81.incompatible.php
17-
[php-bc-82]: https://php.net/manual/migration82.incompatible.php
13+
[php-release]: https://www.php.net/downloads.php
14+
[php-supported]: https://www.php.net/supported-versions.php
15+
[php-docs]: https://www.php.net/manual/
16+
[php-bc-80]: https://www.php.net/manual/migration80.incompatible.php
17+
[php-bc-81]: https://www.php.net/manual/migration81.incompatible.php
18+
[php-bc-82]: https://www.php.net/manual/migration82.incompatible.php

_posts/01-03-01-Built-in-Web-Server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ To start the server, run the following command from your terminal in your projec
1616
* [Learn about the built-in, command line web server][cli-server]
1717

1818

19-
[cli-server]: http://php.net/features.commandline.webserver
19+
[cli-server]: https://www.php.net/features.commandline.webserver

_posts/01-04-01-Mac-Setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ you and tie them all together, but ease of setup comes with a trade-off of flexi
7676
[MacPorts]: https://www.macports.org/install.php
7777
[phpbrew]: https://github.com/phpbrew/phpbrew
7878
[php-osx.liip.ch]: https://web.archive.org/web/20220505163210/https://php-osx.liip.ch/
79-
[mac-compile]: https://secure.php.net/install.macosx.compile
79+
[mac-compile]: https://www.php.net/install.macosx.compile
8080
[xcode-gcc-substitution]: https://github.com/kennethreitz/osx-gcc-installer
8181
["Command Line Tools for XCode"]: https://developer.apple.com/downloads
8282
[apache]: https://httpd.apache.org/

_posts/03-02-01-Programming-Paradigms.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@ available as `__call()` and `__callStatic()`.
5050
* [Read about Overloading][overloading]
5151

5252

53-
[oop]: https://secure.php.net/language.oop5
54-
[traits]: https://secure.php.net/language.oop5.traits
55-
[anonymous-functions]: https://secure.php.net/functions.anonymous
56-
[closure-class]: https://secure.php.net/class.closure
53+
[oop]: https://www.php.net/language.oop5
54+
[traits]: https://www.php.net/language.oop5.traits
55+
[anonymous-functions]: https://www.php.net/functions.anonymous
56+
[closure-class]: https://www.php.net/class.closure
5757
[closures-rfc]: https://wiki.php.net/rfc/closures
58-
[callables]: https://secure.php.net/language.types.callable
59-
[call-user-func-array]: https://secure.php.net/function.call-user-func-array
60-
[magic-methods]: https://secure.php.net/language.oop5.magic
61-
[reflection]: https://secure.php.net/intro.reflection
62-
[overloading]: https://secure.php.net/language.oop5.overloading
63-
58+
[callables]: https://www.php.net/language.types.callable
59+
[call-user-func-array]: https://www.php.net/function.call-user-func-array
60+
[magic-methods]: https://www.php.net/language.oop5.magic
61+
[reflection]: https://www.php.net/intro.reflection
62+
[overloading]: https://www.php.net/language.oop5.overloading

_posts/03-03-01-Namespaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ If you're going to use an autoloader standard for a new application or package,
2828
* [Read about PSR-4][psr4]
2929

3030

31-
[namespaces]: https://secure.php.net/language.namespaces
31+
[namespaces]: https://www.php.net/language.namespaces
3232
[psr0]: https://www.php-fig.org/psr/psr-0/
3333
[psr4]: https://www.php-fig.org/psr/psr-4/

_posts/03-04-01-Standard-PHP-Library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ over these datastructures or your own classes which implement SPL interfaces.
1414
* [SPL video course on LinkedIn.com (paid)][linkedin]
1515

1616

17-
[spl]: https://secure.php.net/book.spl
17+
[spl]: https://www.php.net/book.spl
1818
[linkedin]: https://www.linkedin.com/learning/learning-the-standard-php-library?trk=lynda_redirect_learning

_posts/03-05-01-Command-Line-Interface.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Hello, world
5353

5454
* [Learn about running PHP from the command line][php-cli]
5555

56-
[phpinfo]: https://secure.php.net/function.phpinfo
57-
[cli-options]: https://secure.php.net/features.commandline.options
58-
[argc]: https://secure.php.net/reserved.variables.argc
59-
[argv]: https://secure.php.net/reserved.variables.argv
56+
[phpinfo]: https://www.php.net/function.phpinfo
57+
[cli-options]: https://www.php.net/features.commandline.options
58+
[argc]: https://www.php.net/reserved.variables.argc
59+
[argv]: https://www.php.net/reserved.variables.argv
6060
[exit-codes]: https://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
61-
[php-cli]: https://secure.php.net/features.commandline.options
61+
[php-cli]: https://www.php.net/manual/en/features.commandline.php

_posts/05-03-01-Date-and-Time.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ A popular PHP API extension is [Carbon](https://carbon.nesbot.com/). It inherits
6565
* [Read about DateTime][datetime]
6666
* [Read about date formatting][dateformat] (accepted date format string options)
6767

68-
[datetime]: https://secure.php.net/book.datetime
69-
[dateformat]: https://secure.php.net/function.date
68+
[datetime]: https://www.php.net/book.datetime
69+
[dateformat]: https://www.php.net/function.date

_posts/05-05-01-PHP-and-UTF8.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Finally, If you are building a distributed application and cannot be certain tha
4444
enabled, then consider using the [symfony/polyfill-mbstring] Composer package. This will use `mbstring` if it is available, and
4545
fall back to non UTF-8 functions if not.
4646

47-
[Multibyte String Extension]: https://secure.php.net/book.mbstring
47+
[Multibyte String Extension]: https://www.php.net/book.mbstring
4848
[symfony/polyfill-mbstring]: https://packagist.org/packages/symfony/polyfill-mbstring
4949

5050
### UTF-8 at the Database level
@@ -146,19 +146,19 @@ header('Content-Type: text/html; charset=UTF-8'); // Unnecessary if your default
146146

147147
### Further reading
148148

149-
* [PHP Manual: String Operations](https://secure.php.net/language.operators.string)
150-
* [PHP Manual: String Functions](https://secure.php.net/ref.strings)
151-
* [`strpos()`](https://secure.php.net/function.strpos)
152-
* [`strlen()`](https://secure.php.net/function.strlen)
153-
* [`substr()`](https://secure.php.net/function.substr)
154-
* [PHP Manual: Multibyte String Functions](https://secure.php.net/ref.mbstring)
155-
* [`mb_strpos()`](https://secure.php.net/function.mb-strpos)
156-
* [`mb_strlen()`](https://secure.php.net/function.mb-strlen)
157-
* [`mb_substr()`](https://secure.php.net/function.mb-substr)
158-
* [`mb_internal_encoding()`](https://secure.php.net/function.mb-internal-encoding)
159-
* [`mb_http_output()`](https://secure.php.net/function.mb-http-output)
160-
* [`htmlentities()`](https://secure.php.net/function.htmlentities)
161-
* [`htmlspecialchars()`](https://secure.php.net/function.htmlspecialchars)
149+
* [PHP Manual: String Operations](https://www.php.net/language.operators.string)
150+
* [PHP Manual: String Functions](https://www.php.net/ref.strings)
151+
* [`strpos()`](https://www.php.net/function.strpos)
152+
* [`strlen()`](https://www.php.net/function.strlen)
153+
* [`substr()`](https://www.php.net/function.substr)
154+
* [PHP Manual: Multibyte String Functions](https://www.php.net/ref.mbstring)
155+
* [`mb_strpos()`](https://www.php.net/function.mb-strpos)
156+
* [`mb_strlen()`](https://www.php.net/function.mb-strlen)
157+
* [`mb_substr()`](https://www.php.net/function.mb-substr)
158+
* [`mb_internal_encoding()`](https://www.php.net/function.mb-internal-encoding)
159+
* [`mb_http_output()`](https://www.php.net/function.mb-http-output)
160+
* [`htmlentities()`](https://www.php.net/function.htmlentities)
161+
* [`htmlspecialchars()`](https://www.php.net/function.htmlspecialchars)
162162
* [Stack Overflow: What factors make PHP Unicode-incompatible?](https://stackoverflow.com/questions/571694/what-factors-make-php-unicode-incompatible)
163163
* [Stack Overflow: Best practices in PHP and MySQL with international strings](https://stackoverflow.com/questions/140728/best-practices-in-php-and-mysql-with-international-strings)
164164
* [How to support full Unicode in MySQL databases](https://mathiasbynens.be/notes/mysql-utf8mb4)

0 commit comments

Comments
 (0)