Title: Witty Plugin Hack?
Last modified: August 18, 2016

---

# Witty Plugin Hack?

 *  [csmith](https://wordpress.org/support/users/csmith/)
 * (@csmith)
 * [21 years ago](https://wordpress.org/support/topic/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,
    charles

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [jwurster](https://wordpress.org/support/users/jwurster/)
 * (@jwurster)
 * [21 years ago](https://wordpress.org/support/topic/witty-plugin-hack/#post-218101)
 * 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 = (“[http://www.noname.com/stuf/&#8221](http://www.noname.com/stuf/&#8221);.
   $file_path); Then see what happens. However, you might want to email the author
   first. jim
 *  [Cypher](https://wordpress.org/support/users/cypher/)
 * (@cypher)
 * [21 years ago](https://wordpress.org/support/topic/witty-plugin-hack/#post-218132)
 * 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.
 * Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Witty Plugin Hack?’ is closed to new replies.

 * 2 replies
 * 3 participants
 * Last reply from: [Cypher](https://wordpress.org/support/users/cypher/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/witty-plugin-hack/#post-218132)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
