+ Reply to Thread
Results 1 to 3 of 3

Thread: error in php

  1. #1
    zeniard is offline x10Hosting Member zeniard is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    10

    error in php

    i've got errors in my php....it doesnt run properly in my site when i uploaded it ... but in my apache in runs smooth

  2. #2
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: error in php

    What errors do you get?
    Please include the code that relates to the error (a few lines before and after, or the whole code if you prefer, as well as anything else that may affect it, such as includes).
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

  3. #3
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: error in php

    just post the errors, and we can help. the errors php displays are very easy to debug.

    Common errors would include:
    - T_ENCAPSED_AND_WHITESPACE:
    when you improperly use an array syntax inside of string
    PHP Code:
    echo "Hello $test['world']";
    // or
    echo "hello""world"
    - unexpected T_ECHO/T_VARIABLE/T_FOR...
    you forgot a semicolon on the line above where the error said it was.
    PHP Code:
    // t_echo
    $var "Hello World"
    echo $var;

    // t_variable
    $var "hello world"
    $var2 $var;

    // t_for
    $var 'hello world'
    for ($i=0;$i<5;$i++) 
    - unexpected $end
    you still have a container tag open {} when the script is done executing
    PHP Code:
    if ($hello == "world")
    {
      for (
    $i=0;$i<5;$i++)
      {
        echo 
    $i;
      } 
    there's more, but those are the more common errors.
    http://www.v-nessa.net/2007/12/07/common-php-errors

+ Reply to Thread

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. currently have an application pending php
    By biomasti in forum Free Hosting
    Replies: 1
    Last Post: 09-03-2008, 01:58 PM
  4. php errors galore
    By DMG Online in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 05-17-2008, 06:23 AM

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