PHP Classes

File: frameset.php

Recommend this page to a friend!
  Classes of Grigori Kochanov   PHP server-side web browser   frameset.php   Download  
File: frameset.php
Role: Example script
Content type: text/plain
Description: frameset
Class: PHP server-side web browser
Browsing the Web via PHP
Author: By
Last change:
Date: 21 years ago
Size: 678 bytes
 

Contents

Class file image Download
<?php
if (!isset($HTTP_POST_VARS['URI']) || !$HTTP_POST_VARS['URI']){
   
header("Location: index.html");
    die;
}
$uri = urlencode($HTTP_POST_VARS['URI']);

$frameset = <<<FRAMESET
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title></title>
</head>
<!-- frames -->
<frameset rows="8%,*">
    <frame name="php_browser_location" src="location.html" marginwidth="10" marginheight="10" scrolling="no" frameborder="1" noresize>
    <frame name="php_browser_main" src="main.php?php_browser_uri=
$uri" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
</frameset>

</html>

FRAMESET;
echo
$frameset;

?>