Home  |  Linux  | Mysql  | PHP  | XML
From:Philip Olson Date:Sat Nov  8 14:44:00 2008
Subject:cvs: phpdoc-bg /appendices about.xml ini.xml /faq using.xml
philip		Sat Nov  8 21:44:00 2008 UTC

  Modified files:              
    /phpdoc-bg/appendices	about.xml ini.xml 
    /phpdoc-bg/faq	using.xml 
  Log:
  fixed build
  # remember to delete the english entry in bg/faq/using.xml when updating
  
  
http://cvs.php.net/viewvc.cgi/phpdoc-bg/appendices/about.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc-bg/appendices/about.xml
diff -u phpdoc-bg/appendices/about.xml:1.9 phpdoc-bg/appendices/about.xml:1.10
--- phpdoc-bg/appendices/about.xml:1.9	Tue Apr  8 23:51:30 2008
+++ phpdoc-bg/appendices/about.xml	Sat Nov  8 21:44:00 2008
@@ -62,7 +62,7 @@
   <para>
    За собственици на Palm-съвместими устройства, Palm документът и iSilo
    форматите са идеални за тази платформа. Можете да носите със себе си вашия Palm
-   по време на всекидневните си пътувания и да използвате <link xlink:href="&url.palm.doc;">DOC</link>
+   по време на всекидневните си пътувания и да използвате DOC
    или <link xlink:href="&url.palm.isilo;">iSilo</link> четци (reader), за да опреснявате вашите
    PHP познания или просто да го използвате като бърз справочник.
   </para>
http://cvs.php.net/viewvc.cgi/phpdoc-bg/appendices/ini.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc-bg/appendices/ini.xml
diff -u phpdoc-bg/appendices/ini.xml:1.2 phpdoc-bg/appendices/ini.xml:1.3
--- phpdoc-bg/appendices/ini.xml:1.2	Tue Nov  4 10:18:49 2008
+++ phpdoc-bg/appendices/ini.xml	Sat Nov  8 21:44:00 2008
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- EN-Revision: 1.68 Maintainer: stanprog Status: ready -->
 
 <appendix xml:id="ini" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -4348,6 +4348,7 @@
          главният файл. Файлът се вмъква, все едно е вмъкнат посредством
          функция <function>require</function>, така че, при вмъкването 
          се използва <link linkend="ini.include-path">include_path</link>.
+        </para>
         <para>
          Специалната стойност <literal>none</literal>
          изключва автоматичното вмъкване за анализ.
http://cvs.php.net/viewvc.cgi/phpdoc-bg/faq/using.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc-bg/faq/using.xml
diff -u phpdoc-bg/faq/using.xml:1.4 phpdoc-bg/faq/using.xml:1.5
--- phpdoc-bg/faq/using.xml:1.4	Fri Feb  8 16:46:06 2008
+++ phpdoc-bg/faq/using.xml	Sat Nov  8 21:44:00 2008
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- EN-Revision: 1.30 Maintainer: nick Status: ready -->
 <chapter xml:id="faq.using" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
   <title>Използване на PHP</title>
@@ -346,7 +346,7 @@
     <question>
      <para>
       Как мога да създам (генерирам) PDF файл без да използвам платените и комерсиални
-      библиотеки <link linkend="ref.cpdf">ClibPDF</link> и 
+      библиотеки ClibPDF и 
       <link linkend="ref.pdf">PDFLib</link>?  Бих желал нещо което е безплатно и не изисква
       външни PDF библиотеки.
      </para>
@@ -415,6 +415,69 @@
     </answer>
    </qandaentry>
 
+   <!-- FIXME: Temporarily here to fix build -->
+   <qandaentry xml:id="faq.register-globals">
+    <question>
+     <para>
+      How does the PHP directive register_globals affect me?
+     </para>
+    </question>
+    <answer>
+     <para>
+      First, an explanation about what this ini setting does. Let's say the
+      following URL is used:
+      <literal>http://example.com/foo.php?animal=cat</literal>
+      and in <filename>foo.php</filename> we might have the following
+      PHP code:
+     </para>
+     <para>
+      <programlisting role="php">
+<![CDATA[
+<?php
+// Using $_GET here is preferred
+echo $_GET['animal'];
+
+// For $animal to exist, register_globals must be on
+// DO NOT DO THIS
+echo $animal;
+
+// This applies to all variables, so $_SERVER too
+echo $_SERVER['PHP_SELF'];
+
+// Again, for $PHP_SELF to exist, register_globals must be on
+// DO NOT DO THIS
+echo $PHP_SELF;
+?>
+]]>
+     </programlisting>
+    </para>
+    <para>
+     The code above demonstrates how register_globals creates a lot of
+     variables. For years this type of coding has been frowned upon, and for
+     years it's been disabled by default. Note that PHP 6 removes this
+     deprecated feature. So although most web hosts disable register_globals,
+     there are still outdated articles, tutorials, and books that require it
+     to be on. Plan accordingly.
+    </para>
+    <para>
+     See also the following resources for additional information:
+     <simplelist>
+      <member>The <link linkend="ini.register-globals">register_globals</link> directive</member>
+      <member>The <link linkend="security.globals">security chapter about register globals</link></member>
+      <member><link linkend="language.variables.external">Handling external variables</link></member>
+      <member>Use <link linkend="language.variables.superglobals">superglobals</link> instead</member>
+     </simplelist>
+    </para>
+    <note>
+     <para>
+      In the example above, we used an <acronym>URL</acronym> that contained
+      a QUERY_STRING. Passing information like this is done through a GET HTTP
+      Request, so this is why the superglobal <varname>$_GET</varname> was used.
+     </para>
+    </note>
+   </answer>
+  </qandaentry>
+
   </qandaset>
  </chapter>
 


Navigate in group php.doc.bg at sever news.php.net
Previous Next




  
No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants