From 0852df0fcc4afe5755aa9a957ab26f0340e4f1b0 Mon Sep 17 00:00:00 2001 From: Aidan Lister Date: Fri, 16 Jul 2004 11:20:24 +0000 Subject: [PATCH] Added an example for opening a URI git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163442 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../filesystem/functions/file-get-contents.xml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/reference/filesystem/functions/file-get-contents.xml b/reference/filesystem/functions/file-get-contents.xml index c65bed05c2..6e52d54f81 100644 --- a/reference/filesystem/functions/file-get-contents.xml +++ b/reference/filesystem/functions/file-get-contents.xml @@ -1,5 +1,5 @@ - + @@ -24,6 +24,22 @@ contents of a file into a string. It will use memory mapping techniques if supported by your OS to enhance performance. + + Using <function>file_get_contents</function> with a URI + + If you're opening a URI with special characters, such as spaces, you need to encode + the URI with urlencode. + + + +]]> + + ¬e.bin-safe; &tip.fopen-wrapper; ¬e.context-support;