<!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>
<!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>
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
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'>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";