Re: [PHP] Image Destroy

2006-08-15 Thread chris smith
On 8/15/06, chris smith [EMAIL PROTECTED] wrote: On 8/15/06, Tom Chubb [EMAIL PROTECTED] wrote: I know this will be really simple, but I'm struggling to get my head round the use of imagedestroy() I have some code which uploads an image, resizes to create a smaller image and thumbnail then

Re: [PHP] Image Destroy

2006-08-15 Thread Richard Lynch
On Tue, August 15, 2006 5:45 am, Tom Chubb wrote: I know this will be really simple, but I'm struggling to get my head round the use of imagedestroy() I have some code which uploads an image, resizes to create a smaller image and thumbnail then deletes the source image. My question is which

Re: [PHP] Image Destroy

2006-08-15 Thread Richard Lynch
On Tue, August 15, 2006 6:31 am, chris smith wrote: imagedestroy($target_id); imagedestroy($source_id); just before imagejpeg ($target_id,$targetfile,$jpegqual); return true; } If you destroy it before you write it to disk, you gonna get garbage for your disk JPEG. destroy $target_id

Re: [PHP] Image Destroy

2006-08-15 Thread Chris
Richard Lynch wrote: On Tue, August 15, 2006 6:31 am, chris smith wrote: imagedestroy($target_id); imagedestroy($source_id); just before imagejpeg ($target_id,$targetfile,$jpegqual); return true; } If you destroy it before you write it to disk, you gonna get garbage for your disk JPEG.

Re: [PHP] IMAGE LOADED...

2006-08-14 Thread Richard Lynch
On Sun, August 13, 2006 8:03 am, tedd wrote: This leads to the opposite problem of IE caching DYNAMIC images when it should not, which is a whole different rant. :-) In that case, I just added a random string to end of the image url like so: images/myimage.jpg?a=adj12k4mfdi If I remember

Re: [PHP] IMAGE LOADED...

2006-08-12 Thread Richard Lynch
On Sat, August 12, 2006 3:18 pm, BBC wrote: I build a small site in which some images are loaded in all pages. I concern if the client have slow connection to internet. Does any one can tell me how to send such images to client's computer? I want to increase the speed connection by taking such

Re: [PHP] Image list performance ISSUE

