Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread adrian [EMAIL PROTECTED]
try changing headers sent e.g header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=001_SM77GR.jpg"); $im = imagecreatefromjpeg("001_SM77GR.jpg"); imagejpeg($im,'',85); imagedestroy($im); - Original Message - From: "Doug Coning" <[EMAIL PROTE

Re: [PHP] Forcing page refresh with http headers?

2003-03-10 Thread adrian [EMAIL PROTECTED]
a trick i use is with the time() function e.g. $var = time(); then header('location: .page.php?var=' .$var); This forces the browser to retrive the page again from the server. might be of some use. adrian. - Original Message - From: "Daniel Joyce" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

Re: [PHP] How to check for refresh in PHP

2003-01-31 Thread adrian [EMAIL PROTECTED]
a real simple thing i do is to increment the counter then use header() to redirect to same page with a variable added. so at the top of details.php i put.. if(!$_GET['no_count']){ ...increment counter header("location:...details.php?no_count=on"); exit; } of course people can always just manually

Re: [PHP] IFRAMES & PHP

2003-01-27 Thread adrian [EMAIL PROTECTED]
hmm.. it'll get real ugly with javascript,but this works with newer browsers. ...iframe has a name ...main page has a hidden form field with id checkbox in the iframe has id also iframe.php function submit_form(){ if(frames["myiframe"].document.getElementById("one").checked == true){//see

Re: [PHP] question about GD and colors

2003-01-27 Thread adrian [EMAIL PROTECTED]
try imagecreatetruecolor() instead of imagecreate() - Original Message - From: "Philipp" <[EMAIL PROTECTED]> To: "Jean-François Marseaut" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 4:21 PM Subject: Re: [PHP] question about GD and colors > Hi experienced the

[PHP] simple date question

2003-01-20 Thread adrian [EMAIL PROTECTED]
this is pretty simple but my brain's not working I get the numerical value of a week in the year thus e.g $today = date("W"); gives 4 .so this is the 4th week of the year. I want to get the month based on this number. e.g 4 should be january. 7 will be feb etc.. i'm not bothered about being to

[PHP] regular expression help

2003-01-07 Thread adrian [EMAIL PROTECTED]
I'm a bit useless at regular expressions so i thought i ask. i need to turn all [link url=http://www.site.com] link to site [/link] in a string into html http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagecopyresized

2002-11-25 Thread adrian [EMAIL PROTECTED]
sorry.i included the link so you can see the result it's difficult to explain what it looks like without including attachments - which is a worse idea i think! there are no errors it just looks bad. i didn't know that imagecreate() produces 8-bit images. this implies that with older versions of gd

[PHP] imagecopyresized

2002-11-25 Thread adrian [EMAIL PROTECTED]
hi i'm having problems resizing jpegs. here's an e.g. using manual example. code used : and the result can be seen here. http://www.sitestogo.biz/temp/test.php i'm wondering if it's to do with the gd library installed.

[PHP] enable-gd-native-ttf or tt?

2002-11-18 Thread adrian [EMAIL PROTECTED]
i know nothing about building php really but my isp recently upgraded(version 4.1.2) and now imagettftext() function doesn't work.the error i get is: Warning: libgd was not built with FreeType font support .. see phpinfo() http://217.114.163.70/info.php what i noticed was this bit of the configur

[PHP] GD imagettftext problem

2002-11-18 Thread adrian [EMAIL PROTECTED]
Hi, I create images on the fly using imagettftext my isp recently upgraded apache and the images no longer appear. here's the example given in the manual with imagettftext() i've commented out the content type so you can see the error http://www.sitestogo.biz/testimage.php and here's phpinfo().

Re: [PHP] storing cc details in mysql

2002-11-04 Thread adrian [EMAIL PROTECTED]
Sorry forgot to say we do have a secure server. - Original Message - From: "adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 04, 2002 4:37 PM Subject: [PHP] storing cc details in mysql Hi, I know this is an old chestn

[PHP] storing cc details in mysql

2002-11-04 Thread adrian [EMAIL PROTECTED]
Hi, I know this is an old chestnut and i am going thru archives and googling as well. anyhoo, my small company recently decided that live cc processing was too expensive for our needs (this has to do with us being based in ireland where there is a problem with the banks -they only deal with one