I'm a PHP newbie and i have a question regarding relative documents.
The thing is..i have a bunch of pics sorted in array. What i would like to do is shuffle them and with for loop put them into table. SO far so good, but i'm stuck with relative file naming... so...my script is called random.php, and its absolute path is c:\inetpub\wwwroot\phplearning\random.php.
I have all my pics in Pics folder, which is in c:\inetpub\wwwroot\phplearning\pics. So how could i form the src attribute for <img> tag, that i could access pics from my script?...and...if anyone is willing to help me...is it possible to explain that a bit?
oh..and just one more thing... i've tried putting pictures in phplearning folder and typed <img src = \"" and it worked..but i don't quiet get it (i've typed it from a book).
thanks in advance for any help or suggestions!
Luka