Hello,
I wrote a little function;
PHP Code:
<?php session_start(); ob_start();
$salladim = $_SESSION['salla'];
$salladin = isset($_GET['url'])?$_GET['url']:'' ;
if(!in_array($salladin,$salladim))
{
header( 'refresh: 1; url='.$_SERVER['HTTP_REFERER'].'' );
echo '<h2>Hazirlaniyor...</h2>';
exit();
}
When i run this code, i get the following error :
PHP Code:
PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /home/site/public_html/do.php on line 5