PHP code for redirect

Author Topic: PHP code for redirect  (Read 4759 times)

Offline CharterTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 1
  • Posts: 36
  • Karma: 1
PHP code for redirect
« on: 05-23-2010, 17:27:40 »
Hi, I designed a web site for a client, and I got thisredirect script to work on IPHONE, but it doesnt work on blackberry at all, even if I replace the 'iphone' with 'blackberry'.

Any help GREATLY appreciated! Cant get this thing to work!
Code:
Only registered users can see contents. Please click here to Register or Login.


Offline ryosuzuki

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 98
  • Karma: 3
Re: PHP code for redirect
« Reply #1 on: 06-05-2010, 09:35:33 »
Not sure about this one, but it depends if the useragent recognises blackberry. It may not.... Mobile recognition in modern day browsers is still young.....

Offline thelazytrader

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 0
  • Posts: 92
  • Karma: 0
  • Gender: Male
  • The Lazy Trader
    • The Lazy Trader
Re: PHP code for redirect
« Reply #2 on: 07-06-2012, 00:25:46 »
You have to used php's inbuild function header(). and redirect your script as you like.

Offline mmeetkaur3

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 3
  • Karma: 0
Re: PHP code for redirect
« Reply #3 on: 11-06-2012, 22:41:22 »
Thanks for this code.
http://www.zaydenmortgage.ca/ , http://www.heightincrease.in
, http://www.sharekhantips.com/

Offline sedoman001

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
Re: PHP code for redirect
« Reply #4 on: 12-23-2012, 00:21:54 »
Hi I am new in this forum and looking PHP video. Please help me. Thank you.


Offline pstpl1

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 14
  • Karma: 0
  • Gender: Female
  • ERP Software
    • ERP
Re: PHP code for redirect
« Reply #5 on: 01-17-2013, 03:22:03 »
header('Location:  destination.php');
exit();

This header function is used to direct page eassly
ERP Software [nofollow]
Payroll Software [nofollow]

Offline Hi-Tech ITO

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 10
  • Karma: 0
  • Gender: Male
Re: PHP code for redirect
« Reply #6 on: 02-03-2013, 19:11:58 »
You must use the inbuild PHP function header (). and redirect the script you want.

Offline johncruz

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 8
  • Karma: 0
  • Gender: Male
Re: PHP code for redirect
« Reply #7 on: 05-13-2013, 23:35:33 »
Code:
Only registered users can see contents. Please click here to Register or Login.
This will help you but for Blackberry in WAP/WML modes, this code will not work, as I believe that in those cases JavaScript is disabled.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
2188 Views
Last post 12-14-2011, 01:53:49
by jenli29
3 Replies
1343 Views
Last post 12-22-2011, 06:46:58
by Smith Jones
7 Replies
2259 Views
Last post 08-23-2016, 09:03:49
by RH-Calvin
0 Replies
563 Views
Last post 01-26-2015, 17:45:53
by Paxi
1 Replies
1060 Views
Last post 03-30-2015, 03:51:18
by uditsh