rhaworth.net
curl_exec() getting https://
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /qxq was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
curl_exec() getting http://
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="Author" content="Roger W. Haworth" />
	<title>RHaworth.me default 404 page</title>
</head>
file_get_contents() getting https://
<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8">
  <title>The smallest possible valid (X)HTML documents · Mathias Bynens</title>
  <meta name="viewport" content="width=device-width">
  <link rel=&
file_get_contents() getting http://
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="Author" content="Roger W. Haworth" />
	<title>RHaworth.me default 404 page</title>
</head>
parse_ini_file()

array (
  'urn' => 'sid.ucoz.net',
  'usnam' => 'user_name',
  'uspas' => 'secret',
)

show_source()
<?php 

    
require_once("../../httpdocs/test/ukcdis.php");

?>

mikrocosm.com
no problems

posp.org.uk
no problems

rhaworth.com
Problems with UK Cheapest disabling functions
curl_exec() getting https://
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /qxq was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
curl_exec() getting http://
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="Author" content="Roger W. Haworth" />
	<title>RHaworth.me default 404 page</title>
</head>
file_get_contents() getting https://
<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8">
  <title>The smallest possible valid (X)HTML documents · Mathias Bynens</title>
  <meta name="viewport" content="width=device-width">
  <link rel=&
file_get_contents() getting http://
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="Author" content="Roger W. Haworth" />
	<title>RHaworth.me default 404 page</title>
</head>
parse_ini_file()

array (
  'urn' => 'sid.ucoz.net',
  'usnam' => 'user_name',
  'uspas' => 'secret',
)

This server does not allow_url_fopen so highlight_file() is a completely harmless function

