It is a path to a bunch of number images. I could be wrong (again I'm very new at this) but I don't think it is getting to the PHP file or I would be getting an error from the PHP.
This is my PHP code and the paths are correct. Thanks for all your input.
<?php session_start(); $counter_name = "counter.txt"; // Check if a text file exists. If not create one and initialize it to zero. if (!file_exists($counter_name)) { $f = fopen($counter_name, "w"); fwrite($f,"0"); fclose($f); } // Read the current value of the counter file $f = fopen($counter_name,"r"); $counterVal = fread($f, filesize($counter_name)); fclose($f); // Has visitor been counted in this session? // If not, increase counter value by one if(!isset($_SESSION['hasVisited'])){ $_SESSION['hasVisited']="yes"; $counterVal++; $f = fopen($counter_name, "w"); fwrite($f, $counterVal); fclose($f); } $counterVal = str_pad($counterVal, 6, "0", STR_PAD_LEFT); $chars = preg_split('//', $counterVal); $im = imagecreatefrompng("../images/counter/canvas.png"); // Transparent canvas that my numbers will sit on top of $src1 = imagecreatefrompng("../images/counter/$chars[1].png"); $src2 = imagecreatefrompng("../images/counter/$chars[2].png"); $src3 = imagecreatefrompng("../images/counter/$chars[3].png"); $src4 = imagecreatefrompng("../images/counter/$chars[4].png"); $src5 = imagecreatefrompng("../images/counter/$chars[5].png"); $src6 = imagecreatefrompng("../images/counter/$chars[6].png"); imagecopymerge($im, $src1, 0, 0, 0, 0, 56, 75, 100); imagecopymerge($im, $src2, 60, 0, 0, 0, 56, 75, 100); imagecopymerge($im, $src3, 120, 0, 0, 0, 56, 75, 100); imagecopymerge($im, $src4, 180, 0, 0, 0, 56, 75, 100); imagecopymerge($im, $src5, 240, 0, 0, 0, 56, 75, 100); imagecopymerge($im, $src5, 300, 0, 0, 0, 56, 75, 100); // Output and free from memory header('Content-Type: image/png'); echo imagepng($im); imagedestroy($im); ?>