Jump to content

MrXHellboy

Members
  • Posts

    153
  • Joined

  • Last visited

    Never

Posts posted by MrXHellboy

  1. <?php
    
    function CheckExsits($haystack, $Session_arr)
    {
        mt_srand((double)microtime()*1000000);
        $random = $haystack[mt_rand(0, count($haystack)-1)].mt_rand(1,5);
        return (in_array($Session_arr, $haystack)) ? CheckExsits($haystack, $Session_arr): $random;
    }
    
    echo CheckExsits(array('hard', 'easy', 'medium'), array('easy2', 'hard3'));
    ?>
    

  2. <?php
    mt_srand((double)microtime()*1000000);
    $categories = array("easy", "medium", "hard");
    
    $created = $categories[mt_rand(0, count($categories)-1)].mt_rand(1,5);
    
    if ($created != $_SESSION['asked'])
         $_SESSION['asked'] = $created;
    ?>

     

    I am not sure what you mean but you want something like this ?

  3. i guess you have a method in a parent class right ?

    Then as example

    <?php
    class something{
        public function mail(){
            echo 'Put your code here';
        }
    }
    
    class dosomethingelse extends something{
        public function mailto(){
            parent::mail();
        }
    }
    
    $do = new dosomethingelse;
    
    $do->mailto();
    ?>
    

  4. add another mail function before the meta element

    if ($success){
    mail('recipient','title', 'body');
    print "<meta http-equiv=\"refresh\" content=\"0;URL=http://clientzone.trillodigital.co.uk/simplyskills/thankyou.html\">";
    }
    

     

    and send it from another mail adress, well, it doesn't send the email actually from another adress, it just shows it, but this is how to do it

    <?php
    mail('test@localhost', 'Test', 'Message', 'From: Another mail address <something@somthing.com>');
    ?>
    

  5. DB: Table: members, member_data, private_messages

    You have to use JOINS for this @ PHP.

     

    Create class for DB connection. Set-up JOINS.

     

    The PHP code will follow when you're busy

  6. Doesn't matter which MUA. Just open outlook and create a new account on email adress test@localhost(must be created @ argosoft mail server).

     

    SMTP & POP3 server = localhost

     

    php.ini SMTP = localhost

     

    sendmail_from = test@localhost (or another).

     

    Dont forget to restart apache

×
×
  • 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.