Index: phpdoc/faqurls.ent
diff -u phpdoc/faqurls.ent:1.14 phpdoc/faqurls.ent:1.15
--- phpdoc/faqurls.ent:1.14 Sun Oct 14 05:16:30 2001
+++ phpdoc/faqurls.ent Sun Oct 14 06:41:34 2001
@@ -1,6 +1,6 @@
+
Common ProblemsCommon Problems
-
- Here is a bunch of common problems, met every
- day with PHP, and solved the easy way!
-
+
+ Here is a bunch of common problems, met every
+ day with PHP, and solved the easy way!
+
@@ -27,59 +27,60 @@
to help the developers pinpoint the problem. If you are using
PHP as an Apache module try something like:
-
-
+
+
Stop your httpd processes
-
-
-
-
+
+
+
+
gdb httpd
-
-
-
-
+
+
+
+
Stop your httpd processes
-
-
-
-
+
+
+
+
> run -X -f /path/to/httpd.conf
-
-
-
-
+
+
+
+
Then fetch the URL causing the problem with your browser
-
-
-
-
+
+
+
+
> run -X -f /path/to/httpd.conf
-
-
-
-
+
+
+
+
If you are getting a core dump, gdb should inform you of this now
-
-
-
-
+
+
+
+
type: bt
-
-
-
-
+
+
+
+
You should include your backtrace in your bug report. This should be submitted to
&faqurl.php.bugs;
-
-
+
+
If your script uses the regular expression functions
- (ereg() and friends), you should make sure
+ (ereg and friends), you should make sure
that you compiled PHP and Apache with the same regular
- expression package. (This should happen automatically with PHP and Apache 1.3.x)
+ expression package. This should happen automatically with
+ PHP and Apache 1.3.x
@@ -94,10 +95,10 @@
- Environment variables are now normal global variables, so you must
- either declare them as global variables in your function (by using
- "global $DOCUMENT_ROOT;", for example) or by using
- the global variable array (ie, "$GLOBALS["DOCUMENT_ROOT"]".
+ Environment variables are normal global variables, so you must
+ either declare them as global variables in your function (by using
+ "global $DOCUMENT_ROOT;", for example) or by using
+ the global variable array (ie, "$GLOBALS["DOCUMENT_ROOT"]".
@@ -106,7 +107,7 @@
I patched Apache with the FrontPage extensions patch, and suddenly PHP stopped
- working. Is PHP incompatible with the Apache FrontPage extensions?
+ working. Is PHP incompatible with the Apache FrontPage extensions?
@@ -124,7 +125,7 @@
I think I found a bug! Who should I tell?
-
+
Index: phpdoc/en/faq/html.xml
diff -u phpdoc/en/faq/html.xml:1.4 phpdoc/en/faq/html.xml:1.5
--- phpdoc/en/faq/html.xml:1.4 Fri Sep 21 18:47:31 2001
+++ phpdoc/en/faq/html.xml Sun Oct 14 06:41:34 2001
@@ -1,13 +1,13 @@
-
+
PHP and HTMLPHP and HTML
-
- PHP and HTML interact a lot : PHP generate HTML, and HTML
- has informations that will be sent to PHP.
-
+
+ PHP and HTML interact a lot : PHP generate HTML, and HTML
+ has informations that will be sent to PHP.
+
@@ -20,28 +20,42 @@
you name the <input>, <select> or <textarea>
elements like this:
- <input name="MyArray[]">
- <input name="MyArray[]">
- <input name="MyArray[]">
- <input name="MyArray[]">
+
+
+
+
+]]>
Notice the square brackets after the variable name, that's what
makes it an array. You can group the elements into different arrays
by assigning the same name to different elements:
- <input name="MyArray[]">
- <input name="MyArray[]">
- <input name="MyOtherArray[]">
- <input name="MyOtherArray[]">
+
+
+
+
+]]>
This produces two arrays, MyArray and MyOtherArray, that gets sent
to the PHP script.
- Note that you must not use indices with arrays in HTML!
- The array gets filled in the order the elements appear in the form. For
- functions you can use to process these arrays once you get them into
- your scripts, please see the Arrays section in the manual.
+
+
+ You need not use indices with arrays in HTML, although you can
+ specify number or associative indices, so you can exactly specify
+ what indices will contain the information provided by that
+ input element. If you do not specify indices, the array gets
+ filled in the order the elements appear in the form.
+
+
+
+
+ For functions you can use to process these arrays once you get
+ them into your scripts, please see the
+ Arrays section.