cowboysdude Posted May 10, 2009 Share Posted May 10, 2009 Currently I am working on a module but am having a bit of trouble with one thing...isn't that always the way?! The module uses a file called 'file.txt' but writing to this has been a challenge so far... I have in the Admin backend a txt area to write in and the format is as such filename.flv-title-time The user can directly modify the file.txt and it works fine in the mod but I cannot get the file.txt to populate in the joomla backend by doing the following; I have written a file called file.php which does this: $params->get('files'); $fp = fopen("file.txt","w+"); fwrite($fp,$params); fclose($fp); line 1 - get the info from the 'files' field in joomla backend line 2 - open file.txt for writing line 3 - write the params into the file line 4 - close the file NOW this should be working then within the next part of the mod the file.txt is there and it reads the contents just fine.. except that code will NOT write to the file.. Suggestions? Thanks guys and gals!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.