Support » Plugins » Witty Plugin Hack?

  • Since I have no clue about php syntax, is there a way to hack the witty.php file to call a witty.txt file from another site?

    Thanks for your time,

Viewing 2 replies - 1 through 2 (of 2 total)
  • From looking at the php code, there are 2 lines of code that could be changed. You could change the file name
    $file_path = “witty.txt”;
    to the name of your file like
    $file_path = “myfile.txt”;
    and the path
    $witty_file = (ABSPATH . “wp-content/” . $file_path);
    to the http location like
    $witty_file = (“” . $file_path);
    Then see what happens.
    However, you might want to email the author first.

    Be aware that if the plugin is probably using the “fopen” call to open the local file for reading and more and more hosts are disabling the ability of using “fopen” on remote files.

    So this plugin, when modified to read a remote file, might mysteriously fail to load the file. All’s not lost though, in addition to making the change of reading a remote file, the plugin will have to use CURL to get access to the file which should work.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Witty Plugin Hack?’ is closed to new replies.