[PHP] image button troubles
QUESTION 1 I'm working on a form that reads where the user clicks on an image using: where the map has name="mapclick" I get this as output: Location is x = 94 and y =Ê36 What is that strange "e" thing? QUESTION 2 I want to check how large the image is, so I tried this: $test = GetImageSize ("$maploc"); echo $test[3]; (it's a jpg, and $maploc is any URL) But I get this error: Warning: Unable to open http://www.php.net/gifs/php_logo.gif in /usr/local/plesk/apache/vhosts/futurebird.com/httpdocs/mapbuild/addloc.php3 I'm running php version 4.0.3pl1 I've also been unable to get any other image funtions to work (various errors) I'll keep trying things but any help would be greatly appriciated. Thanks, Susan http://futurebird.diaryland.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] image button troubles
I had a similar problem a while back that I solved by isolating my variables. Such as: As for why it's happening, I'm not sure. --kurt - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 03, 1979 4:25 PM Subject: [PHP] image button troubles QUESTION 1 I'm working on a form that reads where the user clicks on an image using: where the map has name="mapclick" I get this as output: Location is x = 94 and y =Ê36 What is that strange "e" thing? QUESTION 2 I want to check how large the image is, so I tried this: $test = GetImageSize ("$maploc"); echo $test[3]; (it's a jpg, and $maploc is any URL) But I get this error: Warning: Unable to open http://www.php.net/gifs/php_logo.gif in /usr/local/plesk/apache/vhosts/futurebird.com/httpdocs/mapbuild/addloc.php3 I'm running php version 4.0.3pl1 I've also been unable to get any other image funtions to work (various errors) I'll keep trying things but any help would be greatly appriciated. Thanks, Susan http://futurebird.diaryland.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] image button troubles
on 7/3/01 7:52 PM, Kurt Lieber at [EMAIL PROTECTED] wrote: > I had a similar problem a while back that I solved by isolating my > variables. Such as: > > > > As for why it's happening, I'm not sure. Wow, that fixed it! Though it turns out I was mistaken in thinking I'd fixed the bug... it still says it's "unable to open" the image I give it... hmmm.. Susan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] image button troubles
because of problems just like this, i've moved to using printf() instead of echo(). printf("x = %s and y = %s",$mapclick,$mapclick_y); on 7/3/79 5:44 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: > on 7/3/01 7:52 PM, Kurt Lieber at [EMAIL PROTECTED] wrote: > >> I had a similar problem a while back that I solved by isolating my >> variables. Such as: >> >> >> >> As for why it's happening, I'm not sure. > > > Wow, that fixed it! Though it turns out I was mistaken in thinking I'd > fixed the bug... it still says it's "unable to open" the image I give it... > > hmmm.. > > Susan > -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] image button troubles
Are you entering the fully-qualified URL? The following works perfectly on my machine: http://i.cnn.net/cnn/images/main/cnnlogo.gif";); echo $tempVar[3]; ?> (it's the main logo for cnn.com) --kurt - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 03, 1979 4:44 PM Subject: Re: [PHP] image button troubles > on 7/3/01 7:52 PM, Kurt Lieber at [EMAIL PROTECTED] wrote: > > > I had a similar problem a while back that I solved by isolating my > > variables. Such as: > > > > > > > > As for why it's happening, I'm not sure. > > > Wow, that fixed it! Though it turns out I was mistaken in thinking I'd > fixed the bug... it still says it's "unable to open" the image I give it... > > hmmm.. > > Susan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] image button troubles (duh)
I've found the bug in this question. Still no luck with QUESTION 1 sorry to bug you guys Susan - QUESTION 2 I want to check how large the image is, so I tried this: $test = GetImageSize ("$maploc"); echo $test[3]; (it's a jpg, and $maploc is any URL) But I get this error: Warning: Unable to open http://www.php.net/gifs/php_logo.gif in /usr/local/plesk/apache/vhosts/futurebird.com/httpdocs/mapbuild/addloc.php3 I'm running php version 4.0.3pl1 I've also been unable to get any other image funtions to work (various errors) I'll keep trying things but any help would be greatly appriciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]