Answer the question
In order to leave comments, you need to log in
What is the syntax error after migrating to php7?
syntax error, unexpected '[', expecting ',' or ';' (0)
global $$arParams["FILTER_NAME"];
ResizeCartPictures(&$arItem);
Answer the question
In order to leave comments, you need to log in
readdir returns the name of the element. The name, not the path, of this element.
Where did you say is_file that such a filename should be looked for in the ../alx2/images directory, and not in the current one?
In order not to be perverted in different ways in the style of PHP4 - use the standard DirectoryIterator. The code will be more compact and clearer.
The condition in the loop does not work.
It should be like this:
while (false !== ($file = readdir($handle))) {
if(is_file($file)) ++$count;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question