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
Last post
puravida's picture
puravida
Jedi Warrior
Offline
Joined: 09/01/2007
Visit puravida's Website

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

puravida's picture
puravida
Jedi Warrior
Offline
Joined: 09/01/2007
Visit puravida's Website

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
Joined: 04/23/2012
Visit africanblogs's Website

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

Contact Us | PagePix Benefits | Learn More | Our Partners | Privacy Policy | Terms of Use

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