Jump to content

LiamProductions

Members
  • Posts

    496
  • Joined

  • Last visited

    Never

Posts posted by LiamProductions

  1. I was wondering through PHP can it check your computer for a file like can you make a PHP script to look for a file in

     

    C:\My Documents\Pictures\xxx.gif

     

    ?

    and if there is a file there it says something like File found or if there isnt says something like No file in directory.

  2. I found an error

     

    <?php
    
    $to = 'ampm@hotmail.com'; 
    
    $subject = "Scanwest Mailing List Reply"; 
    
    $content = "FIRST NAME: $f_name" . "\r\n" . "LAST NAME: $l_name";
    
    $mail_from = "$email"; 
    
    $header="From: $name <$mail_from>"; 
    
    $send_contact = mail($to,$subject,$content,$header);
    
    if($send_contact) {
    echo '<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=\'.\"thankYou.html\".\'\">';
    }
    else {
    echo "ERROR";
    }
    ?>

    Try that. The last bit of code may be wrong, Im not sure. but i fixed the missing ;

  3. Hey. I've not got time to test i'll just paste the code here tell me if it works:

     

    <?php
    
    $name['Tara'] = "Tara Something";
    $name['Liam'] = "Liam Productions";
    $name['Andy'] = "Andy harris";
    
    echo "Your name is:" . $name['Liam'];
    
    ?>

     

     

    Does it print out "Your name is: Liam Productions    ?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.