vujsa 0 Report post Posted September 19, 2005 I'm trying to create a script that will generate an image and send it back to the browser while saving the same image to the server. I'm doing this because the image should be dynamically generated but because of the load that would place on a server if the image happened to be requested frequently, I've decided to build in a means to serve the static version of the image most of the time.What isn't included here is the function that will check the age of the file in cache directory and serve the static image if it is less than an hour old. This isn't really needed to get this part of the script working so to prevent making the code more complicated, I left it out. I'm having trouble saving the generated image to the server. I have finally gotten it to save the file but it is saving the data as text and not as a PNG image file.Here is the script as it is currently written: <?php// Designate a background image $background = imagecreatefrompng("background001.png"); // Designate a foreground image $insert = imagecreatefrompng("token001.png"); // Select the origin pixel of the foregrounf image as the transparent color imagecolortransparent($insert,imagecolorat($insert,0,0));// Get dimisions of the foreground image $insert_x = imagesx($insert); $insert_y = imagesy($insert); // Place the foreground image on the background image imagecopymerge($background,$insert,345,72,0,0,$insert_x,$insert_y,100); // Insert Text into the image $text = $_GET['action']; $red = imagecolorallocate($background, 255, 0, 0); $font = "verdana.ttf"; imagettftext($background, 14, 0, 238, 90, $red, $font, $text); imagettftext($background, 8, 0, 238, 125, $red, $font, mktime());// Start the content buffer to hold information prior to saving ob_start();// Set the header information of the image header ("Content-type: image/png"); header('Content-transfer-encoding: binary');// Output a png image imagepng($background,'',100);//Assign a variable to hold the buffer information and clear/close buffer $output = ob_get_clean();// Clear computer memory of image data imagedestroy($background);// Output the buffer information to browser echo $output;// Open or create a file and write buffer information to it. $cachefile = "cache/test001.png"; $handle = fopen($cachefile, "w+b"); fwrite($handle, $output);// Close file fclose($handle);?> Here is the output shown of test001.png:ĂŻĂ˝Kâ1Ă}cĂÞ 1;ĹâĂťĂ0â 1ĂźĂ@fv#á1ĹacøáâŹâĂĂâĂ°âŚ_1â¢ÂÂşPEÂŁĂE/ĂşÂTòT1ĂĂŠ[X!yâĂVA âĂU'&sWVÂŽ(ĂĂtYsDĂĂ´]1ÂG`RU¤hĂøj}UU¤oÂĽTSŠâŹ"PĂd"â˘ÂŻ*ËJAâ˘;^4Âr ªè@ÂśâxLĂZĂ*Ž¢â˘ĂĹžâŚVq4â˘ĂâšClâĂŚĂVIW%cPĂT¡H-âQĂżâĂ´DgBÂ#jĂâšIĂ)QÂşhjBCË@ĂÝ¿nPĆbš+â˘]yâ˘âNž¼")-Q8!Ââ-ĂĂTPâ$)ââ˘X¤ĂĂ'G@ĂŤĂťâ°â°ĂĂK-ÂŞ{ĂŠJâŹË&'âYQRfc@HĂP³ ť#âĂšU1 linenums:0'>â°PNGIHDR$!,.Ă¢â Ă¡BĂŤRÂŤ}E[ĂąĂúž¨Uk[ž¿JĂĂĂĂÂĽoÂĹ ĂąÂĂZĂbEEĂĂÂłB2 Yf23ĂÏááĂšsĂŻĂΚâ hĂáĂ'Ă9áĹç<çĂsžçšĂ=âš[`cĂĂĂ°ĂŻĂâ°V`cĂĂÂeŸá/qĹĂĂ0â 1ĹĂĄĂĂŻĂ˝Kâ1Ă}cĂÞ 1;ĹâĂťĂ0â 1ĂźĂ@fv#á1ĹacøáâŹâĂĂâĂ°âŚ_1â¢ÂÂşPEÂŁĂE/ĂşÂTòT1ĂĂŠ[X!yâĂVA âĂU'&sWVÂŽ(ĂĂtYsDĂĂ´]1ÂG`RU¤hĂøj}UU¤oÂĽTSŠâŹ"PĂd"â˘ÂŻ*ËJAâ˘;^4Âr ªè@ÂśâxLĂZĂ*Ž¢â˘ĂĹžâŚVq4â˘ĂâšClâĂŚĂVIW%cPĂT¡H-âQĂżâĂ´DgBÂ#jĂâšIĂ)QÂşhjBCË@ĂÝ¿nPĆbš+â˘]yâ˘âNž¼")-Q8!Ââ-ĂĂTPâ$)ââ˘X¤ĂĂ'G@ĂŤĂťâ°â°ĂĂK-ÂŞ{ĂŠJâŹË&'âYQRfc@HĂP³ ť#âĂšU1:#âĂÂáĂĹ ÂŞke*Â.jwÂâšĂq§{â|âI¸ +Ĺž:ĂĂĹĄrV²âŹĂżDĂ´*;ĂĹOĂHĂâ˘10SĂE0ÂľhÂŞuSuWĂĂąâş,âÂŞ6âş%â˘ĂĂĂŸĂâ°ĂĹžĂ9t!â˘ÂhrzâĂY9²Ă3iXEĂREĂP³ÏĹËÂŁĂšĂLĂąASYĂś/â°kaËz4eà ðšg`ÂŞswä'Ĺ˝YdZÂVĂÂŚĂż!_ĂŁĂIB¸â â°ÂłtkââĂŚ|§¼è_M(Ă'â pâ˘Â¨ĂŁĹ˝âa°Ă"â4ĂkS<Q>ĂsâŹĂ*;,ĂHË8´Ă2z(UžĂa8 òÊâ˘Ă/âÂźRx.P.ĂĂĂ8=N²5>¢âL6ËMĹĂĂŚ,Š§á%B?A_Tâ˘4ÂŹ0ĂĂZŽä{ºçâÂśĂÊŞýâ°âfP+2ĂĄËâ!Ă´ĂBĂĂD6ÂQ½H?ĂŠ68Ă>ÂĂĂĂAäĂĂâŹĂ´Âˇ1Þ¹âCĂĂâ˘ĂKĂÂVĂamMHâĄÂš@Ăź-âŹĂ>Ăš§ĂĂâ˘ÂžÂŠ|ÂĄFòbt,\ĂtĂ2*TĂž`ĂšdĂ4Iââ°ĂĂÂââb´Â;Ă_=~Ă_ÂľdeĂąâĄC;EmâuLÂŽ"uOĂĂĂĹ˝ĂĂâ˘Â¤Ă¤C%ò>ââš.ĆÂąfĂŁĂX!ĂľqĂ'ÂHĂŽâ,²EĂF@"IĂĹ ÂŞ5âŚĹ˝Âx.hNâ¤ĂĂŻxF:'ARP[â Ă"yŠKĂuĂO´üŠ#+2ĂâÂŽt*OmĹĄ&âĂŞU ĂèäFâžâŚĂľkFĆ?Qâ ĂŠ ù¥Ì$Hvâ˘ÂŽPUâÜþùŠN(/@ĂŤBT^°:§ĂŸ28ĂľĂ5â°Ĺ âš[<A5u=PĂGĂÂĂŤâŹ\â¸ĂHĂË.ĂĂ?bĂšrĂKĂâĂÂâĄ>ĂĂ)Ú²T (IÂŞ7ĂÂV;â âĂĂĂľĂ¢xR &VŠË*NÂŞk³Ï3ĂB§ßDG&wsrÂş&škSjĂĂ-)_âÂżhÂźIyl#ĂâĄÂ¤'ââĂ˝ĂQòÌââĄ>âhPTĂŁn$iĂĹĄorĹĄÂĹž sJËrâC$'ĂŁâž-a-_5ĂžeĂżâş*ĹĄ;ÂNĂ~âŹĹYĂÂś3âQ^ËĂĂúþâŚÂŠĂlĂZË8ËËĂp02p0CšãĂ}ò'x¸Zø½ĂĹsÂŁsĂCâºť-ÍŞ¢"ĂdĂĂÂĽĂ *âŚâĂ\>ĂÂWjtâ2d#iU?)uxĂĂ;"ĹžâÂCĂĂžĆr¸ĂQfâòJ%Ă´LDò]ÂŤ{ÂŞĂ5Ă1~âĂ=â˘Â5ŠĂRMuĂŞsĂh$._i6²$ÂĄ2YÂâŚĂ˛ÂĽÂ¤ĹøâĹž{:,âĂ°:øĂÂĄĂĄÂż3dvE?âŹÂśĂ;ĂĆĂĽÂŚ3ĂwĂźĂ*äièA+Ăť/ÂĽ ĹĄPEĂŚÂŁ{*Fa¤âĂšBNâŚ&¤ĂâŚ2Ă`§¾ťâ 9ÂÂç0xÂťâŚPvâĂuĂšdh`Eðše2°c)ĂÎ˸YĂĽâŚÂŤ\%âI½š$"ÂĂÂŞÌ£uY0[ÂźĂ=ĂV;¨ÜĂĂ ĂĂĂCĂŠĂÝÏĂÂĄ?çOž²`ĂwĹ)Ĺ 'ÂÂŚââ˘mĂĂYââhâĂ)âĂĂĄĂÍâ4Ž¿lĂÂŚĂĂáD>ĂąD>FÂźĂ2,B^¥ùä*Ăš'â˘/ÂľyϊvĂĂŚĂ°Ăè!ĂĂTâ~š¤¡ÂOsÞòÂĂĂż6.ĂąĂqÂĂżâNÂŹO°¸YĂĂ°Ă`Â_4Ă|ââ %èóšgÂŁĂÂŞâÂĂU"Ĺq)Ĺ~)ĂŹĂ(nzR|ĂŠN8Ă˝RĂâ¤ã¨/2GĹĄ)Ă/nʟNĂŤIX§]nĂşkpÍッÂp]òËŠp.JF¨ýýĂáâÂĂŚ(ĂjĂąĂâĂĂŠÜVb;Ă^&Tâš!áTݾ§Ăâ/|ĹžĂĂ:G¤Úâ°â°ĂšĂą Âäú=¸ĂĂąĂĂŠâ#ŽòýnrxAa|"ÂUÂąâ<4o"çR:⺟êŠmÂżĂĂt2HĹÂŽ~ÂaRâ˘Ăâ°ÂĽ)8&ĂĂŠĹ !ĂPäluWĂż^ÂşSlĂË°:âšÂâĄ;ÂŽ m%â 5sĂĄĂťĂĂŤâĂž>Ă°ĂĄĂŽâšĂD žá>¨ĂÂŁĂâĂXĂ@WĂ%ÂŽĹ KÂłSĂVËÎòyŽŽ< üäNsĂâ˘VÂŻ0â˘sĂĂiMĂśwz{Ĺ˝u½¥âĂÂĂâĂMâ ¨'ĂĂŽfĂŹâĂĄĹGpâĂ2ÂŁ 2ÍŸºpÊÿŸŸFßôopĂÂĽÂWÂŞÂşâ˘Ăąpâ ødËĹ QÂSsĂšĂg/DÂťvĂĂ˝SÂŽjÂŽdpĂĂł2ÂťZ12ĂĂŤmĂąËâxĂĂþÚcĂ˝GĂ4]0Ăžâ²Ă+ÂŹ9ĂĽ@qÂťĂs§ĂÂĂĹ ĂĂuĂmĂĂťsâ â>Ăg>Ăg&SnIĂ7*'Þ§9MĂąb8ĂĂšQóþýÂOĂłl'U~7´ôý;I4ĂĄĂżĂó³¥ĂĂqĂśĂĂ_oĂźâĄĂzreβ¥Xgÿť9ĂŽĂGDÿáYyâÂź4#GOâóĂââĄĂ¡Ă08ĂŚĂâŚĂŻUĂł@â~ÂźĂâÂżËÿ³ĂpĂ7#¿¤Ă¤Þœ?|ĂĂşhâšĂąCťšåoC*¥š¿ýŒïç5¥´LĂľQ]ËĹĄĂâĂşâĂŞâAĂĂ}2DĂľhĂšŞDĂŽÂŁĂâĂÂş ÂŻ%Âż-ĂĹĂiĂ¡Ÿ(nŠ.ÂźKĂ*Ă <NĂOuĂťLâŚS¢];äâĂwcĂ˝âĄ;ĹžĂ,~ĆÂâ˘\eâĂŚĂtÂŹââ˘ĂUR7åäZrèvĹzĂ`QĂŠ%Ă/K;ÂąËĂżhĂKĂĂĂžY{ĂŞSNĂĂĹĂ!ÂŁĂáÎâĂźeÂľ'ÂŻĂ1âK]ÂŽ/øĂ`hÂżfĂ½ýOBĂżâE9§/Ăż|ÂąĂt)koxŸ7Bðç hĂž}rĂ²RKĂÂĂ°vĂĂĂŤ?t˽(~#&|MøĂTĂĄ|âşËÊúà zY¸ŠSTÂŁĂąĂ*ĂŁÂźYĂą+RĂŞÂĽU[oýÚâĄâgGŒŠýĂŽçžĂĂâ˘Ăòý<'⧏CrâŚ0ĂĂŽ/âĄĹĹ ĂŚâ!Âź+ĂĂĄĂĂTGèI'Ăj?r%ŸLâÂĄâÂŞpĂĹ [^Ă3ĹhOVRĂG.Fý´ð¹ýĂĂ˝ĂĹ˝â˘Â˝ÂĽYž:ĂĂ°bâ°;7/+~ÂŞÂťââĂĂá~uĂä7hĂ´l62âĂÂŽËĂĂðŸ§a,@ÂĄx2ĂPÂ/§D¡Ăâ\%uĂŁ/¹äâŠRdÂź0â˘Ĺ˝P¸Ă;øÊËĂdn8gĹÎðäà ,57ÂqĂxÂĽĂĂFÂŻN^ĂĄĂŽÂĂĄbv9;ĂŚĂTâĄÂŹ[ÿü|â âşĂà ßù-Ĺ ÂĽÂâšâ ¾£!ĹždýòFžŸNÂŻâŚWÂŁĹĄ4½Zzò%4#ÂśOFĂ˝oĂYĂŞMYĂŞâĂ´uϜĂfĂâs§Ê¯â˘ĂŞĂ[ÂĽĹ˝ĂÂŞTâŹĂžĂÂŞÂĽĂŁw:âĄĂ*%ŠGâŠĂâş^c'Ă ĆjÂśĂĂĄ žnÂżĹĂť=šu?ÂąVĹžÂN%B<ĂÂ--bÂÂŽhĂĆĂŹgâ°xcscdYŠè,ĹĂâ°ĂĂĂ4ĂĂC¿Š@52QĂR ĂŠ0á#ù¥ðÏ(â°ĂŤĂąĂâ˘TES=qŞÜĂ$wĂ!Ĺ˝'Ă'#çLòĂ²SĹ ~çNLĂĄPçHĂËFĂŽvĂúòËĂŁÂĂ92âĄ-Fz:Ă`Ăf<ĂÂźĂ¿âQÂŽM¯òâšÂ²¥âšĹâĆF_[ĂnĹçÝĂ⏠ĂĂjoĂâáÂ>ĂwĂĂYĂhÂť]´8ĹĄâ&}mÂśĂŸšĂlĂĂ]9<£Žá*{Ă%çĂâ³ÝÞâââúßWóï[Ă{Üä~ĂĂŞHoŸÞâ ;bŽï¡>Tªø¸`]¾ý£ĂuHĂâĄZväfbâ°ĂWHĂsFtĂ!9ĂiĂâĄĂŤ~-Ăś^cXx-ÂĂź6YM²1¡ĂyĂOLe³¿|çŞâo=âšÂŚĂ9ݺÞþ#"w4wĂÂŁ$â˘âĹžĂÂâŹ{âĂFsÂŽaĂ Ă:ĂžcZÂ-<ihÂĄ ĂĂOý¿ê¯]ĂĽĂšĂĹĂâšÂ¤8Ăť[VÂ_ĂkĂŠĂeĂcÂŽSOĹ"ĂŹunĂšmĂľ5Ê4ĂŻE4Ă˝SžĂĂś ËpÚß|ehĂä{bĂĂĂèßĂâ˘?qF]?šd¡ÍeâĂâZĂŁ=Âť:PCÂHiĂĂi?wâŹĂèKdâ°~v¹½ť6Ĺ MâŚĹ ZĂáÞh(ĹžĹÂśĂÂŹÂźLĂ r°Ÿêâ>Ă6ĂĂhĂâpÍÝ¥ÍmS/DdZKg;g}/°óÚĂĂ"ÂżĹR?1)KĂĄm_çál6ĹĄsĂÂŚĂÂŚĹ9Ă½Y§ªOĂŞuâD2²BÂĂĂŽ'\y%TĂŁ\Ăş Ăş=3?F꯴ßĂ&ĂŚĂĽËyĂ,ť§]WĹÂş>?6Q@[ÂŁĂžK<°|ĂBĂĂšâ ÂŤâĹ3Ăş_Ă_Z(ĂĹâ¥þýxäO.š³žxĂ´ĂĂĄĹ˝eÂŤÂľ1!YĂw°sĂ/GÂşĹ{ÂşĹŸw?|Ă6ÂqĂÂŽâ#ĂŚâ˘G§ĂøèĹâøâòèôŠâ ZIÂŤ08<ÂĂĂDfGĂâ1.ĹĄ>dþø[xâHÂĂwĂw`ĂĂ³ŸĂĂÂŹA/ĂkĹçĂò7ĂŤÂŞdC ĂÂşpWĹÂŻ[Ă°vĂø<wĂŠĆgâSĂąĂ³ž*0(âšcĂĂQĂĽh~Ăź+TÂżX>â˘ĂòĂFÂŁj§š"ÂŤz¢ê)Ĺ˝ĂĂžwÂŹĂĂ>Ăź=Ă$mĂś& jËĂ°Ă3ĂŚ ÂŞYáº\Ă}ĂĂĂŹĂą)Ă}øM4ĂĂ7Âľh>Ă~Oø=âĂBÿá{Ĺš¼šç=`)âşâŚĹ¸2â°ntâÂĂżxĂÂłc°ùÚp¡žY4Ăd ss Ăł}_Ăť:IĂť6ĂÂĽĂHýÌâ˘&W²sâ Bân%ÂkP=FĂùÚïÂŽäÂĂžâĂŻ~yâGĹžxhĂ7YĂEĂÂśĹÂŚG&/¿ãpý˞çÊôä¯H Âľ,á,9ĂâŚÂnË$kâĂĽvÂĽrŸà â <šP}}Ă\¡Ă`wÏèN)kĂáĂp ĂwDËuĂĹĂť= ÂżDá½ĂáĂŽš|y¢ĂĂ´ĂźtÂŤ{ÂŞĂ5ÂtĂŽ=Ĺ˝qsĂĂśrâĂâŹd +"ääMâşzĂââ厞#oøz6ĂťĂ4=ä?°oĂM!ª¡~+iZsĂ´/ Ă°ÿ@<ĂŞOĂò"}+4¥´\_¸dÂ´è¨ "kâ°#âşpaĂRP!ĂŠâ*+ÂŚĂâĂ}9=UAfUkĂ´Fb&1&Ć8ĂĂXFâşĂÂąhäĹĂŹÂŹ.N*9VĂziâSILª¡8ĂŹĂâ˘Ău)OPâ°â\ÂłĂZ§âóáŞ¯3ĂşâşÂ¨vmòĂUÂwâŚ@^ĂĂj¸ĹøO¤hÂąyºªk)yâĂĹĂÂCÂłâš*&ĂIĂż%0âB²mâ˘5-ÂŚfĂ'Dâè 4§¼<ĂžBdâÂŤ8Ă"hĆÂ*â|5ĂĹ Ă E¸²Vâ°Â˘4(^ cbY`ÂÂDâĂ.ĹžYIU4AÂŽĂĂâĂ"wÂrMâ z7â ç%ÂtGmhĂâŚ*9nâ˘kĂÞâCSâŹĂśâA´|1Ć=ĆĂŚâžĂêþœxĂĂş!ĂâQGPÂźD0Âş(ÂŤ'ÂłââhEP~äĂE#ĂťĹâĂŤYĂĂâxqĂ°ĂgrqĂÂŤâĂF#udâĂŚâRgbtr#aĂf5xâĂĂĂ̸|ĂĂĂĹ9YTçshSâšĂ)ĂŻD*Jâ°ĂT1¢ãôÂO2ĂĂg] \LĂĹ ĂĂŠâfDâEĂâŹL¡ââ°Ĺ ÂąZ<HĂ´5Ă#,LŸĂĂeDÂŚâŹ+ĂHøâ\"â˘â:jaTĂş8šĂĂź0cĂĂ0â ÂĂĂŠ2tÂŽesvĹacĂâdrĂøĂĂ0â 1Ĺå¸âbsĂŤĂrĂ°ĂĄ7âĂĄĂŠoâ#[ËĹĄĂľâŚÂŠrHZĹ˝fZdĂŠĹĄbB}wÂĂŁÂą05ýŠ"e ºøââŚÂŠËeâĂą5ĹHq²¸0ÂLT,S%=ÂĄS5saĂŤCĂÂ#š.ĂĽ *ââkĂPΉ{iĂUĂz4ĂĂÂşâÂąĂ=ÂŞSâRt\Ă-CsžkĂşgĂB ÂŞcfäóĂ¿Úó\¨ó"T¾âĂĂĄâÂĄĂ'Fsa*Q1âcĂŞŠŽ¤Ă´fĂŞĂHÂ@â ¢ÊâĂĂËĂ;Ă¿¤gÂĂPĂĂžfâŹâxMĹž"ÂľĂ5ÂĄ8Ĺ $äœCĂ˝âĂBG#IG 4Ăž?ââ bUĂNâeA<~SĂĽĂ4äĂĂŹ.bĂĂĂhĂŞf$cäĂüùŸĂÂĂ ĹĄÂΤrĂžâĂ>Ăš§ĂĂâ˘ÂžÂŠÂśTáĂââĂŠ+mĂ/âMÂ|Ëf2ĂžĂ£á=ĆÂĄÂNüŠMBĂDPBĂ$!F'7âĂ´-ÂŹ_3<á2=Ĺ ĂNËI?ÂąPĂfÂź05}ĂùŞĂtĂĂÂŁÂŞÂŽÂľĂOs-LMĂäNáâ§.à ¢òâ5¨Ă9]PĂžĂĂłbĆ4øââù³9#PĂĂT²sĂŁrÂk7ĂâĂEÂťYâG,_ĂĂŚ\Ăâ˘ÂâĄ>ĂĂ)Ú²T (IÂŞ7ĂÂV;â âĂĂĂľĂ¢xR &VŠË*NÂŞk³Ï3ÂŹĂR~¢#¾8ÂchäŞq{#âŸúŠnrâ*ĂŁk½¢¢r²}:â˘Ăââ QMËĂť&â@ĂâĂąĂÍÜ¿8úÞ2xžž~ĂŠĹĄÂť7(à ¢üŽÿeâĂgĂťdĂ´Ăò\8ΧsèËÂŚ0d0C2¼ø4{ªŒäÂ)âŚBĂTçv0ÂŹ0u4;âĂŞĂĂžâxžžĂĂŞ#Ă2k§sâŚÂŤ.Ă>Y°âOâĄĂśĂgĂ!ĂĄ#kĂĂŻ>~ĆÂĂžrÂŞwĂ/ĂąE5uĂAcĂI,ĂĽÂĽĹžĂK ¨ÞĂžzP2;ÂżsFçŽÂĹĄĂĂQB§ĂpĂşĂĂáâŚâOâ ĆĂâ°ĹžĂśĂĹ >Ÿ¥H¢bĹ ĂÂŞ|â OFĂâWĂĂĂ3p¡;#òĂĂ°ĂfçCĂśfä iĂSÅlĂ´w~CÚŸĂ'Ă6ĂÂľ\7<;ââ3ÂĂśâšĂĽB¢Þ IDĹĄĹĄĂaC@#Ă|2J¢Ă½1c>â˘1|%AeÜ´qLĂâ|TĂĂĽIÂĹĂœþ=òIÂz}2,'ĂĄ,ĂĂŁ!âš'Q<ĂşqBÂOĂâĂT§ødËĂĂ´ĂPDâWYĂ´ËÂD"ÂĄÂĽĂĂĂ°eE{GĂĂâĂÂŽÂdgĂşâ°^ËJÂŚ{ĂÂľ,wuťøÍAÂą+&âŚIuÂĽf9,òf@ÏŠª£ŠmX¢4,ĂÂśĂaĹĄb%!ĂĂè'ÂâJHú¨¾ĂjŸïDtGĂŞĂÝú@"OâşĂϤ"_Q=øâWĂvGzÂŁ}ĂŻ{Ă1²Ă:ĂR|fÂŞÂśR2¨yâš0UĂ.ĂĂĂŤvW'AäÍĂĂŚpl*äĂ@&zc¨ââ3>ÂĂkĂĂłEĂĂâŚĂŤĂAX4Dy!b!ĂÂľ(Ă5Âł"Ĺ 5ĂľÂ>â z:ĹĄf4UCgaĂšÂN|ĂNçÂÂŽâDÂÿà â ĂqÂ_âšĂĂł)ĂĄ#ĂcU¢âhÎòhDâKÿ§ĂĂŹÂ"Š6DĂĽOĂĂr!S!Âż\;Â3ĂĂŽËĂŻâx¨ÿüĂĂĄĂCK;ž⠏ŸĂĂĂĽvgò2_ùʧsh!wĂުĂÂŤsáÎâùHAĂ'Ăž3Wâ fĂtSĂÞýâşĂ{o4âQÂĄ~r"`OQDãâ¿ĂTÂŤÂź)Ă5w-jĂŠâĂW-ÂŽQĂâ˘uĹ*'fumĂâšĂBIÂĂĂè<\ÂŚHR/ÂUip?;ÂWĂĂ´0Ăpâ°CËcMÂź;c´tĂš6Ă[Ă´/C?Ăâ˘yâĂ`(3)Ă²\âkĹĄmâšĂi~VÂľ_â/iCMĂąĂĂĹž'Ă´t6rĂĂjθ#a¹ÝúĂEÂŁ1ĂżcâĂŻR/FUø42)ĂèĂE-ĂámĂ)]ÂŻZ<cô¢Â>j¸`1QS:ÂEmÂĄ{7$u>;âoĂÂĄiâ°Xè@ÂŞ.Ă˝ 'Ăgšâ:@"o°Œ.ĂĂĹxĂPâ@â*gÂŞĂ|QÂŽR9ĂrâD=7ĂCÎòĂâ°ÂĄĂş5Ă=Âoâ°9ĂŻĹĄBĂËĂĂDĂc]Ă¡âĂľ<ĂÂĽ7-dĂşĂQâ#rldĂźĂ.ĂΟ§=CWÂťâĂĂĂĂŞ{+s*m´èĂĂÂĄÂľĂâĄĂ˘}´Žf}ÂżÂß½ âÂż7 TÂ_Zç>&âĂŻyèĂdoĂŞ@dJâĄĹĄÂ¸ÂŚĂä_Rn ĂĂĹ ĹŸ¥ĂnĹĄ|OĂĂĄZiĂźNCâĂĂ`¸Ââ˘3dÂż0[âşMoL*ĹĄĂ$ĂäoĹĂŽââ°ÂŁĹ ââşnrĂĂiĂĂŻošÊ&9°xĂŁĂĂź;zĂ<óóÝïS²ĂĂžÞúĂĂŚf9NޜmÂĽ7ĂśĂâşÂˇĂ§ÂżHĂšåâ ĂCâĄĂĂ¿ò â˘ÂĂŚâ˘dĂä}*gèHäeĹžAË.Â0ĂĹ˝ 4lĂĂĂŁsù³ÂèĂĂ>|¹á)_eÂłĂ$Ĺ%ĂŚĂGĂm ^Ă˝Ăâ°â{Ă-ĂVĂhĂyšEĂ/ĂŚââ°Â¸5â?ÂvĂŁâ{ÂŞĂžwĂĂO2;ÿʪ[ĂŠĂŠ@-SÂÂŹ ÂŻ7F+#ߎŽÊ4DoĂâĄÂąĂ¤ÂżKĂĂśĂ~â âĂnĹzwâ˘ÂŚâĂĂłĂÂ[ËĂ:1ĂQâĂľâ2ĂhŸĂÂĄĂ°ĂżĹĂŞĂŠÂŚ@ ⧹ßĂÏáG]ÂŽÂŹeÚüâĄĂšĂĄĹĄÂžMĂžĂP=ĂßðĂsoÂźânϗĂĂŹĂĂĂyĂ1@ĂLĹ XâŒ$'§Ăs'U#zMâĂĂÂz|ĂŽĂžDb?ĂŤĂĹžaĹĄĂòĂäNÂł@¢3^ĂĂĂť0Ăś~ĂŸà 0âø*Ă~m>¤Ë#ĂÂąËIâ ĂŽÂŻv"8ĂŚ;WáÂ&lVòĂÂĽÂśI:Âź(Ă)â r¸|ĂËÂŁ=Zs°ÂĂÂĹĂĂĹâ°ĹĄĂŞÂŁ2 âÂĄ'.ĹĂ°ĂšâĂĂĄNCĂj5DXĂVĹ cĂĂ[ĂŠâqÂŁĂ´ÂĂâ˘Ăžâ ê²so¸1Ăkú^Ý¿á*Ă%ÂeøâÂŽ$.ĂĂzĂ{ŸW¾üĂï¸hĂĂâKeÂŽÂŹĂòšCQEoŽŠĂm{çšOj=Ăžâ IĂšâ§Ăk3ÂŞ$ÂøĂ[ĂĂwsâĄbUyw,Šh,Ăâ[]mĂ°;½6CâşĂĂ´ĂŞ_ĂĂŤZĆmnóšĂT´šMĹ ĂAmw䯯z*½¹â J[c º³,4T~Âł)vĂ'1ÂŻV\l|}ÂŞĂżlHĂŚÂŽÂĂŞĂ9ĂżĂäĂXg7Ă¾à Âs@ĆĂ3ĂĂ Ăq]Â<Ăh/bĂx¤drºžâ/ËĂAA:ĂI6皏ĂiTĆ}DHť½Z><_LĹ ĆÝŸĂ1B¡ÝðøùŽâ!ÂĂ/(Ă':6âB âşÂŽĂĂşĂĂSDĂ,ĂĄĂĂľ3V¨JHtĂâĂżĂâĄĂŻâšĹ&ÂĂł:HðÞ°S)$wánâşz*dĂżâ˘gĂŚĂĂ_ÞῚê*)ĂÂľ}{ĂĂã¾ÍçiÂłÂĂQIââ-MĂŽĂĄtĂ¿Ü³ĆÂŤĂNĂWnĂš\bvĹ @tGyĂĂąâþOÂťyâKŠĂtâĄĂtĂâĄÂš'âŚĂ¾údfâĂ ĂĂŻm8zçâ Hij=!â°Ă%ĂÂľUz#mÂŽ$ÂŽĂźĂ'1;ÝÎÂøâşwBç}ĂŽ_VÂżâ˘ĂĂâ ÂĽĂľ5#Ă°<sĂťdâŹâšĂĂ˝ Ă:ĂÂŽXÂź+&@â@$ž];â˘lÂźĂĂŁy:AĂŚĂa<7¡ù¹ĂĂşĂ<Ă½cGĂŠÂşu4i?HĂŤmĂâ˘ĂÂŹNLĂâ55ÂşUĂĂjÂnâšDΊ8iĂĂľĂĹç]SĂXjĂÚþĂĂ@TN|Ÿó<âĂ&4âËä.ËÂ%ĂĂ¿ïj,1J?*Ĺm.CÂĽÂ:šcĂEÂŚĂşĂâLWÂĂ¢\ĂĽm.¹¥â{ĂÚŠĂ?8,á\Ćanjò/rxĂş:=ÂĽA7LÂł(ĂšEvĂ¢4§¸kĹjQĂE/°3Ă@cŠĂTjĂÂW\¤oĂŁĂEĂĄtEĂtâ°ĂĂ~â˘ââ!EĂ¡ĂupĂąĂĂŹlĂĹ /.IŠĂ%^ÂŤ5iĂ+ZĂ\RĂĂŚÂŞ9°Žš¯aRzĂSkžMJ²Üâq¡|Ë$j=ĂĂĂĂ´x°$GĂhsUn]ÂŤUb¡'R!ÂĂĂq²ŒâĹĄâŹjKÂŚĂjL+ĹĂ´ĂĆĂšd°ŸË(âĂCÂP<¹ŽËĂś>Ăâ˘ÂÂą-âLùŸĂuiy7¡HfþßâŚ}âJHIĹW/ĂŻxŠ~bSÂŁĂŤâ˘?LââĄĂŠĂĽJ87yÊ¡[â ĂgĂťdĂÂĽâ°uââĂĂŤâĂd¢O ´xâ˘Ĺ˝ÂŞjĹžĂĂuEP5E ¤RdĂ˝tĂnwBÂĽâĂ/èoĹĂŽqŸ=9d"JĂľâà ³úTĂžyĂ]â˘NFĂÂŤÂŻMĂťĂâ˘ĂgϹ§v(cĂžsĂ4eĂ°Ă_x0Xâ ĂÂŽĂĄ2â ¨øâQjâ4ĂOQDïâĂkËbÂĽ/žTccbĂŠĹÂĹ zJPò³°Ü¾ò`ĂT3Ă'}ĂŹ%¢Ăckjtu{èz7bâŹĂ?øĂ]ÂâŚÂŽ)cäøfdÂşĂtšĂ^Ă°9Ăw-ĹĂ`G|2¨çDʸ@òbXĂąX.¸ªÊ,LĂä¼èËĂŽâÂĄĂşaªââyĂ°ĂĹĄĹ ÂmÞÞ`ĂĂĂèzĂ´WSeâĂĂ¡Ă45Âşjj}à ŠÚÂĂŁÂŞĂĽĂ5Âł|Ă\ĂĂKº¡m)LĂÂĽÂĄÂĽâvĂŽntIâ pMÂââ ¸ïâm[ĂĽÂĽLòĹĂĂŸĂĂ|Ă! â>Ăâ*]um;¤&M²4¯Ÿ(i"MĂĹâş6âÂźT?QĂMZuĂĂáââ Ă]ĂsĂ˝wOâ^P¤ÂĂĂy-w^Ÿ!ÂĂ+ĂF=óþŸê¯çÂĂŚ$HºýŽg¤s$&^QL(ÂHãò[KÂirÂËL¡;&ĹĂĂĂĄvçÂjóåâÂŞâĂ7¡ĂW_Ă~Ă]¯ÿŽKâV=9ør}pHĂŁĂľĂÂĂĽcwâ9ÂŻĂĽâå²Ă1Ie'â˘ĂŞZ§spĂÂĂdÂŚĂŻh1Ná{Ÿ¥âŹ&ĂKfÂľĂ{eĂÂśnúà Ÿâş>xeĂ6âĄ3ĂĂŁÂąÂ}-âĄ_Ă_Ă'{{ª§ü)4â[ĂŚĂŽĂk$VĂ!Ăâ˘ÂŽ7m,žÝÜĂâ²mKĂĄĂ¡Ă<úŠĂ¨pĂŤÂHâşĂzĂŁlʼ¥¸4tĂŤÂHYKŽøÎ;ĂĽĂŽĂk¸ïâ˘Ă¸;ĂŞHĂâŚ~<dQËĂ]ÂÂťj("âc[œœ>Pâ ĂĹĂ´T4BicSRÂŚJĂŚâÂĄ&GĂĄpĂĂźmâlwâŹĂ´]QĂĂ~5+nn^qsÂłlÂł+]=âšât/^Ă-ozCĂâĄIÂł]>%Uâ;ŠkĂŽĂ´Ă,ÂèN!ÂŻkʊĂòË¡lE?9ÂŞ!ÂĄĂâ¡ ks[ÂĽâş^âşQ:âÂŁĂ3\ĂĂŞo¨rĂüèĂizĂŽÂĂĂżĂĂĄĹIF´´;²LĂp8cŝþâógĂ°~i_F´ºĂ䎤'asâ˘ĂŞ=à žáĂĂòa´uĂ6ĂŠœ²¡]Ă&â,ϼM2šâh]ĂâHĂÂľ+çĂĂ ÂásG6vĂ´¥dĂâ b9mĂł!ĂĂŞ?TCjÂĄÂŹ4Ă[ĂĂrĂĂĂŁÂą9Ĺ¹¼âuĂśxlMÂy=[qièêüâu/ĂâĂèþ-ĂĂĄĹĂ/ĂŠâR9ĹÂąĂKzKºïRZĹ˝KVHĂâo¨.ÂŽkÂĄâş#"4Âąâş+-umloÂťĂXlÂŹkgX |žuUš@l,ĂĂśd´šĂ°[xĂ#gvâ°ÂŽXtĂ°i6cÂźĂ6DĂ9ÂłĂËĂśDâĄĂś}â˘ĂâĂĂâĄĂ7TsĂĂĂśĂâ˘UtrgYĂŽUymnyâşxĂąâ°ĂšĂáÞâšqj+Ă ĆGĂ\aa*+Ëâş'âï¢NΤ'$nĹž(.Ă ĂĂŞĂĂŽ'Ă°ĂĂŁiÂľÂNf#;lÂÂŁÂĂHä7oĂÜÏþŒèXĂáĂĂĂÂżF=ĂĹèKJĂW_ĂÞà #MóÜmĂR(-eĂŞĂśXÂĽgJJĂâšĆ$ĂĂ&áišüĂY/ŠxiMĂáÂòĂĹĄĹ sâĂ´ââ ââĂŹâĂŠĂŠÂśnĂX,â˘ĂĂĂŽâz)[âd>75ÂşVÿ¥ú¼5/¯ŠĂL⣊Ă%ÂIĂr'iĹ˝M6Ă >ĂâŹĂfŽŸSÂĽiË4NÂJ&4L*"KxĂNrjϜÊ9²ný¯ðm8Ă|ĹĄĂšâšĂâĂhĂ°sÂieĂ,ŽôFĂť> Ĺ),Ṝ.²ZJĂŚÂĽgwoĂľkoudĂ¡L>Âż@8ÂźQĂťĂz;^kÂą_âÂŤĂĂÂľw`Ă{Âzâ;\ĂI5ĂŁâIG²Žªùebj¤ĂP]*¾ü;R¡âMÂŽÂą4ĂÜÎÿúô¼Ÿâ˘ÂžÂŚĂĂŠl¨Râ{â_=çÂg?Žþ¤¿â5TĂĽ_~Ăâ+ĂĂVW(.Â`âĂJâ˘Ăżymâ ĂłâO~Þ°Ă9óøŸâ;Ă/ââ4â$GžĂÂł4W§Ăel¨ââĄĂä´ĂUg;âIŸLĂŤgZ7O4!=ĂkĹž8Ă|ĂŻĂ>uçbĂĂĂŽâĂjĹĄâ âwcaĂ´MĂĂ['âWNž¹;ĂąĂĂhY圎pĂ3Ăâ ĂžKùªEĂĂzaÂŽĂľĂĂĂ´L8ĂĂŤĂ˝Â_cdâwWqĂâ\ ĂĄĂŽ8=LmŒ§¥èå ĂŚĂVĂĽ)z=?9ĂĂĹĄcâUaĂwĂĂĂąÂĂž,Ă˝ĂÂèĂrÂĂŁvŸãz_=vĹ2[ÂŚĂşgâ˘Ă½CĂÂŻÂąĂøeùÎ)?ÂŞĂ;I:~>ĂżMĂĂ ~Ă7mĂ4gĂÂâ!þœù¹ĂĂƏøĂKJ'/)ĆĂYâŹĂŻĂĂVâ˘Ĺiâ˘}Ü¡ªœ<¡?âĄLqeĂâOHŽšU|¨>ÂĄPUÂŽĂŤÂż9yĂšĂŸĂX_;N:OPĂtâĄbKáÝ*½¾šâĂş+-ĂòŒXÂĽ/¹šĂĂP!ĂĂŤGY9ŠkÂÂÂşĂ¢ĂĂĹŸâcĂqĹĄâ ic{^R`ÂśuĂą8g|UĂ"óïFĂSTĂĂĄ`pgË>}Ă?¹œJâÂŹââ°Ăâ°6HĂ([T_+/ËIĂUťž@gCbĂ Ă[&ÂťËĂĂšwtĂWĂÂŽPÂŤËsAÂŽ âĂża}2âĂĂŽ4 ÂĂòŸ¥=CĂ{ĂJÂŽ+)¸¨âĂĹ˝$âş]âĂlWĂĂè̟ýĆœ¡*ĂĂ´ÂĂDgLĂŹĂĂ ÂżbâŹ5ĂvA.âŹ~7OœŽÝĂxâ˘Ĺ¸}BĂŽ2wÂŹ'ĂŤĂ;Gâ˘Ĺ x0mÂĂ>ĂľOÂ_t+>H¾¨ĹhT8Ă˝?ÂŚl}fĂż`â⠝ŠßäßĂ%âşĂĂŹĂ$âĹËÞ´¯6¢ĂĂÂĂO>-,,zçŠÂ<Ăø¿ÿ7ßÿ܎.6ŽâŸĂ]ÂŻĂÂťâşuĂŹ%Âśâ°âšBøi*@MKĂC<PĂľ'ĂźâÂŞU ĂżR(Ë'xŠIhT$@Pj!BĂ â°((ĂŠ/(Râ4 8)ÂĂo;ĂŤÂĂĂŤĂ>ĂĂ{gĂŚĹ33wwMH¸ĂĆ}ĂŻĂâ˘3gĂŚĂýÌĂšçĂN¾¡ĂèĂâ ĂĂĂ½øâåUÂŤââm:qIq¤Ă`ĂUÂŽ%}â˘kĂĄ'Ăł$ĂHĂĂ˝ĹĹžXPsP=-{â°ââŚHĂèŠĹŠc7¤c7¤âšo¸fÂź*âšYĂżjÂĽGjè ĂąĂtq`blâšĂĄ%gĂťâ ÂłâşZ#tŸTÂťĂÂťâÂş6âÂş6SĂâ/ÂźâşÂĄÂł0*â3ZUĂ9ĂuoEÂżĂ8wĂâĄ^â âĂq`ĂaĂĂfâ°LWòâ_ĂÝà üĂĂÂŤÂąDĂ²çĂMââ UlLÂŁÂĂÂśmĂW\!Ϋ>Ĺ<thèĂGĂĂâcÂąÂÝΝôŽ;â ÂŽÂź2~ĂŹĂĂ=á9ĂâĹ ËâĆâĂQšâ¤§rÂŽÂL#4N'lÂłâÂł#ĂśĂâĂĽS{¨¯½5fĂ8Ă-\:0YĂâ*[uwEcÂŤÂłĂâtF#]Q/Ă1ĂÂĄĂ z w V ù³âšĂŚĂŞĂ¤Ăâ°RaĂMâ°ÂmÂťĂuâÝŽâĂYÂąh.ĂŚâ˘ÂąĹ¸ĂžjÂżâ˘Ĺ ÂŚwÂŞ6 }2dNâäĂĂŹxĂŻuÂ^°ĂĂâ#ÂŁGĂÂĄĂžúà ĂĂ½ýÏĂm6ĂŠVĂŽ\Ĺ½èºŞĂ[â°0ĂłĂnĹâÂâ¨Ââg:2ÂťcGĂ{ïš.o=/½4xĂ-AĂÌúÝ?Y¿žÂáÜþÂÂľ}{aĂąbĂyĂâĂAü°¹ĂĂ´4á^o ßڏ¸>'Rw ýôs5ĂĄIĂłNĂĂ˝Y#,Ćâ 9Ăâš[c;Â]1ÂĂâ˘ÂźĂ¨Âş(ĂšWĂÂż,1Ă}â˘:òâ˘aĂŤâŚâoĂĂ}e/ÂĽ=Ăą*â˘3Ăâ˘3âŚĂŽgĂ'FĂ}ĂŚĹĹž3âĄâ˘Ă˝]\¸w¤Ü H,žóVĂâĄ#Ă°Ă¥¡fâ˘.ĂŤSĂĂŻĂŻĂ'ººĂĂø@eGâ-ĂĂÂĂL'ââĂ]O=âŚ%ËŞáSù½:bX]d@Ă4ĹĄĂ° òť:@Ă4:ÂĂ ĂĂŹĹ?Ć ĂÂĹâšsO_ĹžĂĂžĂ_ĂcŸLCnâwCĂą5j+ËÂyĂżâ°-ĂĹĄ9MÂĂĂáĂP]ĂŚâš{(ĂâşU,>LĂľ`¡Lô²âèsâšo&ŸŠâĄĂ˘câ´$ޚ¿Ă¤tY5OCĹža0â°âšâsÝ̜üG^ĂŹ~ÂÂź0â˘ĂťMeĂŻÂâ Ćâ°ÂĂšĂĂZ#ËĂPä4YĂĹžXxWŸâşÂa86v=¨mĂť\&z}*z}ªøVaĂŞ#A=ĂŹĂKZZĂžËþœââ˘!Ă S+ÿÊÊâ˘Ă´Ĺ LĂĄĂĂźppĹ O^ËĂĂ˝6âh½Þ H²-Ă°=Ă⥡ÂlÂŤPHl 9ĂŠHĂÂĽ ĂÂŁĂ˘Ë Ĺ ÂżĂĂ%ynË.hV}X ²¤S%VĂĂüŸ´~ºã´:-'%¯òÎaá)âp¸ĂĂŤDĂźĂâ˘ĂYä3§²2øâĂĂŽĂ k¢ĂUgĹĄĹ âŹ`[¾º,Âş;ĂWĂ*Ă2œ³C5Ââşâş({_7âšĂj¨?z2{Ëè§ĂDĂŽzÂş4XĂŤR6Â+FtÂłĂU{ÂľËMBĂâšĂqºÏž7ĂĂŻ6>R1è'ĂłâşMuÂVVŒºïâĂâŹ.âš}2ºŠhâ˘ĂŹĂĹÿÍ â˘=ĂĂĂšâÂZĹĄ`òĂXĂŠÊ@ÂŽâšhÂáa*oQ-2Ăşdtâ˘IhĂĹĂĹ J¤V-¢Ÿ]ĂŠÂ/ĂäÂ|2\Â9ĂĂšnâ°@ÂłâĂ"F ĂĂŹ6½ĂXu8ĂAU|Ă H)*ĂgZĂŤâ!)Ć JºÏ]Ă$¡ÜĂøeĂĹ˝cĂ TsĂĂŻËĂŞOIN/ĂťâĄĆ øªĂĂl+QÂĄlĂÂł3ÂŤĂşRu)%1;Ă¢5Ă(ĂŽĂÂłĂâ Ă=Y}MBĂ~&âGD'ĂŁÂżj¡3½Š5¤ŸTĂT+GŠ¢Ïô ĂĂĂxv²ĂÂłÂòx²Ž$*B¢|Âłâ ĂŤIÂşFa,!ĂĽĂĆ ĂÂŁb|ĂŽĹÂVŠOĂĂĆĂľÂĂĂÂźV<§;âŠVVĂ ÂxRÂą:GÂź{âŚĂ¨/Ă´Ă[ĂĹn"SËAÂÂÂşĂPĂĂÂ4KJè~ÂĽ3ðýŸâ)âĄâşĂ§ââĂŞ5ÂŤĂĂąâiÂĂXkâŹÂ˛cĂ!xâŚĂxĂŽŠï%YĂľT(¤<ÂĄĂ8=@¸cĂ:JĂĂťrgâĄâĂŠ&yÂaoĂ+Ăż9ÂŽĂĂoh$Y=âŠÏĂA¨v%ĆeâĹ*ĂQ3pĂtÂŻÂľIYlĂł*ĂĽ;.VĂYÂŻzâŚĂľrxĂĽÂľM ĂŻp0!ĹĂFÂťâĄÂn²$žhÂŚ+Xf4ÂśĂN)^ĂÂŻÂłcÂźDiĂž31>.âş=§³ðiÂłâ $ĂŻiŸüŽ] â°ÂŹĂšĹmsN9ÂśjĂŤ HVâÂŽĂ~nĹĄĂ'ĆD!þªĆĂĂ'Ăť*ËOèäâOÂŻ(=ĂĂâ ĂĂEĂĂv9BqKXâl0!DçâşĹĄĆĂ8O Mlâ˘ÂˇÂŤĂ â˘ĂźĂâ˘â@Ă¢udĂÂŤĂš5+T2âas3ĂGXrĂÂŽĹžrޯĂ#ÂĄĂââĂ-ĂHŸĹLá ?PĂ@$ÂąjĹ Ău:[0ĆÂĂCŽøŠ!ĂO{âÂŚ:Ă.´1ÂŻ*mâšaĂŁââcâĂâĂI1²³&~ägâð¢Ă.YP¿ª`Ĺ kâ$2âşĂ¨ĂĂåèŽ"Ă ÂĽqâhZĂĂh&QgŸâĂ,e´QâQÂťĂ#_ŠĂĂ°Hr|è()ÂŞUÂŞÂĂâ#&=ÂX^7ø,ĹĂŹĂŻâšg2ĂżLAÂŁâĄ<ĂĹ{ÂŁC(HĂWs¤fT9 âşĹ¸jâŚ\&½]sjdIĂ(!°ĂhPݾ£â˘ĂĂĂ¨ÂΊ/Ĺ â˘ĹĹĄcĂŞgŸHâ Ă'FĂ˝â˘9â˘7AËĂRÂťtl^ĂLĂĂŚĹÂâĂ}šĂCĂż,{:ĂŻr?{mFšPWEq)ĂÂŞÂÂŁÂśĂ¡¨ĂVĂLËĂLĂžTĂĂĂŹĂŞ'ĂĂĂoò?2ĂtŒºŽĂ8ÂĂŞ3ĂMÂĹ:Ăž9ÂŚ!ĂšrqleĂT¤\°ĹâĄËâèYĂĽĂą_¢â}ŸĹ¤â°y<Ă0O°ªťäKâĄrâšÂŻ5ĂĂÂĄÂĂGĂf7ĂĂŽ*VâŹĂRĂT¤âĄâ°âšĂŹÂ¤Â˛Â°{ĂĂĂĂËâ tĹĂĆĹžâ°M/Ft¾ÊËRĂ`ÂżĂB[ĂĹ â²GĹ Ăzâ°Ă#QĂâĄÂŠËĂĂŹhË4!ubKĂĂb¨Ă$ĂnÂŽiÂŞĂ EÂŹsaĂDnĂâŹ'&{ĂkĂ}Ăł3kĹž7´ýà ^ĂâĂĽÂłWÂťĂâĄĹ˝r`§8Wâúÿ|i"DË!žOP-áÂĂCâââŹDĂŽ!ÂłâĄ"Ăâ˘Ĺ¸ĂCf"DË3râ˘=DË!Ă$D dĂś!Bâ8ĂŁĂ°ĂŁÂŚkĂc+â°Anyone know how to successfully generate and save an image file using PHP?Thanks for any help you can give. vujsa Share this post Link to post Share on other sites
iGuest 3 Report post Posted September 19, 2005 Hey vujsa,Simple error, this line:$handle = fopen($cachefile, "w+b");Should be:$handle = fopen($cachefile, 'wb');That should be it.Other than that, I would probably have to test it out myself.Cheers,MC Share this post Link to post Share on other sites
vujsa 0 Report post Posted September 19, 2005 Well, that didn't fix the bug. I'm still getting trash instead of the image. Any ideas?vujsa Share this post Link to post Share on other sites
vizskywalker 0 Report post Posted September 19, 2005 Instead of using fwrite() to create the png, you need t use imagepng as what you are actually saving is an image resource, not the png image. Simply use this format: imagepng($image, $filename) where $image is the png image resource and $filename is the name of the file you want to save it to.~Viz Share this post Link to post Share on other sites
vujsa 0 Report post Posted September 19, 2005 Okay everyone, false alarm.The problem wasn't in the code but instead was in a .htaccess two directories above the image to be shown. I forgot to delete the .htaccess that redirected .png file extensions to the PHP engine after I replaced that set up. I now use a diferent means to mask urls.Everything is working fine now with out the need to use any file system functions ot object buffering.Basically, to print to file use:imagepng($image, 'path/to/file.png');and to print to browser use:imagepng($image, '');hope this helps everyone.vujsa Share this post Link to post Share on other sites
vizskywalker 0 Report post Posted September 20, 2005 That's what I said vujsa! Glad it's working now. If anymore problems arise just post back here.~Viz Share this post Link to post Share on other sites