PHP code is being shown to the client?

Tony

New member
<?php

$original=$_POST ['original'];
$new=$_POST['new'];

$originaltext=array (0=>$original);
$newtext=array (1=>$new);
print_r(array_diff($originaltext, $newtext));


?>

The html is as follows:

<html>
<body>
<h4> Tony's Check for duplicate content gizmo! </h4>
<form action="process.php" method="post">

Original text: <input name="original" type="text" />

New article: <input name="new" type="text" />
<input type="submit"/>
</form>
</body>
</html>

Whenever I run the file(s) it simply displays my php code.

$original); $newtext=array (1=>$new); print_r(array_diff($originaltext, $newtext)); ?>
 
Back
Top