SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Login Script error.

    if (!$logged) {

    if (!$username || !$password)
    tmplshow("login", array('<%TMPL SITE TMPL%>' => SITE_NAME));

    else {

    }


    }


    this is a login script, it has been stripped down (there is validation and stuff that goes in there) but I took it out to find out what the problem is, and I have no idea.

    When I run that, the first time it shows the Login Template, as it should (this has $username and $password variables u fill in)

    when u submit it (it reloads the same page) it gives a server misconfiguration error, and in the error log it says "/php/php.exe Premature end of script headers". I have never had this eror before, and I dont have any idea why it happens, is it my code or a server variable? this happens on both my local config and my Web Hosts Config.

    this will be used as a header file called from other scripts, but I ran it standalone and it still errors (the other scripts have output).

  2. #2
    PHP warrior dkode's Avatar
    Join Date
    Sep 2001
    Location
    Planet Namek
    Posts
    329
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you show us what the tmplshow function looks like? it's probably an error in there I would imagine.
    "Mankind cannot define memory, yet it defines mankind"
    -- Project 2501, Ghost in the Shell

    Smarty | PEAR | PHP Manual | MySQL Manual


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
  •