Thursday, September 5, 2013

COMMON ERROR (PART-3)

Example: 1

<?php

ob_start();
echo "<h1> Welcome!</h1>";
$goto="http://www.google.com";
if ($goto)
{
header("Location:$goto");

}

?>


Example: 2

<?php

echo "<h1> Welcome!</h1>";
$goto="http://www.google.com";
if ($goto)
{
header("Location:$goto");

}

?>


Example: 3

<?php

//echo "<h1> Welcome!</h1>";
$goto="http://www.google.com";
if ($goto)
{
header("Location:$goto");

}

?>



Example: 4

<?php

include("idontexist.php");

?>



Example: 5

<?php

@include("idontexist.php");

?>

No comments: