Re: [PHP] crop an image

2007-11-06 Thread Chris Bruce
Does anyone have some insight here? I am trying to crop an image. The crop seems to almost work, but I get black bars on the image. Has anyone had any experience with cropping images using the GD library? Thanks. Chris On Nov 2, 2007, at 5:41 PM, Chris Bruce wrote: What was the solution

Re: [PHP] crop an image

2007-11-02 Thread Chris Bruce
What was the solution here? I am trying to crop but am getting a black bar the same height as the crop at top. For this image I want to crop 40 pixels off of the top: $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($jpegpath); imagecopyresampled($image_p,

Re: [PHP] Issues with upgrade to PHP 4.4.1

2006-05-14 Thread Chris Bruce
No one has any thoughts or advice on this? Chris On May 12, 2006, at 3:31 PM, Chris Bruce wrote: I have a dedicated server and my host just did an upgrade of PHP to 4.4.1. This has caused a couple of major errors and I wanted to share them to see if anyone has any answers or has

[PHP] Issues with upgrade to PHP 4.4.1

2006-05-12 Thread Chris Bruce
I have a dedicated server and my host just did an upgrade of PHP to 4.4.1. This has caused a couple of major errors and I wanted to share them to see if anyone has any answers or has experienced similar problems. 1. imap functions are not working correctly. Specifically calling it thus:

Re: [PHP] Re: preg_match_all question

2005-07-24 Thread Chris Bruce
? Chris Bruce wrote: Hello, I am using the following to do link replacing: preg_match_all(/\s*a\s+[^]*href\s*=\s*[\']?([^\' ]+)[\' ]/isU,$file[$x],$matches); It works great for all but 'https' links. I am not that versed in regular expressions. Would anyone know what I need to put in there so

[PHP] preg_match_all question

2005-07-19 Thread Chris Bruce
Hello, I am using the following to do link replacing: preg_match_all(/\s*a\s+[^]*href\s*=\s*[\']?([^\' ]+)[\' ]/isU,$file[$x],$matches); It works great for all but 'https' links. I am not that versed in regular expressions. Would anyone know what I need to put in there so that it will

Re: [PHP] cURL functions

2005-05-13 Thread Chris Bruce
I did look at your post on PATH_INFO which did not get me any closer to the solution. At this point, I am just trying to get an image using cURL and then force it to download to the computer. Here is the link: http://205.207.224.90/getimage.php and here is the code: header(Content-type:

Re: [PHP] cURL functions

2005-05-13 Thread Chris Bruce
This should work: $ch = curl_init(); // create cURL handle (ch) if (!$ch) { die(Couldn't initialize a cURL handle); } // set some cURL options $ret = curl_setopt($ch, CURLOPT_URL, http://images.apple.com/home/2005/images/ tigershippingdashboard20050429.jpg); $ret = curl_setopt($ch,

[PHP] cURL functions

2005-05-12 Thread Chris Bruce
Hi, I am connecting to a remote image download API using cURL functions. I have the connection working fine and am getting the response from the API. The problem is that the resulting image is being displayed as binary characters in the browser instead of downloading to my computer. Here is

[PHP] parsing values from a form post

2005-04-08 Thread Chris Bruce
Hello, Here is an example of what could be posted from a form: Array ( [tax0] = GST [amount0] = 10.23 [type0] = Goods [tax1] = GST [amount1] = 6.5 [type1] = Goods [tax2] = HST [amount2] = 3.54 [type2] = Goods [tax3] = HST [amount3] = 8.95 [type3] =

Re: [PHP] parsing values from a form post

2005-04-08 Thread Chris Bruce
, visit: http://www.php.net/unsub.php -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 South Office 705.361.0331 North Office Skype: callto://chrisrjbruce

Re: [PHP] Download system

2005-03-21 Thread Chris Bruce
. I tried this system with header(Location: ..); but it just opened a new page and nothing happened else. For example if visitor uses FlashGet i want him to see just an address which doesnt involve the real path and name. If any body can help me, please.. Thanx a lot.. -- Chris Bruce [EMAIL

[PHP] Re: Handling email bouncebacks

2005-02-16 Thread Chris Bruce
not have initially thought of an approach like that. - Jamie -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 South Office 705.361.0331 North Office

[PHP] Handling email bouncebacks

2005-02-15 Thread Chris Bruce
Hi, I am looking for a way to manage email bouncebacks on my Linux server for one of my client's email marketing system. What I would like to do is have a way of capturing the email address from the header of each bounce and insert it into a MySQL table. At that point I can do the requisite

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Chris Bruce
sorry for the repost, but my mail server was down from about 11pmEST last night to 9:15am this morning and unable to receive responses. Can someone forward me responses to this post if any? Thanks. Chris Hi, I am looking for a way to write to a file what the browser would see (raw html) when

Re: [PHP] Writing static file from dynamic PHP page

2005-01-18 Thread Chris Bruce
doesn't happen. If I run the contents of wget.php on the command line, presto, it works. So, what is the deal? Is it a problem with the apache user not having access to wget through PHP?? On Jan 18, 2005, at 11:41 AM, Richard Lynch wrote: Chris Bruce wrote: sorry for the repost, but my mail

[PHP] Writing static file from dynamic PHP page

2005-01-17 Thread Chris Bruce
Hi, I am looking for a way to write to a file what the browser would see (raw html) when viewing a dynamic PHP page. I have numerous include files, MySQL db queries, loops etc. and I want to generate the static result of that file and save it as an html page. I have toyed a little with output

[PHP] Question on using png file in ezPdf class

2004-09-21 Thread Chris Bruce
are correct, the resulting PDF just has a whitespace where the logo should be when I try to use a PNG. Has anyone who has used this class encountered a similar problem? Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga

Re: [PHP] Question on using png file in ezPdf class

2004-09-21 Thread Chris Bruce
Don't think that is it, but for the record, it is compiled with-png. Thanks for the stab though :) -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 South Office 705.361.0331 North Office

[PHP] http referrer

2004-04-08 Thread Chris Bruce
I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres

Re: [PHP] http referrer

2004-04-08 Thread Chris Bruce
Damn! It can't be that easy ;) But, yes, it works. Thanks a bunch. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its

[PHP] Function to check a valid date

2004-03-20 Thread Chris Bruce
. (Saturday, March 20, 2004). I need to have a function that will check to see if that is indeed a real date. Does this sound familiar to anyone? Thanks a bunch :) -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA

[PHP] Help with '' character

2004-02-17 Thread Chris Bruce
where name='MBI List - Steel ' I have tried to urlencode the variable, and also use htmlentities, etc. to no avail. Does anyone have a solution for this? Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA

Re: [PHP] Help with '' character

2004-02-17 Thread Chris Bruce
The problem is that the '' character is already in a database. I am trying to do a query where I need to have it as '', but like I said, when it comes into the script from the url it gets truncated. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282

Re: [PHP] Help with '' character

2004-02-17 Thread Chris Bruce
You are right John. I have it working now. Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its contents

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-02-03 Thread Chris Bruce
to escape the [EMAIL PROTECTED]'that.com Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its contents

[PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Chris Bruce
Hello everyone, I am trying to write a function that would compare one table to a number of other tables in Mysql and remove any duplicates found. This is for tables of email addresses where I want to remove any dups found. Example: Master list - compare to list1, list2, list3, and so on and

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Chris Bruce
Mysql 3.23.54. My first thought was to load the output from the tables into an array and they use a foreach and in_array to create a list of dups, but I wanted to see if there was an easier way. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Chris Bruce
This will work for Mysql 3.23.54? -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 On Jan 30, 2004, at 12:48 PM, John W. Holmes wrote: From: Chris Bruce [EMAIL PROTECTED] I am trying to write

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-01-30 Thread Chris Bruce
Cool, thanks John, I'll give it a shot. Sorry for the last email, I sent it before you sent this one :) -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 On Jan 30, 2004, at 12:54 PM, John W. Holmes

[PHP] Calling mail() in a loop

2003-11-13 Thread Chris Bruce
function that I could call that would be a similar test without having to send out emails. Thanks for your time. Cheers, Chris -- Chris Bruce [EMAIL PROTECTED] Idextrus http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189