Micro Niche Builder
Closed Thread
Results 1 to 4 of 4

Thread: Help in PHP function

  1. #1

    Default Help in PHP function

    Hi!!
    Hello friend I have just started the programing web development.
    I face the problem with the header function.
    The function doesn't redirect. Found this error.

    Warning: Cannot modify header information - headers already sent by (output started at /home/kabeet/public_html/flash/page_add.php:4) in /home/public_html/page_add.php on line 72

    Please help.


  2. SEO Software

  3. #2

    Default

    So your problem is that you are trying to do a header redirect but you already have an HTML based header in the PHP processor. What you need to do is make sure that the header function is the first thing in your code. For instance:
    PHP Code:
    <?php
    header
    ('path/to/redirect/to');
    ?>
    not
    PHP Code:
    <html>
    <?php
    header
    ('path/to/redirect/to');
    ?>
    You need to understand that PHP is a very picky language, and any extra spaces before a header function call can keep your code from working. Good luck.

  4. #3
    Forum Advisor DEADMAN will become famous soon enough
    Join Date
    Feb 2008
    Location
    Pokhara, Nepal Status: Hostbidder Idol 2008
    Posts
    2,522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you try to edit the code? Please use default code and see if it's working. Then probably you got wrong code or invalid.

  5. #4

    Default

    this seems to be a error with PHP.u can downgrade PHP to 5.2.8 or PHP 5.2.9

Closed Thread

Bookmarks

Posting Permissions

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