<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PHP on Jice Lavocat</title><link>https://jice.lavocat.name/tags/php/</link><description>Recent content in PHP on Jice Lavocat</description><generator>Hugo</generator><language>fr-FR</language><copyright>All rights reserved - 2016</copyright><lastBuildDate>Thu, 10 Aug 2017 00:00:00 +0000</lastBuildDate><atom:link href="https://jice.lavocat.name/tags/php/index.xml" rel="self" type="application/rss+xml"/><item><title>Send Offline Events to Facebook Ads using PHP</title><link>https://jice.lavocat.name/blog/2017/send-offline-events-to-facebook-ads-using-php/</link><pubDate>Thu, 10 Aug 2017 00:00:00 +0000</pubDate><guid>https://jice.lavocat.name/blog/2017/send-offline-events-to-facebook-ads-using-php/</guid><description>&lt;p&gt;If you are using Facebook Ads, chances are that you are simply using the conversion pixel and &lt;a href="https://developers.facebook.com/docs/ads-for-websites/pixel-events/v2.10"&gt;standard events&lt;/a&gt; to optimize your bids. But in complexe scenarios, you cannot use live events, and you need to switch to Offline events instead.&lt;/p&gt;
&lt;p&gt;What we&amp;rsquo;re going to see here, is how to send a purchase events to Facebook, when this purchase has been created/validated manually by the admin via a back office.&lt;/p&gt;
&lt;p&gt;I recently had to help implementing &lt;a href="https://developers.facebook.com/docs/marketing-api/offline-conversions/v2.10"&gt;Facebook Offline Events&lt;/a&gt; in a PHP environment. The client that needed to have offline events was an online retailer selling expensive products. He couldn&amp;rsquo;t simply accept online orders, he also needed to verify each single one before sending the purchase. Their internal workflow was designed in this way to avoid frauds. In addition to that, as products are expensive, purchasing with a credit card could lead to payment issues with banks. So most customers like to purchase via bank transfers instead.&lt;/p&gt;</description></item><item><title>Comment j’ai triché à Samsung Launching People et pourquoi ils ont bien réagi</title><link>https://jice.lavocat.name/blog/2013/comment-jai-trich%C3%A9-%C3%A0-samsung-launching-people-et-pourquoi-ils-ont-bien-r%C3%A9agi/</link><pubDate>Mon, 02 Sep 2013 00:00:00 +0000</pubDate><guid>https://jice.lavocat.name/blog/2013/comment-jai-trich%C3%A9-%C3%A0-samsung-launching-people-et-pourquoi-ils-ont-bien-r%C3%A9agi/</guid><description>&lt;p&gt;Toujours en cours actuellement, un concours mis en place par Samsung a récolté une très bonne visibilité sur la blogosphère française : Samsung Launching People. Dans cet article je vous explique comment il était possible de tricher à ce concours et comment Samsung gère la situation d&amp;rsquo;une manière intelligente.&lt;/p&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Dans ma série de posts pour expliquer comment tricher sur le web, j&amp;rsquo;aimerais aujourd&amp;rsquo;hui vous parler du concours &lt;a title="Concours Facebokk Samsung" href="https://apps.facebook.com/launchingpeople-fr/" target="_blank"&gt;Samsung Launching People&lt;/a&gt;. La dernière fois que j&amp;rsquo;ai décrypté une technique de triche, c&amp;rsquo;était à l&amp;rsquo;occasion de &lt;a title="Triche aux Golden Blog Awards" href="http://www.graphemeride.com/blog/comment-j-ai-triche-aux-golden-blog-awards" target="_blank"&gt;Golden Blog Awards&lt;/a&gt;. A l&amp;rsquo;époque, la technique était très simple puisque les votes se faisaient par un simple clic. Dans le cas de Samsung, le jeu concours a été organisé sur Facebook. Il est en général plus difficile de tricher à ce genre de concours hébergés sur le géant des réseaux sociaux.&lt;/p&gt;</description></item><item><title>Générer des pages html dynamiques (changer l’extension php)</title><link>https://jice.lavocat.name/blog/2008/g%C3%A9n%C3%A9rer-des-pages-html-dynamiques-changer-lextension-php/</link><pubDate>Wed, 23 Jul 2008 00:00:00 +0000</pubDate><guid>https://jice.lavocat.name/blog/2008/g%C3%A9n%C3%A9rer-des-pages-html-dynamiques-changer-lextension-php/</guid><description>&lt;h3 id="le-principe-"&gt;Le principe :&lt;/h3&gt;
&lt;p align="justify"&gt;
 Vous avez des pages html tout ce qu&amp;#8217;il y a de plus statiques. Vous voulez y intégrer du php pour je ne sais quelle raison. Il faut donc se débrouiller pour demander à votre serveur d&amp;#8217;interpréter les pages .htm ou .html comme du php. Pour cela, si vous êtes administrateur, ce n&amp;#8217;est pas trop difficile, ça passe par la &lt;a href="../../index.php?view=article&amp;catid=43%3Aos-a-hardware&amp;id=90%3Aconfigurer-son-apache2&amp;option=com_content&amp;Itemid=63&amp;lang=fr"&gt;configuration d&amp;#8217;apache&lt;/a&gt;.
&lt;/p&gt;
&lt;p align="justify"&gt;
 Si vous n&amp;#8217;êtes pas l&amp;#8217;administrateur de votre système vous devrez ruser, et utiliser à bon escient votre .htaccess.
&lt;/p&gt;</description></item></channel></rss>