After I disable Analytics code, why the code is still include my page and the code bring a error to page. How can I remove the code? Below is the code:
That´s the last lines of sourcecode of your page. The analytics script deffo is gone, maybe you are being served a locally cached version of your page? Clear the browser cache and reload the page
if you use the firebug of firefox. you can find the response of the file weather.php is
Mingrui.Show_weather({“city”:“Toronto, ON”,“fdate”:“2009-07-02”,“ctime”:“2009-07-02 18:14:08 +0000”,“unit”
:“US”,“cond”:“Mostly Cloudy”,“ftemp”:“66”,“ctemp”:“19”,“humi”:“Humidity: 83%”,“icon”:"/ig/images/weather
/mostly_cloudy.gif",“week1”:“Thu”,“low1”:“59”,“high1”:“71”,“icon1”:"/ig/images/weather/rain.gif",“cond1”
:“Showers”,“week2”:“Fri”,“low2”:“58”,“high2”:“71”,“icon2”:"/ig/images/weather/chance_of_storm.gif",“cond2”
:“Scattered Tnunderstorms”,“week3”:“Sat”,“low3”:“56”,“high3”:“72”,“icon3”:"/ig/images/weather/partly_cloudy
.gif",“cond3”:“Partly Cloudy”,“week4”:“Sun”,“low4”:“59”,“high4”:“74”,“icon4”:"/ig/images/weather/partly_cloudy
.gif",“cond4”:“Partly Cloudy”,});
<!-- www.000webhost.com Analytics Code -->
<script type=“text/javascript” src=“http://analytics.hosting24.com/count.php”></script>
<noscript><a href=“http://www.hosting24.com/”><img src=“http://analytics.hosting24.com/count.php” alt
=“web hosting” /></a></noscript>
<!-- End Of Code -->
After disable to code, it only has not return value from content.php. but it is still add code in my page. I want to know how to remove the paragraph code from my page.
it’s return value is:
{“city”:“Toronto, ON”,“fdate”:“2009-07-03”,“ctime”:“2009-07-03 12:34:05 +0000”,“unit”:“US”,“cond”:“Mostly
Cloudy”,“ftemp”:“63”,“ctemp”:“17”,“humi”:“Humidity: 82%”,“icon”:"/ig/images/weather/mostly_cloudy.gif"
,“week1”:“Fri”,“low1”:“57”,“high1”:“71”,“icon1”:"/ig/images/weather/rain.gif",“cond1”:“Showers”,“week2”
:“Sat”,“low2”:“57”,“high2”:“75”,“icon2”:"/ig/images/weather/partly_cloudy.gif",“cond2”:“Partly Cloudy”
,“week3”:“Sun”,“low3”:“57”,“high3”:“77”,“icon3”:"/ig/images/weather/partly_cloudy.gif",“cond3”:“Partly
Cloudy”,“week4”:“Mon”,“low4”:“58”,“high4”:“68”,“icon4”:"/ig/images/weather/partly_cloudy.gif",“cond4”
:“Partly Cloudy”,};
<!-- www.000webhost.com Analytics Code -->
<script type=“text/javascript” src=“http://analytics.hosting24.com/count.php”></script>
<noscript><a href=“http://www.hosting24.com/”><img src=“http://analytics.hosting24.com/count.php” alt
=“web hosting” /></a></noscript>
<!-- End Of Code -->
The analytics code is still here. you can not see it in the page because the analytics code is between <!-- www.000webhost.com Analytics Code -->. But it still run. It has error when I call this page from the other page. How can I do it? I think you can find the mistake with firefox and firbug. I have removed this code from my default page. Thank you.
I call the weather.php in a js file. and this js file is included in a php file. the weather.php just use “echo” to output json data.
but the analytic code dispaly after the return json data. I don’ why? In weather.php, I don’t output the analytic code. I don’t why it display in there.
the analytic code disable function only apply to one domain so if you pull your data from different domain the analytic code might inject in that domain.
I think find the problem. but I can not fix.
If the weather.php is :
<?php
echo “ppp”;
?>
then it doesn’t include the analytic code.
but if it is
<?php
require_once(‘w2.php’);
echo “ppp”;
?>
it will output with analytic code:
ppp;
<!-- www.000webhost.com Analytics Code -->
<script type=“text/javascript” src=“http://analytics.hosting24.com/count.php”></script>
<noscript><a href=“http://www.hosting24.com/”><img src=“http://analytics.hosting24.com/count.php” alt
=“web hosting” /></a></noscript>
<!-- End Of Code -->