Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    166
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice