Hey LiB! Aswesome work man… I think there is a PHP function that lets you get the dimensions of an image. Not sure tho…
Thanks Jubs. Yeah, I believe there is too… hmm, so many options! :!:
imagesx(im); // returns width
imagesy(im); // returns height
Then just a php script making them variables and load them in with each image…
is there a php method for getting the file’s name?
is there a php method for finding the number of files in a file folder?
Yeah, that would be so rockin’ to have PHP list all my .jpg files with height and width all in a text file that can be loaded in.
*Originally posted by david *
**is there a php method for getting the file’s name?
is there a php method for finding the number of files in a file folder? **
- Yes
- Maybe not an existing function, but it’s very easy to implement. PHP really is an amazing tool
I’m going to put this question in the php threads.
I’m not sure how to figure out that sort of php function. I’ve put the question forward at this link.
http://www.kirupaforum.com/showthread.php?s=&threadid=15760
Thanks david, I came up with somewhat of a method for getting files, but I keep getting errors when adding the width script. I looked up what Jubba had and I am doing it right! Do I have to CHMOD the files? If so, I can’t… Eilsoes server won’t let me do it, and my server is PHP retarded, it never wants to work right with it.
ooch… you may be right. I’ll keep that in mind while I’m searching for solutions.
can you post the php script that you’re using here? If not can you email it to me? ( dhaisley@centerspin.com )
Although you already replied to the other thread and know… the code is posted in the other thread :beam:
Hm… Found one strange thing, lostinbeta…
When I click on the button that I have previously view, it does preloading again from 0%… What’s up with that???
(Did you use the scrip that h88 and I have provided to get the dimension???)
For testing purposes I used a no cache code to prevent the caching of the images. I didn’t want to have to clear my cache every time I wanted to test it, so I just did that, it was easier that way.
No, the version I have up does not use any PHP yet Unfortunately my comp is being STUPID and I can’t work on much of anything anymore
I can’t even open Flash without it schitzing out a bit.
You’ve already shown me this, but I still think it’s great. One of the best photo galleries I’ve seen. =)
:)… thanks Ilyas. This thread is a bit old, I probably showed you when I started it Cyan revived it to ask how it was going with the PHP that was provided to me by Cyan and h88.
Psst Beta… Electron Geek said that… Not iylas
EG… slap me with a trout. Please. I deserve that one. Sorry.
Thanks for pointing that out EG… errmmmm… I mean… Marz…haha
It’s ok Pom, I forgive you Marlin. =)
:crazy: You never trout slapped me
Oh oops!! Here ya go!! :trout: :trout: :trout: