Computer Webmaster Gaming Console Graphics Forum

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.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > HTML
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 2:04 PM   #1
David Graham
 
David Graham's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default bucies image selector thingy

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


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 07-01-2007, 2:05 PM   #2
Marc
 
Marc's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default bucies image selector thingy

> $size [3]

This is an array.

www.php.net/array


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 2:05 PM   #3
Marc
 
Marc's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default bucies image selector thingy

> > > $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!


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 2:05 PM   #4
David Graham
 
David Graham's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default bucies image selector thingy


"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


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 2:05 PM   #5
brucie
 
brucie's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default bucies image selector thingy

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/
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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




All times are GMT +1. The time now is 6:19 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98