Answer the question
In order to leave comments, you need to log in
How to set up import of images from 1C to php?
I synchronize 1C with a php site using the exchange protocol between the 1C:Enterprise system and the site v8.1c.ru/edi/edi_stnd/131/. But there is not a word about how images are transmitted. Product properties have fields like <Image>import_files/dc/dc29fa8f-a49d-11e5-928c-50e54942a8ad_dc29fa90-a49d-11e5-928c-50e54942a8ad.jpg Image>. But the image files themselves are not transferred (I write all connections to the database, only xml files are transferred and everything is successful). Tell me how to sync pictures.
Answer the question
In order to leave comments, you need to log in
Dates and times in this format can be compared using strcmp.
$date1 = "2001-01-01 15:20:20";
$date2 = "2014-11-23 21:30:00";
if (strcmp($date1, $date2) < 0) {
// ...
}
if ($date1 < $date2) {
// ...
}
Everything is written there:
C. Uploading exchange files to the site
Then "1C:Enterprise" requests with parameters like
http://<site>/<path> /1c_exchange.php?type=catalog&mode=file&filename=<file name>
uploads exchange files to the site in the format CommerceML 2 by sending the contents of the file or part of it as a POST.
If the file is successfully written, the site management system issues the string "success".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question