S
S
sg_exe2015-01-30 10:53:07
PHP
sg_exe, 2015-01-30 10:53:07

Parser. How to implement?

Good day! Please tell me how you can implement a parser with the following logic
. There are a bunch of files with names like abc.htm abc1.htm in the files there is a question and an answer, respectively, you need to parse the content from these files and write Bitrix to the infoblock element. Here are the results pastebin.com/p3Wi4vzC. The problem is that only one property is written. Thoughts on this are as follows. you need to take a file with the name abc, parse it (this is done), then add 1 to the name and search for a file with the name abc1, if found, then parse, if not, do nothing and write it to the info block, and so on

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Ivanov, 2015-01-30
@Writerim

well, apparently the condition is not met if (is_readable($name."1"))
Either PROPERTY_VALUES cannot parse arrays but only strings
Show the code that you have with the $el->Add method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question