please help Warning: constant() [function.constant]: ?

Discussion in 'PHP' started by eSpenders.com, Apr 9, 2007.

  1. #1
    hi
    i have installed a #1 / topspot site script to my site and am having some troubles! i tested the contact mail and got this error on the screen!

    Warning: constant() [function.constant]: Couldn't find constant contactemail in /home/a1admin/public_html/contact.inc.php on line 53

    Warning: constant() [function.constant]: Couldn't find constant domain in /home/a1admin/public_html/contact.inc.php on line 53


    Thank You!
    We have received you message. We will be contacting you shortly.


    ----------------------------------------
    any clue what could be the problem?also I never got the test email?
    and i was unable to test the buy script paypal wont let me pay me!

    Please help me if you can!
    any help would be greatly appreciated
    Thanks PeAcE
     
    eSpenders.com, Apr 9, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Try setting this at the top of contact.inc.php:

    
    define('contactemail', 'Your@mail.com', true);
    define('domain', 'http://www.your-domain.com', true);
    
    PHP:
     
    nico_swd, Apr 9, 2007 IP
  3. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ahh man thanks that worked like a charm!!:D
    i know nothing about php!
    i wonder why they didnt say that in the read me/how to file! and the site i got it from had no contact!:eek:
    Thanks for your help
    it's greatly appreciated!

    Now i just gotta find some one to test the buy it now part!
    if any one is interested i will give them a full paypal refund of the payment $1.11 or give a bonus link on other site with purchase!
    Thanks

     
    eSpenders.com, Apr 9, 2007 IP