[PHP] Re: Poll of sorts: Javascript Form validation or PHP

2008-12-09 Thread LucaP
Being JSON immediately parsable by both Javascript and PHP it is possible to exploit it to keep the regular expressions for the input fields in a single place, and avoid mantaining them synched between the Js and PHP scripts! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] imagecreatefromgif & imagecolortransparent() ??

2008-12-04 Thread LucaP
Hi all, the simple code snippet: header('Content-type: image/gif'); $im = imagecreatefromgif("/path/Mypic.gif"); $background = imagecolorallocate($im, 255, 255, 255); imagecolortransparent($im,$background); imagegif($im,'/path/TransparentPic.gif'); imagedestroy($im); is creating the new image b