em_product_show.php

来自「This is example for E-Market to use sequ」· PHP 代码 · 共 32 行

PHP
32
字号
<?
	session_start();

	$filename = '../Database/' . $_SESSION['system'] .  '/product.txt';
	if (!file_exists($filename)) {
		$handle = fopen($filename, 'a+') ;
		fwrite($handle, "**HEAD**") ;
	   fclose($handle) ;
   }
   if (!$handle = fopen($filename, 'r')) {
		echo "Cannot open file ($filename)";
      exit;
   }
	$contents = fread($handle, filesize($filename));
	$productlist = split('~',$contents) ;
	fclose($handle);
?>

<html>
<head>
<title>Product</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-874">
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body leftmargin="0" topmargin="0">

<font class="titleorangel">蹬掖⒁垄艇 - 崾揣试工橐</font><hr>

<table width="100%" cellspacing="1" cellpadding="1" border="0">
	<tr>
		<td width="77%" align="right">&nbsp;</td>
		<td width="13%" align="right">ㄓ骨狗砧恃瑙

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?