cvs: phpdoc /en/reference/info/functions get-included-files.xml

From: Date: Thu, 15 Jan 2004 00:15:32 +0000
Subject: cvs: phpdoc /en/reference/info/functions get-included-files.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358182@lists.php.net to get a copy of this message
kennyt Wed Jan 14 19:15:32 2004 EDT Modified files: /phpdoc/en/reference/info/functions get-included-files.xml Log: Added note and example about the fact that get_included_files() shows the first called script. Index: phpdoc/en/reference/info/functions/get-included-files.xml diff -u phpdoc/en/reference/info/functions/get-included-files.xml:1.7 phpdoc/en/reference/info/functions/get-included-files.xml:1.8 --- phpdoc/en/reference/info/functions/get-included-files.xml:1.7 Thu Dec 18 06:47:08 2003 +++ phpdoc/en/reference/info/functions/get-included-files.xml Wed Jan 14 19:15:32 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/info.xml, last change in rev 1.71 --> <refentry id="function.get-included-files"> <refnamediv> @@ -21,6 +21,11 @@ or <function>require_once</function>. </para> <para> + The script originally called is considered an "included file," so + it will be listed together with the files referenced by + <function>include</function> and family. + </para> + <para> Files that are included or required multiple times only show up once in the returned array. </para> @@ -32,15 +37,15 @@ </note> <para> <example> - <title><function>get_included_files</function> example</title> + <title><function>get_included_files</function> example (<filename>abc.php</filename>)</title> <programlisting role="php"> <![CDATA[ <?php -include("test1.php"); -include_once("test2.php"); -require("test3.php"); -require_once("test4.php"); +include 'test1.php'; +include_once 'test2.php'; +require 'test3.php'; +require_once 'test4.php'; $included_files = get_included_files(); @@ -56,6 +61,7 @@ </para> <screen> <![CDATA[ +abc.php test1.php test2.php test3.php

« previous php.doc (#969358182) next »