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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.