mardi 1 septembre 2015

PHP cURL (+ if) with Combo-box

How can I select via PHP cURL and make a if clause to select from a Combo-box? This is the URL: http://ift.tt/1hvFNPx

And this is what need to be selected via cURL (using IF Clause, because categories will be selected according to my data): OLX Category

I'm getting info via array and then transverse array to post data format:

$post_data['EXAMPLE'] = 'EXAMPLE'; //This will be replaced to get info from my XML Feed via SimpleXML

//traverse array and prepare data for posting (key1=value1)
foreach ( $post_data as $key => $value) {
    $post_items[] = $key . '=' . $value;
}

Also, in this same page, there is a gallery upload. How can I get my images to be uploaded there?

I'm getting data via my XML FEED, so I use SimpleXML to get all content from tags:

$xml=simplexml_load_file("feed.xml");
for ($i = 0; $i < count($xml); $i++) {
$pictures = $xml->imovel[$i]->pictures->picture;
}

Aucun commentaire:

Enregistrer un commentaire