Hi Vuud,
I'm trying to get my cfimageget script to work. It's wonderful. I can pull out the pics with it.
I see this in the docs:
* Usage: Call this file from an img tag and it will return graphic data to you
*
* cfimageget.php - will return random from anywhere in the gallery
* cfimageget.php?category=1 - will return random image from category 1
* cfimageget.php?album=1 - will return a random image from album 1
* cfimageget.php?album=1 - will return a random image from album 1
*
* Other options to add on
* size=[thumb|int|large]
* cmd=[last|random]
My question : how do you add on the other options like size ? I want the "large" size pics but I keep getting the thumbnails.
I'm know very little of PHP (but I'm trying veryhard to learn) and I've been trying various ways to get it work with no success.
Can you explain exactly how I can "add on" the options, like size, to the script.
Is it something like this " cfimageget.php?album=35size=large " ? (see what I mean ).
thanks - appreciate your help.
Quote from: wfs on November 07, 2006, 10:38:53 AM
Can you explain exactly how I can "add on" the options, like size, to the script.
Is it something like this " cfimageget.php?album=35size=large " ? (see what I mean ).
It's not PHP, its an HTML, or HTTP question (Not sure where the boundry falls - a few more coffees and I will remember).
Anyway, when you submit parameters, there are three special characters....
?
=
&
? - This seperates your URL (address to your page) from the data you are submitting.
http://www.mysite.com/cfimageget.php?
= - This seperates your variable name from the data
http://www.mysite.com/cfimageget.php?category=1
& - This seperates your different variables from each other
http://www.mysite.com/cfimageget.php?category=1&size=large&cmd=random
Hope that answers your question, and leads you to understanding.
Thank you so much Vuud !
One more lesson to my understanding of PHP !
You're a great help !
Quote from: wfs on November 08, 2006, 01:58:15 AM
Thank you so much Vuud !
One more lesson to my understanding of PHP !
You're a great help !
No problem... if you look at the URL's while you are browsing this forum, you will see it also. there are two other ones that I forgot to mention:
@
#
@ is for specifying user information I think
# reflects to an anchor within a given page
But anyway... good luck