Welcome, Guest
  • Author Topic: What i have to do if my server has only php v1 installed  (Read 3461 times)

    thanos

    • Server what's that
    • *
    • Posts: 11
      • View Profile
      • Email
    Dear mr/madam,

    I have made a guestbook from you sendmail tutorial at flash-db and i would like to ask you something about that.If my server might not have php3 or 4 installed what i have to do.  tell you it because i am not recieving e-mails from my guestbook of my site and when i try my guestbook offline with a link to snowmailPHP.php (loadVariablesNum) on my server i recieve an e-mail with no comments like this:
    Sent By:
    Senders Email:
    Senders Company:


    Message Sent:


    Sender Heard About Site From:

    I have tried everything and i am in despair.
    Thank you very much for your time and assistance
    I am waiting to aswering me soon

    Yours sincerely,
    thanos stefanis

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    If you receive something, then the server could send emails. If you're using PHP 4.1 or above, fix this: http://www.flash-db.com/Board/index.php?board=19;action=display;threadid=3017

    Jorge

    thanos

    • Server what's that
    • *
    • Posts: 11
      • View Profile
      • Email
    Well i show with phpinfo.php
    that my server has phpv4.3.2 so i followed the instructions of my musicman referred to nubian
    and now i recieve no email at all!!!!!!!
    I show that the problem is in the php code because i had loaded from flash another php file that sends a test email and it worked!!!
    Here is my code:

    <?
    // data coming in from the movie
    $Email = $_POST[Email];
    $FirstName = $_POST[FirstName];
    $Company = $_POST[Company];
    $ToComments = $_POST[ToComments];
    $HearAbout = $_POST[HearAbout];


    $ToEmail = "ght@fg.fgf";
    $ToName = "fadada";
    $ToSubject = "dadada";

    // next line is a recommended change if your "comments" field is multiline
    $ToComments = str_replace("\r", "\n", $ToComments);


    $EmailBody = "Sent By: $FirstName\nSenders Email: $Email\nSenders Company: $Company\n\nMessage Sent:\n$ToComments\n\nSender Heard About Site From: $HearAbout\n";
    $EmailFooter="\nThis message was sent by: $FirstName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at www.dadadd.com";
    $Message = $EmailBody.$EmailFooter;
    mail($ToEmail,$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
    Print "&_root.Mail.Status=Complete - Your mail has been sent&";
    (i use Status and not EmailStatus)
    ?>

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Your PHP looks fine. Are you sure you're calling the script from your movie? Try this: replace your loadVariables() call (where you call the PHP script) with

    getURL("phpscript.php", "_new", "POST")

    It will open your PHP script in a new window, sending all possible error messages

    Jorge

    thanos

    • Server what's that
    • *
    • Posts: 11
      • View Profile
      • Email
    I did it and i show that message:

    Parse error: parse error in /disk1/hosting/docs/kollaps/thanos/snowMailPHP.php on line 2

    does my code has error in line 2?
    thank you

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Sure there's an error, but I can't see in the code you posted. You can use

    $_POST['Email'] (single apostrophe) instead of $_POST[Email]; but usually both works fine

    Jorge

    thanos

    • Server what's that
    • *
    • Posts: 11
      • View Profile
      • Email
    I have corrected everything and now the code is fine!!
    But there is a problem
    My site is hosted on geocities and the phps to another server
    But when i put the guestbook(that is on the other server with phps) inside my main flash page i saw that the script wasn't loaded!!!!
    What i have to do now in order not to remove my whole site from geocities to the other server???

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    ????

    Just delete your geocities account and upload your files to the new server

    Jorge
    « Last Edit: 08/21/03, 12:31 by Jorge Solis »

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Hi,

    you can probably use one of those two:
    a) ut index.html on geocities and your main movie on other server
    b) put index.html and main movie on geocities and load contact movie from other server into main movie

    Musicman

    thanos

    • Server what's that
    • *
    • Posts: 11
      • View Profile
      • Email
    Dear musicman,
    i have the main movie and when i push the guestbook button i "loadMovie" from the other server that are both guestbook.swf and phps but it doesn't work
    So temporalily i "getURL" the guestbook.html from the other server in order to work!!! :-[
    so i dont know what else to do except of removing  part of my site to the other server
    Do you know if it could work using javascript in order to open a pop-up window????
    I do it and it doesn't work.I think that my code isn't right.
    Can you please right the code of making a pop up window using a flash button??
    Thank you
    thanos    

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Hi,

    two potential problems: if the guestbook movie plays fine by itself, it may not work when loaded into another movie.
    Also, it is usually necesary to put absolute url into the loaded movie

    Musicman

    thanos

    • Server what's that
    • *
    • Posts: 11
      • View Profile
      • Email
    OK THANK YOU!!!
    Also i would like to tell me,if of course you can, how can i send an automate response to the senderer of the message in the guestbook (for rexample  hi.......... i will reply you as soon as possible) with php
    After
    mail($ToEmail,$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
    i put:
    mail($Email, $ToSubject, "l will reply you soon.Thank you");
    BUT IT DOESN'T WORK COMPLETELY
    (I send a letter to me with the same ToEmail and Email and it comes only one letter!!!)
    thank you!