PLEASE NOTE: This article may be out-of-date. Please visit the Support site for the latest information.

Updated PHP Sample Code Available (v2.0.1)

3 posts / 0 new
Último envío
Imagen de puravida
puravida
Jedi Warrior
Desconectado
Integró: 09/01/2007
Visitar puravida's Sitio web

We are proud to announce the release of an overhauled PHP sample code class that can be used on PHP4 or PHP5 and also serves as the "Best Practice" guideline for any project, regardless of programming language. Code is well commented.

Check the code documentation for details on improvements over the v1.0.0 code.

Visit the sample code/plugin page

Imagen de puravida
puravida
Jedi Warrior
Desconectado
Integró: 09/01/2007
Visitar puravida's Sitio web

This update addresses an on-going and very difficult to identify issue that was causing "Account Problem" to occur intermittently when using the "Free" PVP method.

It was finally discovered (03/13) that this was being caused by a browser caching issue. Overcoming that was a matter of using a timestamp querystring so that the browser would never cache the pagepix.js script (since it changes often for security reasons).

Here is a sample PHP update that will prevent caching pagepix.js:
<script type="text/javascript" src="http://www.shrinktheweb.com/scripts/pagepix.js?<?php echo time();?>"></script>

And here is a sample "Smarty Template" update to prevent caching of pagepix.js:
<script type="text/javascript" src="http://www.shrinktheweb.com/scripts/pagepix.js?{php}echo time();{/php}"></script>

There is currently no fix available for static HTML pages, but we will be researching options.

africanblogs
Desconectado
Integró: 04/23/2012
Visitar africanblogs's Sitio web

This used to work for me, but now it has suddenly stopped and I am getting 'account problem' on all the images from ShrinkTheWeb. Can you please tell me what I am doing wrong? Thanks! Smile

Topic locked

ShrinkTheWeb® (Sobre STW) es otra innovación de Neosys Consulting

Contáctenos | PagePix Benefits | Learn More | Nuestros socios | Política de privacidad | Términos de uso

©2014 ShrinkTheWeb. All rights reserved. ShrinkTheWeb is a registered trademark of ShrinkTheWeb.