Sir Softsand Posted June 10, 2007 Author Share Posted June 10, 2007 ??? I don't get it Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-271811 Share on other sites More sharing options...
AndyB Posted June 10, 2007 Share Posted June 10, 2007 ??? I don't get it You don't get what? Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-271815 Share on other sites More sharing options...
Sir Softsand Posted June 10, 2007 Author Share Posted June 10, 2007 Nvm, I haven't got the problem anymore (hope I don't get it again.) Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-271833 Share on other sites More sharing options...
chocopi Posted June 10, 2007 Share Posted June 10, 2007 just in cas there is a problem again here is glob(). You can save this in your image file and then use require() in what ever file you want it to appear in. That way you dont have to mess around with folder structures etc. <?php $array = glob("*.gif"); // Replace .gif with whatever file extension you use foreach ($array as $val) { echo ("<img src=\"".$val."\" name=\"".$val."\" id=\"".$val."\" alt=\"".$val."\" />"); } ?> I think that should work ~ Chocopi Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-271840 Share on other sites More sharing options...
Sir Softsand Posted June 10, 2007 Author Share Posted June 10, 2007 It doesn't, do I have to combine both codes? Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-271871 Share on other sites More sharing options...
chocopi Posted June 11, 2007 Share Posted June 11, 2007 no you should only use glob() if the other does not work Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-272174 Share on other sites More sharing options...
Sir Softsand Posted June 11, 2007 Author Share Posted June 11, 2007 ? I don't understand, tell me. Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-272330 Share on other sites More sharing options...
Sir Softsand Posted June 12, 2007 Author Share Posted June 12, 2007 Can anyone help me? ??? Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-273276 Share on other sites More sharing options...
Sir Softsand Posted June 13, 2007 Author Share Posted June 13, 2007 no1 ??? Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-273883 Share on other sites More sharing options...
AndyB Posted June 13, 2007 Share Posted June 13, 2007 Can anyone help me? ??? Can anyone help you do what? Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-273895 Share on other sites More sharing options...
Sir Softsand Posted June 15, 2007 Author Share Posted June 15, 2007 I still have the problem that the images disappear after a while. The other guy said me to use glob, but I don't really get what he means. Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-275171 Share on other sites More sharing options...
AndyB Posted June 15, 2007 Share Posted June 15, 2007 It really doesn't matter how you acquire the list of images; readdir and glob are just two different methods that can both produce identical results. If the images are present in the folder, they'll appear. There's no such thing as a piece of script that works some of the time under identical conditions. Best guess is that you have crappy hosting or some severe caching issues with your internet service provider. Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-275562 Share on other sites More sharing options...
Sir Softsand Posted June 23, 2007 Author Share Posted June 23, 2007 Ok, thx anyway. Quote Link to comment https://forums.phpfreaks.com/topic/54784-solved-image-page/page/2/#findComment-280801 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.