Map uitlezen

Gestart doorOne2xs2 reacties51 weergaven

3 berichten · pagina 1 van 1

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ik heb nu dit:

<table border="0" cellspacing="0" cellpadding="4">
          <tr>
            <td><a href="javascript:EmotionsDialog.insert(smiley-cool.gif,emotions_dlg.cool);"><img src="img/smiley-cool.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cool}" title="{#emotions_dlg.cool}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-cry.gif,emotions_dlg.cry);"><img src="img/smiley-cry.gif" width="18" height="18" border="0" alt="{#emotions_dlg.cry}" title="{#emotions_dlg.cry}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-embarassed.gif,emotions_dlg.embarassed);"><img src="img/smiley-embarassed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.embarassed}" title="{#emotions_dlg.embarassed}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-foot-in-mouth.gif,emotions_dlg.foot_in_mouth);"><img src="img/smiley-foot-in-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.foot_in_mouth}" title="{#emotions_dlg.foot_in_mouth}" /></a></td>
          </tr>
          <tr>
            <td><a href="javascript:EmotionsDialog.insert(smiley-frown.gif,emotions_dlg.frown);"><img src="img/smiley-frown.gif" width="18" height="18" border="0" alt="{#emotions_dlg.frown}" title="{#emotions_dlg.frown}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-innocent.gif,emotions_dlg.innocent);"><img src="img/smiley-innocent.gif" width="18" height="18" border="0" alt="{#emotions_dlg.innocent}" title="{#emotions_dlg.innocent}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-kiss.gif,emotions_dlg.kiss);"><img src="img/smiley-kiss.gif" width="18" height="18" border="0" alt="{#emotions_dlg.kiss}" title="{#emotions_dlg.kiss}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-laughing.gif,emotions_dlg.laughing);"><img src="img/smiley-laughing.gif" width="18" height="18" border="0" alt="{#emotions_dlg.laughing}" title="{#emotions_dlg.laughing}" /></a></td>
          </tr>
          <tr>
            <td><a href="javascript:EmotionsDialog.insert(smiley-money-mouth.gif,emotions_dlg.money_mouth);"><img src="img/smiley-money-mouth.gif" width="18" height="18" border="0" alt="{#emotions_dlg.money_mouth}" title="{#emotions_dlg.money_mouth}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-sealed.gif,emotions_dlg.sealed);"><img src="img/smiley-sealed.gif" width="18" height="18" border="0" alt="{#emotions_dlg.sealed}" title="{#emotions_dlg.sealed}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-smile.gif,emotions_dlg.smile);"><img src="img/smiley-smile.gif" width="18" height="18" border="0" alt="{#emotions_dlg.smile}" title="{#emotions_dlg.smile}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-surprised.gif,emotions_dlg.surprised);"><img src="img/smiley-surprised.gif" width="18" height="18" border="0" alt="{#emotions_dlg.surprised}" title="{#emotions_dlg.surprised}" /></a></td>
          </tr>
          <tr>
            <td><a href="javascript:EmotionsDialog.insert(smiley-tongue-out.gif,emotions_dlg.tongue_out);"><img src="img/smiley-tongue-out.gif" width="18" height="18" border="0" alt="{#emotions_dlg.tongue-out}" title="{#emotions_dlg.tongue_out}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-undecided.gif,emotions_dlg.undecided);"><img src="img/smiley-undecided.gif" width="18" height="18" border="0" alt="{#emotions_dlg.undecided}" title="{#emotions_dlg.undecided}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-wink.gif,emotions_dlg.wink);"><img src="img/smiley-wink.gif" width="18" height="18" border="0" alt="{#emotions_dlg.wink}" title="{#emotions_dlg.wink}" /></a></td>
            <td><a href="javascript:EmotionsDialog.insert(smiley-yell.gif,emotions_dlg.yell);"><img src="img/smiley-yell.gif" width="18" height="18" border="0" alt="{#emotions_dlg.yell}" title="{#emotions_dlg.yell}" /></a></td>
          </tr>
        </table>


maar hoe zorg ik dat hij alle gif bestanden uit een map uitleest?
want ik zocht op phphulp maar dan staat nergens hoe je de extentie kan checken
0
Remi

Lid

Berichten
1.270
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/foreach"]foreach[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/glob"]glob[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]MAP/{*.gif}[/COLOR][COLOR= #007700],[/COLOR] GLOB_BRACE[COLOR= #007700]) as[/COLOR] [COLOR= #0000BB]$filename[/COLOR][COLOR= #007700]) {[/COLOR] 

   [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<img src="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$filename[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" alt="" />[/COLOR][COLOR= #007700]; 

}[/COLOR]  
?>
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
hoe zorg ik ervoor dat bij dit:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/foreach"]foreach[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/glob"]glob[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]img/{*.gif}[/COLOR][COLOR= #007700],[/COLOR] GLOB_BRACE[COLOR= #007700]) as[/COLOR] [COLOR= #0000BB]$filename[/COLOR][COLOR= #007700]) {[/COLOR] 

   [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href="javascript:EmotionsDialog.insert([/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$filename[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000],emotions_dlg.smile);"><img src="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$filename[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" alt="" border="0" /></a>[/COLOR][COLOR= #007700]; 

}[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];[/COLOR]
?>


ik ervoor zorg dat de map eruit wordt gehaald bij de klik?
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren