Installing Wordpress on Redbrick: Difference between revisions

Jump to navigation Jump to search
m
→‎functions.php: Opps, code was accidently cut off
m (Link to Wordpress defect)
m (→‎functions.php: Opps, code was accidently cut off)
Line 189: Line 189:
                 if ( !$proxy_fp )
                 if ( !$proxy_fp )
                         return false;
                         return false;
                 fputs($proxy_fp, "GET $uri HTTP/1.0\r\nHost: proxy.dcu.ie\r\n\r$
                 fputs($proxy_fp, "GET $uri HTTP/1.0\r\nHost: proxy.dcu.ie\r\n\r\n");
                 while(!feof($proxy_fp))
                 while(!feof($proxy_fp))
                         $proxy_cont .= fread($proxy_fp,4096);
                         $proxy_cont .= fread($proxy_fp,4096);
                 fclose($proxy_fp);
                 fclose($proxy_fp);
               $proxy_cont = substr($proxy_cont, strpos($proxy_cont,"\r\n\r\n")$
               $proxy_cont = substr($proxy_cont, strpos($proxy_cont,"\r\n\r\n")+4);
         } else if ( function_exists('curl_init') ) {
         } else if ( function_exists('curl_init') ) {


Now the Google Sitemaps plugin should work a treat and ping google correctly.
Now the Google Sitemaps plugin should work a treat and ping google correctly.
269

edits

Navigation menu