Title: Plugin Doesn&#039;t Work
Last modified: August 20, 2016

---

# Plugin Doesn't Work

 *  [JohnSM](https://wordpress.org/support/users/johnsm/)
 * (@johnsm)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-11/)
 * Hi!
    Does the plugin work under WP new version because the codes are pasted in
   Text Widget and saved but displayed as raw HTML.Below are the codes I tried to
   install in sidebar using Text Widget.
 *  <?php
 * // The following variable defines whether links are opened in a new window
    $
   openInNewWindow = “1”; $linkkey = “9b20845a-17b0-a924-75d4-a1fecc2de2bf”; $url
   = urlencode((($_SERVER[‘HTTPS’]==’on’)?’[https://&#8217](https://&#8217);:’[http://&#8217](http://&#8217);).
   $_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’]); $query = “pageurl=”.$url; $query.
   = “&linkkey=” .urlencode($linkkey); $query .= “&newwindow=” .urlencode($openInNewWindow);
   $query .= “&referer=”.urlencode($_SERVER[‘HTTP_REFERER’]);
 * //You can use any other function, which returns content back instead of CURL 
   or readfile()
    if(intval(get_cfg_var(‘allow_url_fopen’)) && function_exists(‘
   readfile’)) { @readfile(“[http://www.backlinks4u.com/getlinksbox.php?&#8221](http://www.backlinks4u.com/getlinksbox.php?&#8221);.
   $query); }elseif(function_exists(‘curl_init’)) { $ch = curl_init (“[http://www.backlinks4u.com/getlinksbox.php?&#8221](http://www.backlinks4u.com/getlinksbox.php?&#8221);.
   $query); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch);
 *  if(curl_error($ch))
    print “Error processing request”;
 *  curl_close ($ch);
    } else { print “It appears that your web host has disabled
   all functions for handling remote pages.”; } ?>
 * Kindly let me know what when wrong here.
    Thanks
 * [http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/](http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [hit-reach](https://wordpress.org/support/users/hit-reach/)
 * (@hit-reach)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-11/#post-3333054)
 * Hi John
 * Do you have a URL we can view to see what is going on?
 * Thanks
    Hit Reach

Viewing 1 replies (of 1 total)

The topic ‘Plugin Doesn't Work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/allow-php-in-posts-and-pages_edefed.
   svg)
 * [Allow PHP in Posts and Pages](https://wordpress.org/plugins/allow-php-in-posts-and-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/allow-php-in-posts-and-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [hit-reach](https://wordpress.org/support/users/hit-reach/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-11/#post-3333054)
 * Status: not resolved