php - fatal error: call to undefined function redirect() -


I am using mobile users to redirect to a specific page. But, when I am writing this then I am getting serious error for redirect () will someone tell me where else I am missing?

  need_once 'Mobile_Detect.php'; $ Address = New Mobile_Detect; $ DeviceType = ($ detect-> hasmobile ()? ($ Detect-> IsTablet ()? 'Tablet': 'Phone'): 'Computer'); $ Script warsian = $ address- & gt; GetScriptVersion (); If ($ detect- & gt; isMobile ()) redirect ('iammobile.php'); Else echo & lt; H1 & gt; I'm desktop & lt; / H1> ';    

header

  Header ("Location: iammobile.php"); Die ();    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -