![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| http://usenet.alt-html.org/image-selector-thingy.php I hope brucie is around, but if not can anyone else help me understand his php $size [3] the variable above is part of a long statement that joins variables and strings together to form the usual image tag. The bit above is used to insert the width and height of an image into its image tag. I don't know what the number 3 is for inside the square brackets? thanks (I can't remember how he made the php available, if it was http://usenet.alt-html.org/image-selector-thingy.phps its not there now) David | |||
| Advertisements |
| | #2 | ||
| | |||
| | #3 | ||
| > > > $size [3] > > > > This is an array. > > > > www.php.net/array > > > Thanks for the hint - will try to learn how he has made use of an array - if > the top man wants to chip in, please feel free (perhaps the aussies are in > bed now - 7.00p.m GMT in UK, so I guess its the middle of the night down > under) It may well be, but it doesn't mean Brucie will be asleep! | |||
| | #4 | ||
| "brucie" <brucie@loser.brucies.com> wrote in message news:be21na$clnr$1@ID-117621.news.dfncis.de... > In post <F6VMa.20538$sh4.1461565@newsfep2-win.server.ntli.net> > David Graham said... > > > http://usenet.alt-html.org/image-selector-thingy.php > > i deleted that just yesterday, i thought everyone that wanted it would > have already saved it to their own puter. but its back up again. > > > I hope brucie is around > > a round what? are you calling me fat? > > > $size[3] > > the bit you should be looking at is: > > $size=getimagesize($path.$image); > > then have a look in the php manual to see what getimagesize does: > http://php.net/manual/en/function.getimagesize.php > > Thanks, I will enjoy reading up on the getimagesize() function tomorrow, time for bed now. My first thoughts, without first reading up on this, is that this function stores various bits of info about the image and the bit about its width and height is in the 4th element of the array - just a guess, probably wrong, can't see how two seperate bits of info (width and height) could be stored in the same cell of the array anyway - thinking out aloud here, in private, to half the world, oh dear, I'm rambling on - Good night, or should it be good morning! Bye David | |||
| | #5 | ||
| In post <JI1Na.15520$i84.101084@newsfep2-gui.server.ntli.net> David Graham said... >>> $size[3] >> the bit you should be looking at is: >> >> $size=getimagesize($path.$image); >> >> then have a look in the php manual to see what getimagesize does: >> http://php.net/manual/en/function.getimagesize.php > Thanks, I will enjoy reading up on the getimagesize() function tomorrow, > time for bed now. My first thoughts, without first reading up on this, is > that this function stores various bits of info about the image and the bit > about its width and height is in the 4th element of the array - just a > guess, probably wrong, can't see how two seperate bits of info (width and > height) could be stored in the same cell of the array anyway <q>Index 3 is a text string with the correct height="yyy" width="xxx" string that can be used directly in an IMG tag. </q> http://php.net/manual/en/function.getimagesize.php -- brucie a. blackford. 04/July/2003 08:05:01 am kilo. http://loser.brucies.com/ | |||
| Featured Websites | ||||
|
![]() |
| Tags: bucies, image, selector, thingy |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I curve or distort a flat label image to fit a round bottle image? | Steen Alexandersen | Graphics in general | 1 | 11-15-2008 2:05 AM |
| Can I make the container DIV of an image not taller than the image (HTML 4.01)? | Vince C. | HTML | 1 | 07-01-2007 1:59 PM |
| Problem with Pelican Universal System Selector PL-940 | Steve H. | Console Subjects | 0 | 06-26-2007 2:13 AM |
| Firewire bracket header thingy...? | Tin-Char D'un | Central Processing Unit (CPU) and Overclocking | 0 | 06-17-2007 9:39 PM |
| MRS Image Format | darkstar949 | Software Programming | 0 | 06-12-2007 11:51 PM |
| Featured Websites | ||||
|