Re: file_get_contents ( string filename [, int use_include_path])
| From: | Bas Jobsen | Date: | Wed, 14 Aug 2002 21:31:16 +0000 |
| Subject: | Re: file_get_contents ( string filename [, int use_include_path]) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112614@lists.php.net to get a copy of this message | ||
> string filename
The name of the file. b.e test.html or $_SERVER['DOCUMENT_ROOT'].'test.html'
> int use_include_path
Optional 1 true or 0 (or nothing) false the file above is in my default
include path.
Manual: you can use the optional second parameter and set it to "1", if you
want to search for the file in the include_path, too.
The default include path is defined in your php.ini:
Specifies a list of directories where the require(), include() and
fopen_with_path() functions look for files.
So call it like:
$string_with_file_contents=('file_with_the_wanted_content.ext');
Op donderdag 15 augustus 2002 00:06, schreef victor@argilent.com:
> Can someone explain me more abou the usage of this code:
>
> file_get_contents ( string filename [, int use_include_path])
>
> I just got it from the annual, and I still don't get what they mean by
>
> string filename
>
> and
>
> int use_include_path
>
> Thanks,
>
> This has to do with the other question I posted earlier, yes
>
> - Vic
>
>
>
> ______________________________________________________________________
> Post your ad for free now! http://personals.yahoo.ca