|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-08-21 09:03 UTC] zeev
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 14:00:01 2025 UTC |
I have written script, which should include somefile.txt for example ten times: for($i=0;$i<10;$i++) include "somefile.txt"; When I have ran this script, I have obtained 10 warnings, stating that PHP can not include somefile.txt. After that, PHP starts including somefile.txt in infinite loop. I have tryed same code using alternate for syntax: for($i=0;$i<10;$i++): include "somefile.txt"; endfor; And everything worked well. Everything worked also if I rewrite this piece of code to use while loop.