Jump to content

joomla question


cowboysdude

Recommended Posts

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!!

Link to comment
https://forums.phpfreaks.com/topic/157597-joomla-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.