From c373ab8a1f02ca529817aa74f0f46238d913e67f Mon Sep 17 00:00:00 2001 From: Shayughul Date: Thu, 1 Sep 2016 11:41:42 -0500 Subject: [PATCH] Update line 36 I believe you are missing the second variable for the fopen() function. I proposed the 'w'. It was throwing an error for me before this. --- cwslack-follow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwslack-follow.php b/cwslack-follow.php index 447e130..4dd9001 100644 --- a/cwslack-follow.php +++ b/cwslack-follow.php @@ -33,7 +33,7 @@ } else { - $f = fopen($dir."storage.txt") or die("can't open file"); //If not, create it. + $f = fopen($dir."storage.txt", 'w') or die("can't open file"); //If not, create it. fclose($f); //Close newly created file. $file = file_get_contents($dir."/storage.txt",FILE_SKIP_EMPTY_LINES); //Open it again for reading. }