Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Thom_Edwards

macrumors regular
Apr 11, 2003
240
0
Code:
echo "<img src='" . $imgstr . "' alt='description' />";

a little off-topic, but i wouldn't recommend using alt if you want 'description' to show up on mouseovers. use title instead, since that will show the text on mouseovers in all modern browsers. (alt won't respond to mouseovers in mozilla browsers and firefox.) the alt attribute is used when the image doesn't load (or using lynx) and text is put in its place. really, i guess, you would want to use both attributes.

the only reason i mention this is that i find a lot of people using alt for mouseover text.
 

jtalerico

macrumors 6502
Original poster
Nov 23, 2005
358
0
BTW i did mkdir try to do it... I dont understand why it is not coming up as a dir.
 

jtalerico

macrumors 6502
Original poster
Nov 23, 2005
358
0
PHP:
$dir = opendir("images/photos/");
while($file = readdir($dir)){
        echo "<b>".$file."</b>";
        if(is_dir($file) == true) {
        echo filetype('images/photos/folder');
        $loca = "images/photos/$file";

There is the code, for some reason some of the dir's are not showing up as dir's... Any idea why? I have chmod 744 them....
 

jtalerico

macrumors 6502
Original poster
Nov 23, 2005
358
0
zimv20 said:
use 755. directories aren't accessible if they don't have the execute bit on.

Just gave that a shot, still no go. If i do filetype() to the dir containing the dir's it works...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.