Results 1 to 18 of 18

Thread: PHP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63

    PHP

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/u423372058/public_html/index.php:1) in /home/u423372058/public_html/global_header.php on line 2

    . .
    global_header.php session_start(); <?php

    PHP Code:
    <?php
    session_start
    ();
    ?>

  2. #2
    Mire-x
    Join Date: Apr:2005
    Location: Sofia
    Posts: 763
    , header- . , , header- , .

    , :
    1) index.php UTF-8 , 3 , , PHP/Apache , .

    2) PHP auto_prepend_file - , index.php (, UTF-8, , ).
    (10b) || !(10b)

  3. #3
    Registered User
    Join Date: Apr:2007
    Location: Bulgaria
    Posts: 301
    ! , zombie13 ( php ). . - . : "Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/u423372058/public_html/index.php:1) in /home/u423372058/public_html/global_header.php on line 2", 2 . - . 0zed.com - 1 . cixx6.com 4 . , 0zed.com - ... .

    : 1 , . . . :
    PHP Code:
     <?php
    session_start
    ();
    ?>
    . PHP- ( 400 ), , . , , .
    , . , , "". , , ( 30 , ). , . , .

  4. #4
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    index.php - <?php . , notepad++ Encoding Convert to UTF-8 without BOM.
    - index.php global_header.php .
    ''? * *
    - !
    ...

  5. #5
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    99% BOM-a. ( ) , index.php?
    , ( ), 2 - .
    HEX , , ( ), . , (, / : ).
    0zed ( ), ( ), IPBSDK ( ), . . . , , .

    " " , , ''. "" - . .. -, 10- . "" - - 6 ( , ), . , , , - . PHP , , session_start() . - , .

  6. #6
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    - php-, "?>". , , .

    : echo ''; php-, html, , "<?php". - , , .

    , . action :
    Code:
    <form method="POST" action="login/login.php?to=<?=$_SERVER["PHP_SELF"]?>" class="login">
    .

  7. #7
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    , query string action , . , GET , , , , - .

    echo 'html...'; - , code insight IDE-, , - , php . echo $a,'+',$b,'=<br>',$c..... . , - , , .. , .
    heredoc . , .

    . IDE- , , , , , . , IDE .

  8. #8
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    action . google .
    get.
    hidden .

    - html-.
    : , , , , . , php, , php - if , html.

  9. #9
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    . , query string action-a. .

    , MVC, , ( ). - ( , , ), . -, .

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |