Roundcube Community Forum
Third Party Contributions => API Based Plugins => Topic started by: ayoub on July 30, 2009, 05:53:17 AM
-
I am currently developing a plugin
the problem is that I need to create a file
I tried this code:
$a = 'hello friend';
//$tmpfname = touch('/home/user/file.txt');
$fp = fopen("/home/user/file.txt", "a");
fwrite($fp,$a);
fclose($handle);
but the problem is not resolved
Can you help me please
thks
-
file_put_contents("/home/user/file.txt", $a);
-
thks
but the problem that the file is not created
-
Check folder permissions. Code is ok. This is not a php support forum.