Results 1 to 5 of 5

Thread: [RESOLVED] PHP Header error

  1. #1

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Resolved [RESOLVED] PHP Header error

    Morning

    I have used the search function to find other Header problems, but i cant figure this out.

    I am using header to redirect my user to another webpage like below...

    PHP Code:
    // Redirect to the link URL
    Header("Location: $url"); 
    However i am returning an error...

    Warning: Cannot modify header information - headers already sent by (output started at e:\domains\m\meltdownsoftware.co.uk\user\htdocs\redirect.php:4) in e:\domains\m\meltdownsoftware.co.uk\user\htdocs\redirect.php on line 49


    Any idea?

    PS Please dont slap me

    IMLV

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3
    Hyperactive Member OMITT3D's Avatar
    Join Date
    Mar 2006
    Posts
    368

    Re: PHP Header error

    You could also look into output buffering I think it's called.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP Header error

    :slap:

    Read the error message.

    Warning: Cannot modify header information - headers already sent by (output started at e:\domains\m\meltdownsoftware.co.uk\user\htdocs\redirect.php:4)
    gives you all you need to know.

  5. #5

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: PHP Header error

    Owww!!! Well i have resolved

    I hate slapping

Posting Permissions

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



Click Here to Expand Forum to Full Width