Jump to content

eXeCuTeR

Members
  • Posts

    41
  • Joined

  • Last visited

    Never

Posts posted by eXeCuTeR

  1. Assuming I have a variable that contains website:username (note the ':')

    Now, I wanna explode this variable into 2 variables, one to hold the website part and one to hold the username part.

    Hmm, e.g:

     $result = "website:username";

    Store the website part of the string in one variable ($hello for example) and username in $bye.

    I've tried many ways, non of them worked perfectly.

    Thanks.

  2. I'm trying to tell Apache to store the files in home/isr/Desktop and it doesn't work.

    I gedited httpd.conf and typed the following:

    DocumentRoot "/home/isr/Desktop"

     

    It keeps showing me this Index of / page with the apache2-default folder there (you know what I mean)..

     

    PLEASE HELP!!!

     

    P.S:

    I'm using Linux/Ubuntu 7.10.

  3. $im     = imagecreatefrompng("image.png"); //path to image
    $color = imagecolorallocate($im, 0, 0, 0); // allocating a color
    $font = 'Arial.ttf'
    
    $overall = extract_single("Overall", "</tr>", $page); // Don't mind these lines..
    $overall_stat_array = extract_multi("<td align=\"right\">", "</td>", $overall); // Don't mind these lines..
    $overall_level = $overall_stat_array[2]; // Don't mind these lines..
    
    imagettftext($im, 12, 0, 10, 20, $color, $font, $overall_level);
    

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