2006-08-07 Thread Andy
] To: 'Andy' [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, August 03, 2006 9:32 PM Subject: RE: [PHP] Image list performance ISSUE Why don't you name the images with the GUID of the user? I want to see someone try to guess another user's GUID... -Original Message- From: Andy

Re: [PHP] Image list performance ISSUE

2006-08-07 Thread Chris
Andy wrote: Sorry for the late answer, I have different applications and the users are kept in DB so I cannot make for every user a directory. I made a solution with .htaccess from apache and redirection to a php script that outputs the image if the user has rights to the images. I will

Re: [PHP] Image list performance ISSUE

2006-08-07 Thread Andy
-general@lists.php.net Sent: Monday, August 07, 2006 10:58 AM Subject: Re: [PHP] Image list performance ISSUE Andy wrote: Sorry for the late answer, I have different applications and the users are kept in DB so I cannot make for every user a directory. I made a solution with .htaccess from

Re: [PHP] Image list performance ISSUE

2006-08-07 Thread David Tulloh
Andy wrote: ... I want to know... is this a big performance issue or not(the image is handled by php and not by apache directly) OR... Is there any other way to handle this situation??? Thanx, Andy. I'd recomend doing a bit of benchmarking to figure out if the performance hit is

Re: [PHP] Image list performance ISSUE

2006-08-07 Thread Richard Lynch
On Mon, August 7, 2006 2:44 am, Andy wrote: The performance Issue that I asked was: Is there a difference if apache sends the image or If I output it with php with readfile. Yes. How much of a difference it makes depends on YOUR hardware. Test it and see is the only sensible answer we can

Re: [PHP] Image list performance ISSUE

2006-08-02 Thread tedd
At 12:15 PM +0300 8/2/06, Andy wrote: Hi, I have tons of images, which belongs to different users. In the software we show to the users only the images that they have, but If they take the image links manually they can also see the other images if they modify the image name in the link.

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Chris W. Parker
Skip Evans mailto:[EMAIL PROTECTED] on Friday, July 14, 2006 4:33 PM said: My apologies to all. I assumed that JS questions would be entertained as the application is within a PHP app. No need to apologize. My off-list email wasn't meant to berate but merely let you know what the purpose

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Chris W. Parker
Chris W. Parker on Monday, July 17, 2006 10:23 AM said: motherboards. Or how about this one? My can't keeps walking on my keyboard while I'm trying to write a PHP page. What should I do? Okay that should be CAT, not can't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Robert Cummings
On Mon, 2006-07-17 at 13:27, Chris W. Parker wrote: Chris W. Parker on Monday, July 17, 2006 10:23 AM said: motherboards. Or how about this one? My can't keeps walking on my keyboard while I'm trying to write a PHP page. What should I do? Okay that should be CAT, not can't. So

Re: [PHP] Image submit with mouse over

2006-07-17 Thread Skip Evans
Chris W. Parker wrote: Thank you, you're beautiful. I'll be here all week folks. You forgot, Enjoy the buffet. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Image submit with mouse over

2006-07-17 Thread Jochem Maas
Chris W. Parker wrote: Chris W. Parker on Monday, July 17, 2006 10:23 AM said: motherboards. Or how about this one? My can't keeps walking on my keyboard while I'm trying to write a PHP page. What should I do? Okay that should be CAT, not can't. I thought the can't walking all over

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Jay Blanchard
[snip] I thought the can't walking all over the keyboard was rather Kafka-esque ;-) [/snip] In a rather existential sort of way. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image submit with mouse over

2006-07-15 Thread Stut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Skip Evans wrote: Brand new to the list, so here's my question. I am implementing a bunch of Dreamweaver templates a designer has built into a PHP app, and one thing she did is create a submit button (image) that uses mouse over JS: a

Re: [PHP] Image submit with mouse over

2006-07-14 Thread Skip Evans
My apologies to all. I assumed that JS questions would be entertained as the application is within a PHP app. Sorry, Skip Chris W. Parker wrote: Skip Evans mailto:[EMAIL PROTECTED] on Friday, July 14, 2006 4:13 PM said: Hi all, Hey. Brand new to the list, so here's my question.

Re: [PHP] Image submit with mouse over

2006-07-14 Thread Tom Rogers
Hi, Saturday, July 15, 2006, 9:13:04 AM, you wrote: SE Hi all, SE Brand new to the list, so here's my question. I am SE implementing a bunch of Dreamweaver templates a SE designer has built into a PHP app, and one thing SE she did is create a submit button (image) that SE uses mouse over

RE: [PHP] image upload problem

2006-06-29 Thread Jay Blanchard
[snip] The Code is running properly.But I dont Know Where The uploaded image is Stored in the server.I checked /tmp directory,but image is not there,is there any function where i can specify the location of the server where my image is to be stored i also tired move_uploaded_image() function

Re: [PHP] image upload problem

2006-06-29 Thread Jochem Maas
suresh kumar wrote: Hi, hi ([EMAIL PROTECTED]([EMAIL PROTECTED]([EMAIL PROTECTED](*%([EMAIL PROTECTED]([EMAIL PROTECTED]@# I am waiting reply from any one do we have someone here called 'any one'? how about you reply to one of the people who answer your questions. PS - the tmp file is

Re: [PHP] Image resizing problems

2006-03-31 Thread deKeijzer
on http://nl2.php.net/manual/en/function.imagecopyresampled.php is an example how to use it when you are resizing images, I think you are putting some numbers on the wrong place On 3/31/06, John Nichel [EMAIL PROTECTED] wrote: I'm pulling my hair out with this gd resizing of an image, and can't

Re: [PHP] Image resizing problems [SOLVED]

2006-03-31 Thread John Nichel
John Nichel wrote: I'm pulling my hair out with this gd resizing of an image, and can't figure out where it's screwing up. I've been trying to batch process about 500 images to resize them to a standard size, and for some reason, instead of resizing the image, it's just taking a corner of the

Re: [PHP] image in memory to mySQL

2006-03-01 Thread Chris
tedd wrote: Hi: I know how to upload an image from a file into a BLOB in mySQL, but how do you place an image that's in memory into mySQL? For example, if I create an image via resampling another image or create a new image, how do I get that image into mySQL? I know I can save it as a

Re: [PHP] image location hiding techniques

2006-02-09 Thread Gerry Danen
I am attempting to call a script that actually renders the image and then check for a session variable. However, the session variable does not seem to be there... ?php $fn = $_GET['id']; // filename $p = $_GET['p']; // path $img = /srv/pix/ . $p . / . $fn ; // where the photos are + path +

Re: [PHP] image location hiding techniques

2006-02-07 Thread Travis Doherty
hbeaumont hbeaumont wrote: Hi, I have a site with images that I want people to download but not have the direct path to. ie. I do not want them to be able to just view the source, find the dir and then download everything or direct link to them. However I can see no way to do this other than

Re: [PHP] image uploads

2006-02-01 Thread William Stokes
Do you really want people uploading 2.5MB a shot to your server? No. Not really. It's just modern digicams... Most people don't know how to edit pics or doesn't have right tools for that. And they don't realize the difference between 2.5Mb or 0.5Mb just as long there are atleast 5Megapixels in

Re: [PHP] image uploads

2006-02-01 Thread Barry
William Stokes wrote: Do you really want people uploading 2.5MB a shot to your server? No. Not really. It's just modern digicams... Most people don't know how to edit pics or doesn't have right tools for that. And they don't realize the difference between 2.5Mb or 0.5Mb just as long there are

Re: [PHP] image uploads

2006-02-01 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, January 31, 2006 4:43 pm, tedd wrote: Storing the image in the DB is probably not a Good Idea for a variety of reasons. And they are? ... in the archives. http://marc.theaimsgroup.com/?l=php-general Rubbish.

Re: [PHP] image uploads

2006-02-01 Thread tedd
Hi gang: I don't mean to offend anyone, but I'm going to side with Keith Waterson about storing images in a dB rather than in a file system. My reasons are pretty simple. First, an image is nothing more than a large of string text -- sure it's voluminous, but there's no difference how it is

Re: [PHP] image uploads

2006-02-01 Thread John Nichel
Richard Lynch wrote: On Tue, January 31, 2006 4:43 pm, tedd wrote: Storing the image in the DB is probably not a Good Idea for a variety of reasons. And they are? ... in the archives. http://marc.theaimsgroup.com/?l=php-general Richard, are you feeling okay? I don't think I've ever

RE: [PHP] image uploads

2006-02-01 Thread Weber Sites LTD
/be/berber.gif We handle more than 20M images and files with no problem this way. berber -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 4:23 PM To: php-general@lists.php.net Cc: Kevin Waterson Subject: Re: [PHP] image uploads Hi gang: I don't

RE: [PHP] image uploads

2006-01-31 Thread Weber Sites LTD
Check this out : http://www.weberdev.com/get_example-3938.html Image Upload And Resize Script Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP MySQL Forums : http://www.weberforums.com Learn PHP MySQL Playing Trivia :

Re: [PHP] image uploads

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 10:58 am, William Stokes wrote: Is there something special about php and images that nobody told me... No. :-) I'm writing a image gallery but I have run to serious trouble with it. I have one page with form in it. Form's action is $PHP_SELF. In the form there is

Re: [PHP] image uploads

2006-01-31 Thread tedd
Richard said: Storing the image in the DB is probably not a Good Idea for a variety of reasons. And they are? tedd -- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] image uploads

2006-01-31 Thread Weber Sites LTD
: [PHP] image uploads Richard said: Storing the image in the DB is probably not a Good Idea for a variety of reasons. And they are? tedd -- http://sperling.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] image uploads

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 4:43 pm, tedd wrote: Storing the image in the DB is probably not a Good Idea for a variety of reasons. And they are? ... in the archives. http://marc.theaimsgroup.com/?l=php-general -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List

Re: [PHP] image uploads

2006-01-31 Thread William Stokes
OK. I was a bit vague at the first posting... To DB a put the filepath to the two images i create. And some additional info like upload date, width, height etc. I like storing my files in filesystem... You mean isset($image), right?... Right ! ENCTYPE=multipart/form-data It's there. I

RE: [PHP] image uploads

2006-01-31 Thread Albert
William Stokes wrote: I somehow got it back working with Opera. Don't know how :) One question still remains. How to make 100% sure that the image isn't re-loaded to server if user hits refresh? And he will cause it can take long time to upload 2.5Mb pics over a slow link. When you hit

Re: [PHP] Image handling advice needed

2006-01-19 Thread tedd
Hello, I need to build an image 'library'. The library will consist mostly of images taken with digital cameras. Since unedited digicam pics will most likely be too big for web usage they need to be edited automatically so that they can be put to a web page. I'am trying to deside between two

Re: [PHP] Image handling advice needed

2006-01-18 Thread Ahmed Saad
On 1/18/06, William Stokes [EMAIL PROTECTED] wrote: I'am trying to deside between two options. To resize (=scale down) the images once they are uploaded to server and store the smaller file or upload and store the original BIG file and scale it to thumbnail once it's viewed. Any opinnions

Re: [PHP] Image handling advice needed

2006-01-18 Thread Miles Thompson
At 04:10 AM 1/18/2006, William Stokes wrote: Hello, I need to build an image 'library'. The library will consist mostly of images taken with digital cameras. Since unedited digicam pics will most likely be too big for web usage they need to be edited automatically so that they can be put to a

Re: [PHP] Image handling advice needed

2006-01-18 Thread Jochem Maas
William Stokes wrote: Hello, I need to build an image 'library'. The library will consist mostly of images taken with digital cameras. Since unedited digicam pics will most likely be too big for web usage they need to be edited automatically so that they can be put to a web page. I'am

Re: [PHP] Image handling advice needed

2006-01-18 Thread Richard Lynch
On Wed, January 18, 2006 2:10 am, William Stokes wrote: I need to build an image 'library'. The library will consist mostly of images taken with digital cameras. Since unedited digicam pics will most likely be too big for web usage they need to be edited automatically so that they can be put

RE: [PHP] Image size?

2006-01-11 Thread Dan Parry
I would say this is what you need http://uk2.php.net/manual/en/function.getimagesize.php Dan -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: 11 January 2006 12:22 To: php-general@lists.php.net Subject: [PHP] Image size? Hello, Can I get pixel sizes from a

Re: [PHP] Image size?

2006-01-11 Thread David Grant
Will, William Stokes wrote: Can I get pixel sizes from a uploaded web applicable image with PHP? I mean width and height as pixels. If so How? http://www.php.net/getimagesize David -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Image size?

2006-01-11 Thread Albert
William Stokes wrote: Can I get pixel sizes from a uploaded web applicable image with PHP? I mean width and height as pixels. If so How? http://www.php.net/manual/en/function.getimagesize.php HTH Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version:

Re: [PHP] Image size?

2006-01-11 Thread William Stokes
Cheers! :) Albert [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] William Stokes wrote: Can I get pixel sizes from a uploaded web applicable image with PHP? I mean width and height as pixels. If so How? http://www.php.net/manual/en/function.getimagesize.php HTH Albert --

RE: [PHP] Image editing?

2006-01-08 Thread Weber Sites LTD
Check out these code examples to start with : http://www.weberdev.com/search.php3?IsSub=1searchtype=categorycategory=GD+ image+librarysecondary=PHPPHPFunctions=on Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP code examples :

Re: [PHP] Image editing?

2006-01-07 Thread Kevin Waterson
This one time, at band camp, William Stokes [EMAIL PROTECTED] wrote: Hello, I might have to start doing some automated image editing or rezising with PHP. I've never done anything like this before so I would need some guidelines to get started. Basically what sections of the manual to

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
Sonia wrote: Hi All I've been working on finishing a project SGML2IMAGE and I am sort of having trouble with resizing of images. I am trying to just use the GD library so when I distro the package it will not need any other things installed to be used. Now I am using... imagecreatetruecolor

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
Sonia wrote: Hi All I've been working on finishing a project SGML2IMAGE and I am sort of having trouble with resizing of images. I am trying to just use the GD library so when I distro the package it will not need any other things installed to be used. Now I am using... imagecreatetruecolor

Re: [PHP] Image Rendering/Generation Options

2005-08-27 Thread Chris
Well, you can't output HTML *and* an image in the same request. What you can do is generate HTML in one script, put image tags in the HTML that references a another script, which actually outputs the image. So something like: img src=/myimage.php?id=4 width=10 height=30 / Then in

Re: [PHP] Image Rendering/Generation Options

2005-08-27 Thread Jasper Bryant-Greene
Dan Trainor wrote: I've seen a few times, albeit I don't know how, people generate images on a page in different ways, such as maybe using base64 to output the raw image data into a page? Is this correct? If so, what does it look like? How would one go about doing this? If not, what are my

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Okay, I started seeing some of my mistakes. I am still having a great deal of trouble: newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg image_file returns: images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg images/jpg/test is set to 777 but I still get (Could not move file to

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Richard Davey wrote: Hello Jack, Wednesday, June 15, 2005, 5:38:11 PM, you wrote: JJ newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg JJ image_file returns: JJ images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg JJ images/jpg/test is set to 777 but I still get (Could not move file to

Re: [PHP] Image upload form

2005-06-15 Thread Jason Wong
On Thursday 16 June 2005 00:38, Jack Jackson wrote: //try to get image size; this returns false if this is not an actual image file. $image_test = getimagesize($local_file); if ($image_test !== false) { $mime_type = $_FILES['userfile']['type'];

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Yes, Jason, Those did it! Thanks so much for the help! Jason Wong wrote: On Thursday 16 June 2005 00:38, Jack Jackson wrote: //try to get image size; this returns false if this is not an actual image file. $image_test = getimagesize($local_file); if ($image_test !== false) {

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-24 Thread Richard Lynch
On Mon, May 23, 2005 8:46 am, Rahul S. Johari said: If I had misunderstood your method and you think your method is better then what I'm using now, I'd still really appreciate if you can clarify and explain. Your method is fine. In fact, it penalizes IE for some stupidity in its caching,

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-23 Thread Rahul S. Johari
Ave, On 5/21/05 9:11 AM, Ryan A [EMAIL PROTECTED] wrote: eg: first have a function to generate a modest random string (I use 8 chars) then in the image calling part call it something like this: img src='?php echo $your_image_gets_called_here; ???php echo $the_rand_string; ?' as

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-21 Thread Ryan A
Hey, used to have the same problem, solved it by having a random string in the img calling part. eg: first have a function to generate a modest random string (I use 8 chars) then in the image calling part call it something like this: img src='?php echo $your_image_gets_called_here; ???php

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-21 Thread Marek Kilimajer
Richard Lynch wrote: On Thu, May 19, 2005 6:05 am, Rahul S. Johari said: I did actually remove the Header which declared it as a Image/PNG and everything seemed to work in both the browsers. Great. Now it works in 2 browsers, and breaks in 237. You MUST separate the two. Actualy he

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-20 Thread Rahul S. Johari
Ave, On 5/19/05 6:08 PM, Rory Browne [EMAIL PROTECTED] wrote: if you have an image generated by http://www.example.com/createimage.php , you could always refer to it as http://www.example.com/createimage.php/{no_of_seconds_since_unix_epoch}.png It's sounding logical, but could you explain a

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-20 Thread Rahul S. Johari
Ave, On 5/19/05 5:41 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: If more then one user is accesing the page, you might overwrite the first one's verify.png image. Simple and sufficient solution is to append a random string to the filename: $image_filename= 'verify_' . md5(rand()) .

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-20 Thread Richard Lynch
On Thu, May 19, 2005 6:05 am, Rahul S. Johari said: I did actually remove the Header which declared it as a Image/PNG and everything seemed to work in both the browsers. Great. Now it works in 2 browsers, and breaks in 237. You MUST separate the two. Period. Here's my situation though... I

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
On 5/18/05 7:19 PM, Richard Lynch [EMAIL PROTECTED] wrote: Your image is *NOT* a DOCTYPE HTML PUBLIC blah blah!!! It's a *IMAGE* Get rid of all the HMTL stuff. You actually need to separate this into two different files. One has all the HTML in it, with a

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
On 5/18/05 6:23 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: BTW, you might not be concerned about it much, but you have a race condition in your script. Ave, What do you mean by race condition ? Rahul S. Johari Coordinator, Internet Administration Informed Marketing Services Inc. 251

RE: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Murray @ PlanetThoughtful
But here's the problem that came afterwards in IE ! IE is storing the image in it's cache.. And it's displaying the same image on the verification page whether you use the BACK button, FORWARD button, or actually go through the website and land back on the verification page. So in IE, right

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
On 5/19/05 10:59 AM, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: Try forcing the browser to bypass the cache by adding the lines at the following link to your page: http://www.faqts.com/knowledge_base/view.phtml/aid/21068/fid/51 I thought this would definitely work because it looks

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Marek Kilimajer
Rahul S. Johari wrote: On 5/18/05 6:23 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: BTW, you might not be concerned about it much, but you have a race condition in your script. Ave, What do you mean by race condition ? If more then one user is accesing the page, you might overwrite the first

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rory Browne
if you have an image generated by http://www.example.com/createimage.php , you could always refer to it as http://www.example.com/createimage.php/{no_of_seconds_since_unix_epoch}.png On 5/19/05, Rahul S. Johari [EMAIL PROTECTED] wrote: On 5/19/05 10:59 AM, Murray @ PlanetThoughtful [EMAIL

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-18 Thread Jason Wong
On Thursday 19 May 2005 03:51, Rahul S. Johari wrote: A simple Image Verification script is working perfect in IE on Windows... But isnt working in Safari on Mac OS X! It displays a blank page instead of the image with the form. Here s the Script: That's because IE is severely broken? In

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-18 Thread Marek Kilimajer
Rahul S. Johari wrote: Ave, A simple Image Verification script is working perfect in IE on Windows... But isn¹t working in Safari on Mac OS X! It displays a blank page instead of the image with the form. Here¹ s the Script: ? header(Content-Type: image/png); Because only Safari gets it right. With

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-18 Thread Richard Lynch
Your image is *NOT* a DOCTYPE HTML PUBLIC blah blah!!! It's a *IMAGE* Get rid of all the HMTL stuff. You actually need to separate this into two different files. One has all the HTML in it, with a SRC=/URL/to/image.php/image.png The other is JUST the image stuff. If IE actually displays it

Re: [PHP] Image Generation: Centering Text

2005-05-02 Thread Richard Davey
Hello Richard, Monday, May 2, 2005, 4:47:42 PM, you wrote: RC But I need to center the text in the image that is generated. As I RC am using the same font and it is fixed at 10px I was thinking of RC doing something like: RC (Get Length of Text in Chars * Width of Average Char) DIV 2. RC

Re: [PHP] image maps in PHP

2005-04-23 Thread Dasmeet Singh
John Coppens wrote: On Fri, 22 Apr 2005 19:11:23 +0530 [EMAIL PROTECTED] (Dasmeet Singh) wrote: Actually I am not able to make image maps because of uneven state boundaries.. Can you please suggest some tools... I haven't used any yet... Did you check GIMP? It has an option to make HTML image

RE: [PHP] image maps in PHP

2005-04-22 Thread Mike
Hi! I need to create an image map on a country map, where people can click on any state and get some info related to it.. In such case the regular polygon/circle/rectengle image map wont do bcoz of shapes of state.. I guess this must be possible someway in PHP.. please tell me if you

RE: [PHP] image maps in PHP

2005-04-22 Thread Mark Rees
. Mark -Original Message- From: Mike [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 14:16 To: php-general@lists.php.net Subject: RE: [PHP] image maps in PHP Hi! I need to create an image map on a country map, where people can click on any state and get some info related

Re: [PHP] image maps in PHP

2005-04-22 Thread Brian V Bonini
On Fri, 2005-04-22 at 09:14, Dasmeet Singh wrote: Hi! I need to create an image map on a country map, where people can click on any state and get some info related to it.. In such case the regular polygon/circle/rectengle image map wont do bcoz of shapes of state.. Poly will define any

Re: [PHP] image maps in PHP

2005-04-22 Thread Dasmeet Singh
if it doesn't fit. Mark -Original Message- From: Mike [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 14:16 To: php-general@lists.php.net Subject: RE: [PHP] image maps in PHP Hi! I need to create an image map on a country map, where people can click on any state and get some info related

RE: [PHP] image maps in PHP

2005-04-22 Thread Mark Rees
:34 To: Mark Rees Subject: Re: [PHP] image maps in PHP Mark Rees wrote: Yes, I once did this for all the states in Brazil. It took me a few hours to trace the states, but it looked beautiful when it was finished. This will already have been done for the states many times - you could probably

Re: [PHP] image maps in PHP

2005-04-22 Thread Dasmeet Singh
Actually I am not able to make image maps because of uneven state boundaries.. Can you please suggest some tools... I haven't used any yet... Thanks - Free Website Promotion - A Complete Guide http://hostwindow.info/web-hosting/9/free-website-promotion/1/ Mike wrote: Hi! I need to create an

RE: [PHP] image maps in PHP

2005-04-22 Thread Mike
Actually I am not able to make image maps because of uneven state boundaries.. Can you please suggest some tools... I haven't used any yet... Thanks - I just googled and came up with a bunch of results: http://www.google.com/search?hl=enlr=q=free+imagemap+html+generatorbtnG=S earch I

Re: [PHP] image maps in PHP

2005-04-22 Thread Richard Lynch
On Fri, April 22, 2005 6:41 am, Dasmeet Singh said: Actually I am not able to make image maps because of uneven state boundaries.. Can you please suggest some tools... I haven't used any yet... I was writing an on-line mapping tool that used PHP and let you outline the regions for a given

Re: [PHP] image maps in PHP

2005-04-22 Thread John Coppens
On Fri, 22 Apr 2005 19:11:23 +0530 [EMAIL PROTECTED] (Dasmeet Singh) wrote: Actually I am not able to make image maps because of uneven state boundaries.. Can you please suggest some tools... I haven't used any yet... Did you check GIMP? It has an option to make HTML image maps. Check

Re: [PHP] image handling

2005-04-16 Thread Justin Gruenberg
On 4/16/05, Dasmeet Singh [EMAIL PROTECTED] wrote: I have a form on my website that allows users to upload photographs.. 1. How to find out the file type they are uploading..like jpeg or png or gif? 2. Also is there any way to find out size and resolution of the image?

Re: [PHP] Image and PHP

2005-04-14 Thread Petar Nedyalkov
On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? You want to delete it from the clients machine or what? -- Mario de Frutos Dieguez División de Ingeniería del Software y

Re: [PHP] Image and PHP

2005-04-14 Thread Mario de Frutos Dieguez
Petar Nedyalkov escribió: On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? You want to delete it from the clients machine or what? -- Mario de Frutos Dieguez División de

Re: [PHP] Image and PHP

2005-04-14 Thread Erwin Kerk
Mario de Frutos Dieguez wrote: Petar Nedyalkov escribió: On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? You want to delete it from the clients machine or what? -- Mario de

RE: [PHP] Image and PHP

2005-04-14 Thread YaronKh
PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Image and PHP Petar Nedyalkov escribi: On Thursday 14 April 2005 10:06, Mario de Frutos Dieguez wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? You want to delete

RE: [PHP] Image and PHP -Correction

2005-04-14 Thread YaronKh
To: 'Mario de Frutos Dieguez'; [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: RE: [PHP] Image and PHP Hi Mario you can use something like img src=blabla.jpg ONLOAD=delete_pic.php?fn=blabla.jpg And in delete_pic.php write something like: unlink ($_GET['fn']); -Original Message

RE: [PHP] Image and PHP

2005-04-14 Thread Mike
I have a page where i place an image but i want when i show the image delete it. How can i do this? What I would probably do is create a cleanup function/class in the script that gets a list of all the images in the directory in question and deletes anything that more then, say, an hour

Re: [PHP] Image and PHP

2005-04-14 Thread -k.
--- Mario de Frutos Dieguez [EMAIL PROTECTED] wrote: I have a page where i place an image but i want when i show the image delete it. How can i do this? Some good suggestions so far but to be a little more explicit this is how you would do it. Essentially you want to have your image tag point

Re: [PHP] image display

2005-04-13 Thread Petar Nedyalkov
On Wednesday 13 April 2005 09:11, Cima wrote: hi, what is the best way to display an image, that is stored in a database in postgres, in a table form along with other fields that are in the same table? postgresql 8.0 e.g my_table(name varchar(15),sex character (1), picture_id oid) in a

Re: [PHP] image calculation problem

2005-04-13 Thread Philip Hallstrom
see below... Basically I am trying to make a thumb where the width is 87px...I dont care what the height is, heres the code: function prop_thumb_height() { // The file $filename = 'cat.jpg'; // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width_orig, $height_orig)

Re: [PHP] image calculation problem

2005-04-13 Thread Ryan A
Thanks mate, it works perfectly. -Ryan On 4/13/2005 11:35:23 PM, Philip Hallstrom ([EMAIL PROTECTED]) wrote: see below... Basically I am trying to make a thumb where the width is 87px...I dont care what the height is, heres the code: function prop_thumb_height() { // The

Re: [PHP] image problem

2005-03-24 Thread Tom Rogers
Hi, Friday, March 25, 2005, 3:27:41 AM, you wrote: WS Hello, WS I really can't figure this out. Can someone help please. I've wasted hours WS already with this one. WS I'm trying to print image to a web page using fpassthru. Here's the code: WS $name = path/to/the/image/folder/img1.jpeg; WS

RE: [PHP] Image Submits to Forms

2005-03-04 Thread Chris W. Parker
Marquez Design mailto:[EMAIL PROTECTED] on Friday, March 04, 2005 11:05 AM said: Greetings, voice style=type:alien;Greetings earthling!/voice Select page, then with the delete button, delete the file, Select page, then with the edit button, edit the page. Does anyone know how I could

<    1   2   3   4   5   >