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
Letzter Beitrag
Bild von puravida
puravida
Jedi Warrior
Offline
Beigetreten: 09/01/2007
Besuchen puravida's Webseite

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

Bild von puravida
puravida
Jedi Warrior
Offline
Beigetreten: 09/01/2007
Besuchen puravida's Webseite

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
Offline
Beigetreten: 04/23/2012
Besuchen africanblogs's Webseite

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® (About STW) is another innovation by Neosys Consulting

Kontakt | PagePix Benefits | Learn More | Our Partners | Datenschutzrichtlinie | Nutzungsbedingungen

©2014 ShrinkTheWeb. Alle Rechte vorbehalten. ShrinkTheWeb ist ein eingetragenes Handelszeichen von ShrinkTheWeb.