Vamoon Posted December 30, 2009 Share Posted December 30, 2009 Hi, I've got a problem with my PHP-Code The thing it should do is to filter out some files. There are a lot of math exercises and they all have got their own specific properties and the user can give some information on what kind of exercises he wants to have (like: algebra [x] yes [x]no) and if u don't klick any of the checkboxes it takes it as if it would be equal to u if this kind of exercises are there. So, here my code: - http://pastie.org/761864 So, here all the errors: - http://pastie.org/761870 In basic it only are 2 errors, but they are both executed 10 times. Hope for Help, Jakiw Quote Link to comment https://forums.phpfreaks.com/topic/186743-uninitialized-string-offset/ Share on other sites More sharing options...
sasa Posted December 31, 2009 Share Posted December 31, 2009 length of string $suchstring ($suchstring = substr($file, 0, 10) is 10 and in line $sucharray[] = $suchstring[10]; you tray to get 11th carather Quote Link to comment https://forums.phpfreaks.com/topic/186743-uninitialized-string-offset/#findComment-986267 Share on other sites More sharing options...
Vamoon Posted December 31, 2009 Author Share Posted December 31, 2009 Ye...that was one of the problems. The other one was the If file != "." || file != ".." both returns true. A very kind "sirpengi" helped me alot in ur irc Thanks so much to him, and this thread can be closed now Quote Link to comment https://forums.phpfreaks.com/topic/186743-uninitialized-string-offset/#findComment-986349 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.