WebPagetest Forums
Need PHP help - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Optimization Discussions (/forumdisplay.php?fid=5)
+--- Thread: Need PHP help (/showthread.php?tid=164)

Need PHP help - altonjone - 02-11-2010 04:26 PM

Hey can some one help me out I'm trying put this on my website but when it's in php code I get errors so can some help me out to make it work in php code

<script type="text/javascript">
$(document).ready(function() {

'overlayOpacity' : 0.7,
'overlayColor' : '#000000'

'zoomSpeedIn' : 500,
'zoomSpeedOut' : 500

RE: Need PHP help - pmeenan - 02-11-2010 11:05 PM

Can you upload your actual php file? That is straight html and needs to be outside of a php block. i.e.:

...php code

insert your html here

.. continue the php code

You can also echo or print it (or if you are using a CMS they have different ways to take the output).