added security warnings about show_source and highlight_file

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@42980 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Beckham 2001-03-08 16:30:37 +00:00
parent f7716f7041
commit 2ca445496c

View file

@ -434,7 +434,17 @@ Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)<hr>
using the colors defined in the built-in syntax highlighter for PHP.
It returns true on success, false otherwise (PHP 4).
</simpara>
<para>
<note>
<simpara>
Care should be taken when using the
<function>show_source</function> and
<function>highlight_file</function> functions to make sure that
you do not inadvertently reveal sensitive information such as
passwords or any other type of information that might create a
potential security risk.
</simpara>
</note>
<para>
<example>
<title>Creating a source highlighting URL</title>
<simpara>
@ -448,11 +458,12 @@ Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)&lt;hr&gt;
In your httpd.conf you can add the following:
</simpara>
<para>
<informalexample><programlisting>
<informalexample>
<programlisting>
&lt;Location /source&gt;
ForceType application/x-httpd-php
&lt;/Location&gt;
</programlisting></informalexample>
</programlisting></informalexample>
</para>
<simpara>
And then make a file named &quot;source&quot; and put it in your
@ -490,9 +501,9 @@ Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)&lt;hr&gt;
</simpara>
<para>
<informalexample>
<programlisting>
<programlisting>
http://your.server.com/source/path/to/script.php
</programlisting>
</programlisting>
</informalexample>
</para>
</example>
@ -793,10 +804,18 @@ $binarydata = pack ("nvc*", 0x1234, 0x5678, 65, 66);
using the colors defined in the built-in syntax highlighter for PHP.
It returns true on success, false otherwise (PHP 4).
</simpara>
<simpara>
This function is an alias for the function
<function>highlight_file</function>
</simpara>
<note>
<simpara>
This function is an alias for the function
<function>highlight_file</function>
Care should be taken when using the
<function>show_source</function> and
<function>highlight_file</function> functions to make sure that
you do not inadvertently reveal sensitive information such as
passwords or any other type of information that might create a
potential security risk.
</simpara>
</note>
<simpara>