For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > September 2006 > cvs: phpdoc /en/chapters tutorial.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/chapters tutorial.xml
Philip Olson

2006-09-16, 6:58 pm

philip Sat Sep 16 20:21:10 2006 UTC

Modified files:
/phpdoc/en/chapters tutorial.xml
Log:
Added links/markup to the last commit by Rasmus


http://cvs.php.net/viewvc.cgi/phpdo...4&diff_format=u
Index: phpdoc/en/chapters/tutorial.xml
diff -u phpdoc/en/chapters/tutorial.xml:1.43 phpdoc/en/chapters/tutorial.xml:1.44
--- phpdoc/en/chapters/tutorial.xml:1.43 Sat Sep 16 01:59:28 2006
+++ phpdoc/en/chapters/tutorial.xml Sat Sep 16 20:21:09 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-9"?>
-<!-- $Revision: 1.43 $ -->
+<!-- $Revision: 1.44 $ -->
<chapter id="tutorial">
<title>A simple tutorial</title>

@@ -426,13 +426,15 @@
</example>
</para>
<para>
- Apart from the htmlspecialchars() and (int) parts, it should be obvious
- what this does. htmlspecialchars() makes sure any characters that are
+ Apart from the <function>htmlspecialchars</function> and
+ <literal>(int)</literal> parts, it should be obvious what this does.
+ <function>htmlspecialchars</function> makes sure any characters that are
special in html are properly encoded so people can't inject HTML tags
- or Javascript into your page. For the age field, since we know it is
- a number, we can just convert it to an integer which will automatically
- get rid of any stray characters. You can also have PHP do this for you
- automatically by using the filter extension.
+ or Javascript into your page. For the age field, since we know it is a
+ number, we can just <link linkend="language.types.typecasting">convert</link>
+ it to an <type>integer</type> which will automatically get rid of any
+ stray characters. You can also have PHP do this for you automatically by
+ using the <link linkend="ref.filter">filter</link> extension.
The <varname>$_POST['name']</varname> and <varname>$_POST['age']</varname>
variables are automatically set for you by PHP. Earlier we
used the <varname>$_SERVER</varname> autoglobal; above we just
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com