Ctrl+U on any page will bring up code as the machine reads it. It doesn't show things like script code (what we see behind the scenes).
Like I use this code here to pull pages to my personal domain instead of having to do a huge file for each page:
PHP Code:
<?php if (isset($_GET['x'])) {
if (strpos($_GET['x'], "/")) {
$dir = substr(str_replace('..', '', $_GET['x']), 0, strpos($_GET['x'], "/")) . "/";
$file = substr(strrchr($_GET['x'], "/"), 1);
if (file_exists($dir.$file.".php")) {
include($dir.$file.".php");
} else {
include("default.php");
}
} else {
if (file_exists(basename($_GET['x']).".php")) {
include(basename($_GET['x']).".php");
} else {
include("default.php");
}
}
} else {
include("default.php");
} ?>
But when you pull up the site it outputs:
PHP Code:
<h1>i'll <strong>wait</strong> for <strong>you</strong>...</h1>
<img src="images/avatar.jpg" border="0" alt="" title="" style="float:left; padding:2px;" />
<p>Welcome to <a href="http://end-day.net">the end day network</a>, tequila's home on the web. You will find all of her websites and projects linked from here, as well as some information on the owner herself.</p>
<p>Also posted here will be updates on her sales through various market places, openings for commissions, and people that she thinks need help.</p>
<p>Thanks for stopping by, hope you'll find something of interest here.</p>
<center>×</center>
<h2>updates</h2>
<a href="http://end-day.net/blog/2010/01/23/new-sites/" rel="bookmark" title="Permanent Link to New Sites">New Sites</a><br />
<p>First off switched over to WordPress for updates, much easier and cleaner.<br />
Secondly, here are some new sites added to the network:</p>
<p>Tiger Girl (http://tigergirl.end-day.net)<br />
Crystalix Designs (http://design.end-day.net)</p>
<p>Thirdly I’ll be working on a new layout to better use the plugboard and exchange. Â I’ll also be adding a topsite list.<br />
Don’t forget to check out our hosting information.</p>