E
E
ElGatoAhuecado2016-08-30 11:05:31
PHP
ElGatoAhuecado, 2016-08-30 11:05:31

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

2 answer(s)
C
Cat Anton, 2016-06-21
@lightalex

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) {
    // ...
}

Or even like this:
if ($date1 < $date2) {
    // ...
}

S
Sergey Novikov, 2016-08-30
@BOOMER_74

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".

With mode=file , the file is passed to php://input .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question