Menu

Premature End? Yeah even PHP insults me

Help
2007-02-16
2013-06-03
  • Darryl van der Usa

    I can create a form but I keep getting the follow message, and I was told by my server that the forms have a message about a premature end to php code.

    Any idea what I am doing wrong since I obviously have no idea what I am doing?

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@hvit-llc.thevirtualwriter.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    --------------------------------------------------------------------------------

    Apache/1.3.37 Server at hvit-llc.com Port 80

     
    • TNTEverett

      TNTEverett - 2007-02-18

      Sounds like a server side (host side) constraint on php files but I'd glad to take a look at it.  Send me a link to the form. 

      Start of PHP looks like this:
      <?php

      End of PHP looks like this:
      ?>

      Premature end would mean that there are php commands that occur after the last
      ?>

       
      • Darryl van der Usa

        May have been a permission issue - I changed everything in the use folder to 755 and it workded.  I am not sure why it needed 755 and not 777 or 744 but 755 seems to have been the key.  I did this as a result of a search for premature end or something on the Help forum.

        Thank you for your help. 

         
        • TNTEverett

          TNTEverett - 2007-02-19

          Anyone publishing or supporting web pages needs to be very familiar with unix/linux file permissions.
          Here are a couple of links that expain what they are;
          http://www.dartmouth.edu/~rc/help/faq/permissions.html
          http://usertools.plus.net/tutorials/id/3

          Once you understand the use of these permission settings you still need to understand how your host might further limit these settings in order to keep their hosting server and your web site secure.  Despite what you may feel the permissions should be for a specific file your host can pout limits on how files are treated based on the permissions you set, or even limit the permissions you are allowed to set. 

           

Log in to post a comment.