Hi,
I want to read and display MS word document with out changing its formates (like paragraph, color, bold, etc).
I already try the following code.
<?php
$id=$_GET["id"];
include("config/opendb.php");
$sql="SELECT path FROM job_apply WHERE id= '$id'";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
header('Content-Type: text/html');
$file = $row['path'];
$data = file($file) or die('Could not read file!');
foreach ($data as $line) {
echo nl2br($line);
};
}
include("config/closedb.php");
?>
but this code given following output:
ÐÏࡱá>þÿ •—
þÿÿÿ“”ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Á[€ ð¿Abjbj¬ú¬ú .TÎ
Î
Aÿÿÿÿÿÿ·èè+++++ÿÿÿÿ????T“¤?3©t
77777֨بببببب§ª¢Izب+ب++77Ûí¨¶¶¶^+7+7Ö¨¶Ö¨¶¶&šœ°®§7ÿÿÿÿ —¸KÚ™Ë
?pJ d¨©03©® Æ0
ÃÈ®§Ã+®§
¶Ø¨Ø¨¶3©ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÃè ñ:
HALL MASTER
Hall Id
Hall Name
Class
Section
Hall Capacity (No. of Student sit while exam).
CLASS MASTER
Class Id
Class Name (Standard)
SECTION MASTER
Section
DESIGNATION MASTER
Desg Id
Desg. Name
SUBJECT MASTER
Subj. Id
Subj. Name
Class Id
TERM MASTER
Term Id
Term Name
FEES MASTER
Fee Id
Class Id
Term Id
Fees Amount
-------------------------------------------------------------
Some undefined codes are display. Here i also use bold, color, etc.
I want to display that formates also.
Anybody have ideas....
Thanks.....