The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

error with script [moved]

Discussion in 'General Discussion' started by hostsky, Mar 6, 2006.

  1. hostsky

    hostsky Member

    Joined:
    Dec 30, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    error with script

    hi aall i make thisscript

    <?php
    $nome = "Funnynick.net";
    $da = "info@shellsky.net";
    $oggetto = "Prova tecnica";
    $testo = "Funziona";
    $email = shellsky@gmail.com;
    $intestazione = "From: $nome <$da>\n";
    error_reporting(E_ALL);
    mail($email, $oggetto, $testo, $intestazione) or die("Si è verificato un er$
    ?>


    and the reply
    is

    Parse error: parse error, unexpected '@' in /home/shellsky/public_html/index.php on line 6
     
  2. HH-Steven

    HH-Steven Well-Known Member

    Joined:
    Aug 29, 2004
    Messages:
    284
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Now im no professional at php but isnt the error staring you in the face?:

    "on line 6"

    which is:

    $email = shellsky@gmail.com;

    compare that to your other lines and you should see the problem.
     
Loading...

Share This Page