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
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, $image
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
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:
will match?
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
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 w
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,
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: image
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 the
t (http://www.php.net/)
To unsubscribe, 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 Nor
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
[
ant to
have. 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..
nted to throw out the more complex scenario
as you might 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
L5L4
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 scr
'
But the exec 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 fo
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 vie
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 b
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 O
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, ON
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 an
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
. (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
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 are
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
SELECT sum(sends) from campaigns 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 Wil
xample (output of $email_list)
'[EMAIL PROTECTED]','[EMAIL PROTECTED]'that.com','etc...
Need 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
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. H
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 t
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
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
other 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
31 matches
Mail list logo