Announcement

Collapse
No announcement yet.

File handling not working on PHP widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [CMS] File handling not working on PHP widget

    Yo.

    I'm trying to make a widget for the homepage that reads in data from a file, but I can't get it to work. Whenever I try to put fopen in the box where you put the PHP, it doesn't save properly and just reverts to what it was before with no error. For example...

    Before:
    Code:
    $output = '';
    Put this in the box:
    Code:
    $output = '';
    $fh = fopen($path, "r");
    After:
    Code:
    $output = '';
    What's up with that then!?

  • #2
    Its possible something on your server is blocking the data from being saved. Have you tried clearing your system cache?

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X