Hi
I am having problems getting GD to convert a transparent PNG-8 to a
transparent GIF
The below WILL produce a GIF...but leaves a white background
# Convert the PreExisting PNG Image to a GIF
$img = imagecreatefrompng($pngPath);
# Set the GIF to be transparent: Does not seem to work
$trans_
On Sun, Jan 18, 2009 at 01:03:44PM +1100, Clancy wrote:
> On Fri, 16 Jan 2009 00:51:58 -0500, pa...@quillandmouse.com (Paul M Foster)
> wrote:
>
> >On Fri, Jan 16, 2009 at 11:57:24AM +1100, Clancy wrote:
> .
> >> The only explanation I can see is that someone has s
On Fri, 16 Jan 2009 00:51:58 -0500, pa...@quillandmouse.com (Paul M Foster)
wrote:
>On Fri, Jan 16, 2009 at 11:57:24AM +1100, Clancy wrote:
.
>> The only explanation I can see is that someone has somehow managed to
>> cache or mirror the
>> version 1 logic, and is
This one time, at band camp, Al wrote:
> Imagick class. Has more image manipulating functions than you'll ever use.
> You
> name, and there's function to do it.
http://www.phpro.org/examples/Create-Thumbnail-With-GD.html
http://www.phpro.org/examples/GD-Thumbnail-Based-On-Image-Type.html
http
2009/1/17 Nathan Rixham :
> it's a simple need: if I can type that my variable can only contain an
> int,
> then I know it's always an int without tonnes of checks to check it
> actually
> contains an int / is getting set with an int throughout the rest of the
> app
> (e
Stuart wrote:
2009/1/17 Nathan Rixham :
Stuart wrote:
2009/1/17 Nathan Rixham :
Tony Marston wrote:
"Nathan Rixham" wrote in message
a: Optional Static Typing
I'm finding an ever increasingly need to be able to staticly type
properties, parameters, return types etc (in classes) I know there
2009/1/17 Nathan Rixham :
> Stuart wrote:
>>
>> 2009/1/17 Nathan Rixham :
>>>
>>> Tony Marston wrote:
"Nathan Rixham" wrote in message
>
> a: Optional Static Typing
> I'm finding an ever increasingly need to be able to staticly type
> properties, parameters, return types
Nathan Rixham schreef:
> Jochem Maas wrote:
>> Nathan Rixham schreef:
...
>> try this snippet on for size:
>>
>> function test(stdClass $o) { var_dump($o); } $o = (object)1; test($o);
>
> ahh.. you miss the point, request: "I want to type hint that my function
> can accept objects of any type, b
Stuart wrote:
2009/1/17 Nathan Rixham :
Per Jessen wrote:
Nathan Rixham wrote:
Tony Marston wrote:
If you really *need* to used a staticly typed language then don't use
PHP, and don't try to change PHP to match your needs.
why not?
Because your desired functionality is already satisfied by
Stuart wrote:
2009/1/17 Nathan Rixham :
Tony Marston wrote:
"Nathan Rixham" wrote in message
a: Optional Static Typing
I'm finding an ever increasingly need to be able to staticly type
properties, parameters, return types etc (in classes) I know there is type
hinting but it's just not enough
2009/1/17 Nathan Rixham :
> Per Jessen wrote:
>>
>> Nathan Rixham wrote:
>>
>>> Tony Marston wrote:
If you really *need* to used a staticly typed language then don't use
PHP, and don't try to change PHP to match your needs.
>>>
>>> why not?
>>
>> Because your desired functionality is
2009/1/17 Nathan Rixham :
> Tony Marston wrote:
>>
>> "Nathan Rixham" wrote in message
>>>
>>> a: Optional Static Typing
>>> I'm finding an ever increasingly need to be able to staticly type
>>> properties, parameters, return types etc (in classes) I know there is type
>>> hinting but it's just no
Jochem Maas wrote:
Nathan Rixham schreef:
Tony Marston wrote:
"Nathan Rixham" wrote in message
a: Optional Static Typing
I'm finding an ever increasingly need to be able to staticly type
properties, parameters, return types etc (in classes) I know there is
type hinting but it's just not enoug
Per Jessen wrote:
Nathan Rixham wrote:
Tony Marston wrote:
If you really *need* to used a staticly typed language then don't use
PHP, and don't try to change PHP to match your needs.
why not?
Because your desired functionality is already satisfied by other
programming languages. PHP is an
Nathan Rixham schreef:
> Tony Marston wrote:
>> "Nathan Rixham" wrote in message
>>>
>>> a: Optional Static Typing
>>> I'm finding an ever increasingly need to be able to staticly type
>>> properties, parameters, return types etc (in classes) I know there is
>>> type hinting but it's just not enou
Nathan Rixham wrote:
> Tony Marston wrote:
>>
>> If you really *need* to used a staticly typed language then don't use
>> PHP, and don't try to change PHP to match your needs.
>
> why not?
Because your desired functionality is already satisfied by other
programming languages. PHP is an interp
Oops, copy and paste error, that is the cookie I was using to delete.
The one I am using to set is acutally:
setcookie($szCookieName, $nID,
time()+$expireTime,"/","www.mysite.com",false);
2009/1/17 PHP
Hi,
I am trying to get a cookie to set in Internet Explorer 7, I have tried
several di
Per Jessen wrote:
Tony Marston wrote:
If you really *need* to used a staticly typed language then don't use
PHP, and don't try to change PHP to match your needs.
+1
I do.. mainly Java when I need it (can you tell)
point is..
Java let's me easily do 70% of what I need to
PHP let's me easil
Tony Marston wrote:
"Nathan Rixham" wrote in message
a: Optional Static Typing
I'm finding an ever increasingly need to be able to staticly type
properties, parameters, return types etc (in classes) I know there is type
hinting but it's just not enough to do what one needs. Additionally
sup
On Sat, Jan 17, 2009 at 2:42 PM, Daniel Brown wrote:
>Well, since Nathan asked especially for the opinions of those who
> would disagree with him, I thought all was well
>
> On Sat, Jan 17, 2009 at 13:33, Tony Marston
> wrote:
>>
>> If your feeble brain can't handle the differences
>> the
Tony Marston wrote:
> If you really *need* to used a staticly typed language then don't use
> PHP, and don't try to change PHP to match your needs.
+1
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel Brown schreef:
> Well, since Nathan asked especially for the opinions of those who
> would disagree with him, I thought all was well
>
> On Sat, Jan 17, 2009 at 13:33, Tony Marston
> wrote:
>> If your feeble brain can't handle the differences
>> then I suggest you stick with your p
Skip Evans schreef:
> Wow, Tony, do you think in the future you could try to express yourself
> with just a bit more civility and in a less condescending tone?
going on past experience ... I doubt it.
> Nathan expressed some thoughts he had, politely, and when out of his way
> to come across in a
Well, since Nathan asked especially for the opinions of those who
would disagree with him, I thought all was well
On Sat, Jan 17, 2009 at 13:33, Tony Marston
wrote:
>
> If your feeble brain can't handle the differences
> then I suggest you stick with your previous language and LEAVE PHP A
Nathan Rixham schreef:
> Afternoon all,
>
> I'd love to get some votes from my fellow developers on the following,
> and indeed some opinions (especially from those who disagree).
>
> Recently I've been running in to a lot of frustrations with PHP when
> dealing with Classes and Objects. Personal
Wow, Tony, do you think in the future you could try to express
yourself with just a bit more civility and in a less
condescending tone?
Nathan expressed some thoughts he had, politely, and when out
of his way to come across in a non-critical and
non-confrontational manner.
Tony Marston wrot
2009/1/17 PHP
> Hi,
> I am trying to get a cookie to set in Internet Explorer 7, I have tried
> several different setcookie() configurations, this is the latest.
> Yes, I read the manual and the user notes, but can't find anything specific
> about the different security levels in IE.
>
> $szCooki
Hi,
I am trying to get a cookie to set in Internet Explorer 7, I have tried several
different setcookie() configurations, this is the latest.
Yes, I read the manual and the user notes, but can't find anything specific
about the different security levels in IE.
$szCookieName = "MyCookie";
$nID =
"Nathan Rixham" wrote in message
news:88.0b.41390.8f512...@pb1.pair.com...
> Afternoon all,
>
> I'd love to get some votes from my fellow developers on the following, and
> indeed some opinions (especially from those who disagree).
>
> Recently I've been running in to a lot of frustrations with
Hi guys..
here comes the last question for today :-)
Everything works fine. My Apps run beautiful with php5. The only thing
now left which does not work ist phpmyadmin. I googled the error msg,
but could only find servers which had the same problem. No solution to
find. Config looks fine. May
Ashley Sheridan schrieb:
On Sat, 2009-01-17 at 15:31 +, Nathan Rixham wrote:
Merlin Morgenstern wrote:
got it :-) Both are needed!
--with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/'
Merlin Morgenstern schrieb:
Hi there,
after strugling a while with the installation of
Afternoon all,
I'd love to get some votes from my fellow developers on the following,
and indeed some opinions (especially from those who disagree).
Recently I've been running in to a lot of frustrations with PHP when
dealing with Classes and Objects. Personally I strongly feel that these
ne
On Sat, 2009-01-17 at 15:31 +, Nathan Rixham wrote:
> Merlin Morgenstern wrote:
> >
> >
> > got it :-) Both are needed!
> > --with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/'
> >
> > Merlin Morgenstern schrieb:
> >> Hi there,
> >>
> >> after strugling a while with the instal
Merlin Morgenstern wrote:
got it :-) Both are needed!
--with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/'
Merlin Morgenstern schrieb:
Hi there,
after strugling a while with the installation of php5 on an older suse
system with mysql 3.x and apache 1.x I got it compiled and i
On Fri, 2009-01-16 at 20:38 -0500, Al wrote:
>
> port23user wrote:
> > I have a site (done in CodeIgniter) where users can upload pictures. When
> > they upload a picture, I want to rotate it (rotating is optional, depending
> > on how much cpu/ram I end up needing), resize it, and create a thumb
If you are using apache + php, check php.in your server is able to support
the mail() function and you have correctly set up the send and return
address.
2009/1/17 Ashley Sheridan
> On Fri, 2009-01-16 at 15:25 +0100, Sergio Jovani wrote:
> > Hi,
> >
> > Thanks for replying. Adding "From" header
On Fri, 2009-01-16 at 15:25 +0100, Sergio Jovani wrote:
> Hi,
>
> Thanks for replying. Adding "From" header did not solve the problem.
> I'm thinking is a server limitation. Could it be?
>
> 2009/1/16 Thiago H. Pojda :
> > On Fri, Jan 16, 2009 at 10:36 AM, Sergio Jovani wrote:
> >>
> >> Hi!
> >>
got it :-) Both are needed!
--with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/'
Merlin Morgenstern schrieb:
Hi there,
after strugling a while with the installation of php5 on an older suse
system with mysql 3.x and apache 1.x I got it compiled and installed.
Apache starts a
Hi there,
after strugling a while with the installation of php5 on an older suse
system with mysql 3.x and apache 1.x I got it compiled and installed.
Apache starts and there are processes running, even the access log shows
access to it. Response is 500 (internal error). The page itself doe
Hi there,
I could solve this error. It was due to not compiling php with mdo which
is needed for mysql 3.x
Now I am running into a new strange error :-( Will post into a new topic.
Best regards,
Merlin
Merlin Morgenstern schrieb:
Hi there,
I have installed php5.2.8 successfully on my suse
Hi there,
I have installed php5.2.8 successfully on my suse test system. Now I
want to reproduce it on my prod system, but there is an error I can't
find a solution for.
I compiled php and the I did run configtest on apache 1.x
/etc/init.d/apachectl configtest
Syntax error on line 223 of /us
On Fri, 2009-01-16 at 16:03 -0800, Sam Smith wrote:
> I need a script that will crawl a list of websites and download all .jpg,
> .gif, .png files.
>
> I can think of some ways how to start like, fopen() or maybe curl(). And it
> downed on me I'd need to handle files writing over with the same nam
42 matches
Mail list logo