Warning: highlight_file(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/rhaworth.net/httpdocs/test/ukcdis.php on line 60

Warning: highlight_file(http://posp.org.uk/book/dopapac.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/rhaworth.net/httpdocs/test/ukcdis.php on line 60

Warning: highlight_file(): Failed opening 'http://posp.org.uk/book/dopapac.php' for highlighting in /var/www/vhosts/rhaworth.net/httpdocs/test/ukcdis.php on line 60
show_source()
<?php 

    
require_once("../../httpdocs/test/ukcdis.php");

?>
highlight_file()
<?php 

    
require_once("../../httpdocs/test/ukcdis.php");

?>
highlight_file() - without the highlighting - using file_get_contents() to display this script
<?php 

    require_once("../../httpdocs/test/ukcdis.php");

?>
 
 

theplayersofstpeter.org.uk
no problems

croydonquakers.org.uk
no problems

epsomquakers.org.uk
no problems

southlondonquakers.org.uk
no problems

purleyquakers.org.uk
404 Not Found

Not Found

The requested URL /test/ukctest.php was not found on this server.


slaqm.org.uk
no problems

This page is created by:
ukcscan.php
<?php

    $titext
="Scan all sites for UK Cheapest disabling functions";

/*  ------------------------------------------------------------------------------------------------*/

    
date_default_timezone_set('UTC');
    
error_reporting(0x7FFF ^ (E_NOTICE E_STRICT));
    
ini_set('display_startup_errors',1);
    
ini_set("display_errors",1);

    include(
'../../httpdocs/incl/http_get.php');
    include(
'../../httpdocs/incl/rwhead5.php');

    
rwhhead($titext,FALSE);

?>

<style>

.narr { font: bold 130% sans-serif; margin: 2em 2em 0.7em; color: #077; }
pre, .samp { background: #DDF; }

</style>
</head>

<body>

<?php

function show_dom($dom,$testring) {
    echo 
"<div style='font: bold 400% sans-serif; margin: 0.7em 2em 0.7em; color: #077;'>\n".
         
"<hr style='margin-bottom: 0.4em;'>\n$dom</div>\n$testring";
}

    
show_dom("rhaworth.net",$def_tstr=http_get("http://rhaworth.net/test/ukctest.php?api"));

    
$othr_doms=array(
        
"mikrocosm.com""posp.org.uk""rhaworth.com""theplayersofstpeter.org.uk",
        
"croydonquakers.org.uk""epsomquakers.org.uk""southlondonquakers.org.uk",
        
"purleyquakers.org.uk",  "slaqm.org.uk",
    );

    foreach(
$othr_doms as $dom) {
        
$tstr=http_get("http://$dom/test/ukctest.php?api");
        
show_dom($dom$tstr==$def_tstr "no problems\n" $tstr);
    }

    echo 
"<div style='font: bold 400% sans-serif; margin: 0.7em 2em 0.7em; color: #077;'>\n".
         
"<hr style='margin-bottom: 0.4em;'>\n</div>\n".
         
"This page is created by:\n".
         
"<div class='narr'>ukcscan.php</div>\n".
         
"<div class='samp'>\n\n"highlight_file("ukcscan.php",true) ."\n\n</div>\n".
         
"<div class='narr'>ukctest.php</div>\n".
         
"<div class='samp'>\n\n"highlight_file("ukctest.php",true) ."\n\n</div>\n".
         
"<div class='narr'>ukcdis.php</div>\n".
         
"<div class='samp'>\n\n"highlight_file("ukcdis.php",true) ."\n\n</div>\n";

?>

<br>&nbsp;<br>

</body>
</html>
ukctest.php
<?php 

    
require_once("../../httpdocs/test/ukcdis.php");

?>
ukcdis.php
<?php

    $titext
="Problems with UK Cheapest disabling functions";

/*  ------------------------------------------------------------------------------------------------*/

    
date_default_timezone_set('UTC');
    
error_reporting(0x7FFF ^ (E_NOTICE E_STRICT));
    
ini_set('display_startup_errors',1);
    
ini_set("display_errors",1);

    include(
'../../httpdocs/incl/http_get.php');
    include(
'../../httpdocs/incl/rwhead5.php');

    if (!isset(
$_REQUEST['api'])) {

        
rwhhead($titext,FALSE);

?>

<style>

.narr { font: bold 130% sans-serif; margin: 2em 2em 0.7em; color: #077; }
pre, .samp { background: #DDF; }

</style>
</head>

<body>

<?php

    
}

    echo 
"<div class='narr'>curl_exec() getting https://</div>\n";
    echo 
"<pre>"htmlspecialchars(http_get('https://www.uk-cheapest.co.uk/qxq')) ."</pre>\n";

    echo 
"<div class='narr'>curl_exec() getting http://</div>\n";
    echo 
"<pre>"substr(htmlspecialchars(http_get('http://rhaworth.me/404.htm')),0,530) ."</pre>\n";

    echo 
"<div class='narr'>file_get_contents() getting https://</div>\n";
    echo 
"<pre>"substr(htmlspecialchars(
               
file_get_contents('https://mathiasbynens.be/notes/minimal-html')),0,299) ."</pre>\n";

    echo 
"<div class='narr'>file_get_contents() getting http://</div>\n";
    echo 
"<pre>"substr(htmlspecialchars(
               
file_get_contents('http://rhaworth.me/404.htm')),0,530) ."</pre>\n";

    echo 
"<div class='narr'>parse_ini_file() </div>\n";
    
$ans=parse_ini_file("../../httpdocs/test/sample.ini");
    echo 
"<div class='samp'><pre>\n\n"var_export($ans,true) ."\n\n</pre></div>\n";

    
$samp_fn="../../httpdocs/test/ukctest.php";

    if (!isset(
$_REQUEST['api'])) {

        echo 
"<div class='narr'>This server does not allow_url_fopen so highlight_file() is a ".
             
"completely harmless function</div>\n";
        
# next must be separate echo to get error messages after the heading
        
echo "<div class='samp'>\n\n"highlight_file("http://posp.org.uk/book/dopapac.php",true) .
             
"\n\n</div>\n";

    }

    echo 
"<div class='narr'>show_source()</div>\n";
    echo 
"<div class='samp'>\n\n"show_source($samp_fn,true) ."\n\n</div>\n";

    if (!isset(
$_REQUEST['api'])) {

        echo 
"<div class='narr'>highlight_file()</div>\n";
        echo 
"<div class='samp'>\n\n"highlight_file($samp_fn,true) ."\n\n</div>\n";

        echo 
"<div class='narr'>highlight_file() - without the highlighting - using ".
             
"file_get_contents() to display this script</div>\n";
        echo 
"<pre>"htmlspecialchars(@file_get_contents($_SERVER['SCRIPT_FILENAME'])) ."</pre>\n";

?>

&nbsp;<br>&nbsp;<br>

</body>
</html>

<?php

    
}