huzi8t9's Profile User Rating: -----

Reputation: 25 Craftsman
Group:
Author w/DIC++
Active Posts:
354 (0.12 per day)
Joined:
11-July 07
Profile Views:
14,140
Last Active:
User is offline Mar 28 2015 08:57 AM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Who Cares
Dream Kudos:
275

Latest Visitors

Icon   huzi8t9 Enjoying LEGO Batman way too much for the 360....

Posts I've Made

  1. In Topic: sending hp formatted email

    Posted 28 Mar 2015

    I'm aware this has already been answered by perhaps a better way of formatting text, in the style you have would be:

    $message = <<<HTML
    <!DOCTYPE HTML>
    <head>
    	<meta http-equiv="content-type" content="text/html" />
    
    <body>
    HTML;
    
    if ( $result->num_rows ) {
        $message .= "<rable>";
        while ( $row == $result->fetch_assoc() ) {
            $res = Array();
            $res[0] = $row['name'];
            $res[1] = $row['email'];
            $res[2] = $row['cell'];
            
            $message .= "<tr><td>".join("</td><td>", $res)."</td></tr>";
        }
        $message .= "</table>";
    } else {
        $message .= "<p>Zero results.</p>";
    }
    
    $message .= <<<HTML
    </body>
    </html>
    HTML;
    
    


    That's just the way I'd do it, it's more organised and you can see what's happening, especially with the HTML.

    Hope this helps

    ~huzi
  2. In Topic: [SOLVED] GD Breaking Images

    Posted 28 Mar 2015

    View PostAtli, on 28 March 2015 - 11:03 AM, said:

    Could it be your use of the imagecreate() function that's causing the distortion? According to the docs, it creates a pallet based image, which - as I understand it - is not fantastic for actual photographs.

    You could try imagecreatetruecolor instead.



    You're a bloody wizard! Thank you so much, I didn't even consider that, I thought that would only impact the white background, not the other image, too!

    Thank you very much!

    ~huzi
  3. In Topic: Image orientation

    Posted 28 Mar 2015

    If the images are shot with a decent camera, or EXIF information is stored inside the image (commonly on a decent camera), you can just look-up the EXIF information.

    $filename = "image_123.jpg";
    
    $exif = exif_read_data($filename);
    if(!empty($exif['Orientation'])) {
        switch($exif['Orientation']) {
            case 8:
                $createdImage = imagerotate($image,90,0);
            break;
            case 3:
                $createdImage = imagerotate($image,180,0);
            break;
            case 6:
                $createdImage = imagerotate($image,-90,0);
            break;
        }
    }
    
    


    You could also apply this when uploading an image, by changing the $filename to

    $filename = $_FILES['field_name']['tmp_name'];
    


    Hope this helps, good luck.

    ~huzi
  4. In Topic: [SOLVED] CSS / columns

    Posted 28 Feb 2015

    View Postandrewsw, on 28 February 2015 - 09:07 PM, said:

    I notice that you have removed the link to your site. This is why it is important that you post the relevant code directly here, and not just as a link. This is a community forum and topics remain open for others to make use of.

    Glad you solved!


    Apologies. I'm constantly working on it, I don't mind the link being there, I just don't want people to see it and not find the error. Granted, it does state that it is solved, but some people don't read too well. I just don't want this thread to keep getting thrown to the top :)

    I'll pop the link back there, it's not biggie.

    Thanks for the heads up

    ~huzi
  5. In Topic: [SOLVED] CSS / columns

    Posted 28 Feb 2015

    Thanks for the reply. You're great! You figured it quicker than I did, haha!!

    Thanks again

    ~huzi

My Information

Member Title:
D.I.C Regular
Age:
25 years old
Birthday:
August 30, 1989
Gender:
Location:
Nottinghamshire, England
Interests:
Programming, Rock Climbing, Programming.
Full Name:
Mark Hughes
Years Programming:
14
Programming Languages:
HTML, JavaScript, jQuery, Visual Basic, C++, PHP, ASP, ActionScript 2/3

Contact Information

E-mail:
Private
AIM:
AIM  Glitcher 04
Website URL:
Website URL  http://www.markhughesphotography.co.uk/
Yahoo:
Yahoo  gOoDnPlEnTy83
Skype:
Skype  huzi8t9
Facebook:
http://facebook.com/huzi8t9
Twitter:
huzi8t9

Friends

Comments

Page 1 of 1
  1. Photo

    jesicalbaby Icon

    16 Sep 2013 - 14:34
    Hello
    My name is Miss jesical,
    i saw your profile today
    and,i fill more interest to contact you ,
    i will like you to please send me
    an email via (jesicalduncan22@yahoo.com)
    for me to send you my picture
    jesicalduncan22@yahoo.com
  2. Photo

    ahmed12345 Icon

    19 Feb 2012 - 12:09
    i am having problem in under standing with this assignment, can any one out there help me to better under stand
    Goals:

    1. Demonstrate knowledge of abstract classes and interfaces,
    2. Show how to handle exceptions.

    Design:

    This is an assignment about Assignments and Grades. Some Assignments in this class are Gradab...
Page 1 of 1