dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: header vs ajax

  1. #1
    Join Date
    Feb 2012
    Posts
    33

    header vs ajax

    Hello everyone

    Is any simple way to redirect site in php?? I use php header but it not function properly now. Of course i searched in google and i have not found good solution.
    The problem is that header displays site only in div (the reason is ajax) but i wont in main window

    Thanks for help
    Last edited by johny1000; 03-14-2012 at 05:58 PM.

  2. #2
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    As I understand it, header does not work for redirects IF headers have already been passed to the browser. I do use header for redirects, but in order for it to work I'm using output buffering, so nothing goes to the browser until the end_flush has been processed; that way, if there IS a redirect by header(), it will be processed as part of the whole package.

    If you will not or can not use output buffering, I think a meta tag will suffice for redirect.

  3. #3
    Join Date
    Feb 2012
    Posts
    33
    In my case header is working but not in window. Only in div. So it opens a site in the site. Buffering is not necessary i think
    Last edited by johny1000; 03-14-2012 at 07:35 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles