[PHP] GD and Converting a Transparent PNG-8 to a Transparent GIF

2009-01-17 Thread Graham Anderson
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_

Re: [PHP] Mirroring/caching PHP webpages.

2009-01-17 Thread Paul M Foster
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

Re: [PHP] Mirroring/caching PHP webpages.

2009-01-17 Thread Clancy
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

Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-17 Thread Kevin Waterson
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Stuart
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Stuart
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Jochem Maas
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread 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 is type hinting but it's just not enough

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Stuart
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Stuart
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread 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 other programming languages. PHP is an

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Jochem Maas
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Per Jessen
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

Re: [PHP] Cookie Question

2009-01-17 Thread PHP
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
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

[PHP] Re: Opinions / Votes Needed

2009-01-17 Thread 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 to do what one needs. Additionally sup

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Eric Butera
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Per Jessen
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Jochem Maas
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Jochem Maas
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Daniel Brown
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

Re: [PHP] Opinions / Votes Needed

2009-01-17 Thread Jochem Maas
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

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Skip Evans
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

Re: [PHP] Cookie Question

2009-01-17 Thread Török Alpár
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

[PHP] Cookie Question

2009-01-17 Thread 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. $szCookieName = "MyCookie"; $nID =

[PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Tony Marston
"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

[PHP] PMA_List_Database

2009-01-17 Thread Merlin Morgenstern
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

Re: [PHP] Re: php5 with apache 1.x -> white page

2009-01-17 Thread Merlin Morgenstern
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

[PHP] Opinions / Votes Needed

2009-01-17 Thread Nathan Rixham
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

Re: [PHP] Re: php5 with apache 1.x -> white page

2009-01-17 Thread Ashley Sheridan
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

[PHP] Re: php5 with apache 1.x -> white page

2009-01-17 Thread Nathan Rixham
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

Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-17 Thread Ashley Sheridan
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

Re: [PHP] Server cannot send emails

2009-01-17 Thread Morris
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

Re: [PHP] Server cannot send emails

2009-01-17 Thread Ashley Sheridan
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! > >>

[PHP] Re: php5 with apache 1.x -> white page

2009-01-17 Thread Merlin Morgenstern
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

[PHP] php5 with apache 1.x -> white page

2009-01-17 Thread Merlin Morgenstern
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

[PHP] Re: libphp5.so error

2009-01-17 Thread Merlin Morgenstern
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

[PHP] libphp5.so error

2009-01-17 Thread Merlin Morgenstern
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

Re: [PHP] Website crawler auto image downloader

2009-01-17 Thread Robert Cummings
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