+ Reply to Thread
Results 1 to 5 of 5

Thread: Php codes headers

  1. #1
    nexhunter's Avatar
    nexhunter is offline x10 Sophmore nexhunter is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    millbury,massachusetts
    Posts
    239

    Php codes headers

    I am making a cms using a tutorial from
    http://www.php-mysql-tutorial.com/cms-php-mysql.php

    I am also using the log in script the one that uses database

    http://xstudio.elementfx.com/index.phps
    http://xstudio.elementfx.com/add.phps
    http://xstudio.elementfx.com/admin.phps
    http://xstudio.elementfx.com/login.phps
    http://xstudio.elementfx.com/logout.phps
    http://xstudio.elementfx.com/edit.phps

    I believe I entered all the codes in correctly :dunno:

    Now when i go to the login page i get this error

    PHP Code:
    Warning:  session_start() [function.session-start]: Cannot send session cookie headers already sent by (output started at /home/nexhunt/public_html/login.php:4in /home/nexhunt/public_html/login.php on line 6

    Warning
    :  session_start() [function.session-start]: Cannot send session cache limiter headers already sent (output started at /home/nexhunt/public_html/login.php:4in /home/nexhunt/public_html/login.php on line 6 


    Can anyone with experience in php help me in solving this error

    http://xstudio.elementfx.com/copy.ht

    empty file with basic layout code just added in the word "php codes" just as place holder encase if it does load the page so i can break it before it loads fully.
    Last edited by nexhunter; 11-21-2007 at 07:44 PM.



  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Php codes headers

    why is the login link at port 4? try editing that out. Try going to the script that sends the data to the database and finding a link that has :4 at the end of it. I think it is that, not completely sure. also, why do you have a phps file type?
    Last edited by leafypiggy; 11-21-2007 at 08:36 PM.

  3. #3
    nexhunter's Avatar
    nexhunter is offline x10 Sophmore nexhunter is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    millbury,massachusetts
    Posts
    239

    Re: Php codes headers

    I name files to random extensions if they are not being viewed as design but more of want you to see the code and see if they are any errors.
    Last edited by nexhunter; 11-21-2007 at 09:09 PM.



  4. #4
    rickle42 is offline x10Hosting Member rickle42 is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    59

    Re: Php codes headers

    i think its because you have to use start_session() at the very beginning of your file, before <html> tag

  5. #5
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Php codes headers

    You have to start_session and output any header codes BEFORE you start on anything else that outputs to the browser.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


+ Reply to Thread

Similar Threads

  1. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  2. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  3. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers