diff --git a/reference/filesystem/constants.xml b/reference/filesystem/constants.xml
index 6662ea49ca..adbadb491d 100644
--- a/reference/filesystem/constants.xml
+++ b/reference/filesystem/constants.xml
@@ -1,5 +1,5 @@
-
+
&reftitle.constants;
&extension.constants;
@@ -103,6 +103,50 @@
+
+
+ FILE_USE_INCLUDE_PATH
+ (integer)
+
+
+
+
+
+
+
+
+
+ FILE_APPEND
+ (integer)
+
+
+
+
+
+
+
+
+
+ FILE_IGNORE_NEW_LINES
+ (integer)
+
+
+
+
+
+
+
+
+
+ FILE_SKIP_EMPTY_LINES
+ (integer)
+
+
+
+
+
+
+
diff --git a/reference/filesystem/functions/file-put-contents.xml b/reference/filesystem/functions/file-put-contents.xml
new file mode 100644
index 0000000000..c5be0a5ce7
--- /dev/null
+++ b/reference/filesystem/functions/file-put-contents.xml
@@ -0,0 +1,57 @@
+
+
+
+
+ file_put_contents
+ Write a string to a file
+
+
+ Description
+
+ intfile_put_contents
+ stringfilename
+ stringdata
+ intflags
+ resourcecontext
+
+
+ Identical to calling fopen, fwrite,
+ and fclose successively.
+
+
+ flags can take FILE_USE_INCLUDE_PATH
+ and/or FILE_APPEND, however the
+ FILE_USE_INCLUDE_PATH option should be used with caution.
+
+ ¬e.bin-safe;
+ &tip.fopen-wrapper;
+
+ See also:
+ fopen,
+ fwrite,
+ fclose, and
+ file_get_contents.
+
+
+
+
+