|
Posted by Steve on 03/02/07 19:37
| To expand upon my needs ...
hmmm...the need to google and rtfm?
| main pages public_html
|
| subpages apple banana coconut
|
| sub-subpages aa bb cc dd ee ff gg
|
| Each of the aa-gg subdirectories will contain thumbnail .jpg
| files. I'd like to be able to invoke the script quite a few times
| within the same PHP page.
|
| Example:
|
| From the page in /banana, use <?php random_image $dir=aa> to
| return a thumbnail that it randomly took from sub page /banana/aa. I
| would invoke a thumbnail from another directory by changing aa to bb,
| cc, dd, ee, ff, or gg.
i call upon the almighty zeus, mythros, jesus christ, and budah. i summon
your powers and invoke the thumbnail!
how the fuck do you invoke a thumbnail?!!!
anyway, that's a rediculous way to do it...but, ok.
| So far, every script I've looked at I haven't quite been able
| to make work.
and the problem is the script? and you hope the script we give you will
likewise, "not work"?
| Though I have written a few PHP scripts, I am a PHP novice and
| I need to 'keep it simple' so I can repeatedly use the script in the
| page.
look up the functions those scripts used. then go and do something
remarkable...think. then find the manual. read it. 'fix' the script(s) you
have and your problems are gone, AND you have learned something in the
process.
| If the script is above the <html> tag and can be called from
| within the actual page, that should work fine for my purposes.
uh...you need to get a beginners book. just like javascript, you can execute
php code anywhere you wish. unlike javascript, php will be processed on the
server before the client ever gets it.
| Thanks for any help you can provide.
i'd mail you a manual, but it's already available online at php.net.
Navigation:
[Reply to this message]
|