diff --git a/chapters/tutorial.xml b/chapters/tutorial.xml
index 96ade8f128..da8d2eacf4 100644
--- a/chapters/tutorial.xml
+++ b/chapters/tutorial.xml
@@ -226,12 +226,7 @@
special reserved PHP variable that contains all web server information.
It is known as a superglobal. See the related manual page on
superglobals
- for more information. These special variables were introduced in PHP
- 4.1.0. Before this time, we used
- the older $HTTP_*_VARS arrays instead,
- such as $HTTP_SERVER_VARS. As of PHP 5.4.0
- these older variables have been removed. (See also the note on
- old code.)
+ for more information.
@@ -454,52 +449,6 @@ Hi Joe. You are 22 years old.
-
- Using old code with new versions of PHP
-
- Now that PHP has grown to be a popular scripting language, there are
- a lot of public repositories and libraries containing code you can reuse.
- The PHP developers have largely tried to preserve backwards compatibility,
- so a script written for an older version will run (ideally) without changes
- in a newer version of PHP. In practice, some changes will usually be needed.
-
-
- Two of the most important recent changes that affect old code are:
-
-
-
- The old $HTTP_*_VARS arrays are not available as of
- PHP 5.4.0. The following
- superglobal arrays
- were introduced in PHP 4.1.0.
- They are: $_GET, $_POST,
- $_COOKIE, $_SERVER,
- $_FILES, $_ENV,
- $_REQUEST, and $_SESSION.
-
-
-
-
- External variables are no longer registered in the global scope by
- default. In other words, as of PHP
- 4.2.0 the PHP directive
- register_globals is
- off by default in &php.ini;. The preferred
- method of accessing these values is via the superglobal arrays mentioned
- above. Older scripts, books, and tutorials may rely on this
- directive being on. If it were on,
- for example, one could use $id from the URL
- http://www.example.com/foo.php?id=42. Whether on
- or off, $_GET['id'] is available.
-
-
-
- For more details on these changes, see the section on
- predefined variables
- and links therein.
-
-
-
What's next?
diff --git a/faq/build.xml b/faq/build.xml
index 30399b5e81..364203a4f6 100644
--- a/faq/build.xml
+++ b/faq/build.xml
@@ -187,71 +187,6 @@
-
-
-
- I can't figure out how to build PHP with Apache 1.3.
-
-
-
-
- This is actually quite easy. Follow these steps carefully:
-
-
-
- Grab the latest Apache 1.3 distribution from
- &url.apache.source;.
-
-
-
-
- Ungzip and untar it somewhere, for example
- /usr/local/src/apache-1.3.
-
-
-
-
- Compile PHP by first running
- ./configure --with-apache=/<path>/apache-1.3
- (substitute <path> for the actual path to your apache-1.3 directory).
-
-
-
-
- Type make followed by make install
- to build PHP and copy the necessary files to the Apache distribution tree.
-
-
-
-
- Change directories into to your /<path>/apache-1.3/src
- directory and edit the Configuration file.
- Add to the file:
- AddModule modules/php4/libphp4.a.
-
-
-
-
- Type: ./configure followed by make.
-
-
-
-
- You should now have a PHP-enabled httpd binary!
-
-
-
-
-
- Note: You can also use the new Apache
- ./configure script. See the instructions in
- the README.configure file which is part of
- your Apache distribution. Also have a look at the INSTALL
- file in the PHP distribution.
-
-
-
-
diff --git a/faq/databases.xml b/faq/databases.xml
index dbd2bff058..ea36a71202 100644
--- a/faq/databases.xml
+++ b/faq/databases.xml
@@ -37,11 +37,6 @@
Can I access Microsoft Access databases?
-
- Yes. You already have all the tools you need if you are running
- entirely under Windows 9x/Me, or NT/2000, where you can use
- ODBC and Microsoft's ODBC drivers for Microsoft Access databases.
-
If you are running PHP on a Unix box and want to talk to MS Access
on a Windows box you will need Unix ODBC drivers.
@@ -150,76 +145,6 @@
-
-
-
-
- Why is the MySQL extension (ext/mysql) that I've been using for over
- 10 years discouraged from use? Is it deprecated? What do I use instead?
- How can I migrate?
-
-
-
-
- There are three MySQL extensions, as described under the
- Choosing a MySQL API section. The old API
- should not be used, it is deprecated as of PHP 5.5.0 and has been moved to PECL as of PHP 7.0.0.
- You are strongly encouraged
- to write all new code with either mysqli or
- PDO_MySQL.
-
-
- Migration scripts are not available at this time, although the mysqli API contains both
- a procedural and OOP API, with the procedural version being similar to ext/mysql.
-
-
- It is not possible to mix the extensions. So, for example, passing a mysqli connection to
- PDO_MySQL or ext/mysql will not work.
-
-
-
-
-
-
-
- Why do I get an error that looks something like this:
- "Warning: 0 is not a MySQL result index in <file>
- on line <x>" or "Warning: Supplied argument is not
- a valid MySQL result resource in <file> on line <x>"?
-
-
-
-
- You are trying to use a result identifier that is 0. The 0 indicates
- that your query failed for some reason. You need to check for errors
- after submitting a query and before you attempt to use the returned
- result identifier. The proper way to do this is with code similar
- to the following:
-
-
-]]>
-
- or
-
-
-]]>
-
-
-
-
diff --git a/faq/installation.xml b/faq/installation.xml
index 3d73389fe4..c637824502 100644
--- a/faq/installation.xml
+++ b/faq/installation.xml
@@ -418,7 +418,7 @@ cgi error:
- On Windows 7, XP, Vista, 2008, 2012 and up:
+ On Windows:
Go to Control Panel and open the System icon (Start → Control Panel)
@@ -447,38 +447,12 @@ cgi error:
-
- On Windows 98/Me you need to edit the autoexec.bat
- file:
-
-
- Open the Notepad (Start → Run and enter notepad)
-
-
- Open the C:\autoexec.bat file
-
-
- Locate the line with PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;..... and add:
- ;C:\php to the end of the line
-
-
- Save the file and restart your computer
-
-
-
Be sure to reboot after following the steps above to ensure that the
PATH changes are applied.
-
- The PHP manual used to promote the copying of files into the Windows
- system directory, this is because this directory
- (C:\Windows, C:\WINNT, etc.)
- is by default in the system's PATH. Copying files into the Windows
- system directory has long since been deprecated and may cause problems.
-
@@ -523,29 +497,6 @@ cgi error:
-
- On Windows 98/Me you need to edit the autoexec.bat
- file:
-
-
- Open the Notepad (Start → Run and enter notepad)
-
-
- Open the C:\autoexec.bat file
-
-
- Add a new line to the end of the file: set
- PHPRC=C:\php (replace C:\php with the
- directory where &php.ini; is located). Please note that the path
- cannot contain spaces. For instance, if you have installed PHP in
- C:\Program Files\PHP, you would enter
- C:\PROGRA~1\PHP instead.
-
-
- Save the file and restart your computer
-
-
-
diff --git a/faq/passwords.xml b/faq/passwords.xml
index d7074c6358..196e19c8f7 100644
--- a/faq/passwords.xml
+++ b/faq/passwords.xml
@@ -76,17 +76,16 @@
output.
- PHP 5.5 provides
+ PHP provides
a native password hashing API that
safely handles both hashing
and verifying passwords
- in a secure manner. There is also
- a pure PHP compatibility library
- available for PHP 5.3.7 and later.
+ in a secure manner.
+
Another option is the crypt function, which
- supports several hashing algorithms in PHP 5.3 and later. When using
+ supports several hashing algorithms. When using
this function, you are guaranteed that the algorithm you select is
available, as PHP contains native implementations of each supported
algorithm, in case one or more are not supported by your system.
diff --git a/faq/using.xml b/faq/using.xml
index a539944ff7..f2c894b9e6 100644
--- a/faq/using.xml
+++ b/faq/using.xml
@@ -12,6 +12,7 @@
+
I cannot remember the parameter order of PHP functions, are they random?
@@ -300,9 +301,6 @@ foreach ($headers as $name => $content) {
outside of PHP as it describes common scenarios for
external variables, like from a HTML form, a Cookie, and the URL.
-
- ¬e.registerglobals;
-
@@ -324,23 +322,6 @@ foreach ($headers as $name => $content) {
-
-
-
- I'm trying to access one of the standard CGI
- variables (such as $DOCUMENT_ROOT or
- $HTTP_REFERER) in a user-defined
- function, and it can't seem to find it. What's wrong?
-
-
-
-
- Use $_SERVER['DOCUMENT_ROOT'] and
- $_SERVER['HTTP_REFERER'] instead.
-
-
-
-
@@ -370,24 +351,6 @@ foreach ($headers as $name => $content) {
-
-
-
-
- Windows: I keep getting connection timeouts when using localhost,
- whereas "127.0.0.1" works?
-
-
-
-
- Prior to PHP 5.3.4, there was a bug in the network resolving code inside PHP that
- caused localhost in all stream related situations to fail if IPv6
- was enabled. To work around this issue you can either use "127.0.0.1"
- or disable IPv6 resolving in the hosts file.
-
-
-
-
diff --git a/language-snippets.ent b/language-snippets.ent
index df377b921f..360b095ca7 100644
--- a/language-snippets.ent
+++ b/language-snippets.ent
@@ -99,12 +99,6 @@ to seed the random number generator with srand or
mt_srand as this is done automatically.
'>
-register_globals: important
-noteAs of PHP 4.2.0, the default value for the PHP directive
-register_globals is
-off. The PHP community discourages developers from relying on this directive, and encourages the use
-of other means, such as the &link.superglobals;.'>
-
This is a 'superglobal', or
automatic global, variable. This simply means that it is available in
all scopes throughout a script. There is no need to do
@@ -604,12 +598,6 @@ use.'>
'>
-predefined variable
-arrays may be disabled with the
-register_long_arrays
-directive.'>
-
When an int is used, the
value is measured in bytes. Shorthand notation, as described
in this FAQ, may also be used.
@@ -1783,36 +1771,31 @@ field_offsetThe numerical field offset. The
This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0.
Instead, the MySQLi or PDO_MySQL extension should be used.
-See also MySQL: choosing an API guide and
-related FAQ for more information.
+See also MySQL: choosing an API guide.
Alternatives to this function include:'>
This function was deprecated in PHP 4.3.0, and it
and the entire original MySQL extension was removed in PHP 7.0.0.
Instead, use either the actively developed MySQLi or PDO_MySQL extensions.
-See also the MySQL: choosing an API guide and its
-related FAQ entry for additional information.
+See also the MySQL: choosing an API guide.
Alternatives to this function include:'>
This function was deprecated in PHP 5.3.0, and it
and the entire original MySQL extension was removed in PHP 7.0.0.
Instead, use either the actively developed MySQLi or PDO_MySQL extensions.
-See also the MySQL: choosing an API guide and its
-related FAQ entry for additional information.
+See also the MySQL: choosing an API guide.
Alternatives to this function include:'>
This function was deprecated in PHP 5.4.0, and it
and the entire original MySQL extension was removed in PHP 7.0.0.
Instead, use either the actively developed MySQLi or PDO_MySQL extensions.
-See also the MySQL: choosing an API guide and its
-related FAQ entry for additional information.
+See also the MySQL: choosing an API guide.
Alternatives to this function include:'>
This function was deprecated in PHP 5.5.0, and it
and the entire original MySQL extension was removed in PHP 7.0.0.
Instead, use either the actively developed MySQLi or PDO_MySQL extensions.
-See also the MySQL: choosing an API guide and its
-related FAQ entry for additional information.
+See also the MySQL: choosing an API guide.
Alternatives to this function include:'>