[PHP] Re: Resizing Pictures

2004-04-19 Thread Tom Reed
This will resize JPG images: function get_image_width($image) { $imgsize = getimagesize($image); return $imgsize[0]; } function get_image_height($image) { $imgsize = getimagesize($image); return $imgsize[1]; } function resize_image($originalimage, $dest_width, $save_path, $newfilename)

[PHP] Re: http webmail problems.

2004-03-24 Thread Tom Reed
thanks for the FYI on PEAR, installing now. I'd still be interested in understanding why the header data in my code didn't work. -tom "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tom Reed wrote: > > > On some webmail progra

[PHP] http webmail problems.

2004-03-23 Thread Tom Reed
On some webmail programs, when I send them an email from php, they appear as being "blank" emails. Here's the code I am using: $headers .= "From: \"$WEBSITE_name\" <$ADMIN_email>\n"; $headers .= "X-Sender: <$ADMIN_email>\n"; $headers .= "X-Mailer: $WEBSITE_name Mailer\n"; // mailer $heade

[PHP] Re: ip to country

2004-03-20 Thread Tom Reed
I would think using HTTP_ACCEPT_LANGUAGE to get the users browser language/country info would be quicker and easier to implement. Example: $string = getenv('HTTP_ACCEPT_LANGUAGE'); list($language, $country) = split('[-,]', $string); -Tom Reed [EMAIL PROTECTED] "Enda

[PHP] Re: Function to check a valid date

2004-03-20 Thread Tom Reed
Try this: http://us4.php.net/checkdate -Tom Reed [EMAIL PROTECTED] "Chris Bruce" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello all, I was going to build a function to check whether a selected date exists, but thought that I would see if anyone has done th