I am playing around on my personal website with some PHP and MySQL. At home, everything displays fine. At work, however, if the PHP code is using GD to manipulate images nothing ever shows up on the page. If it is just displaying HTML, it shows the HTML tags along with the text without ever formatting it. It takes a very long time to finish being busy even if it has displayed all the information already.
This obviously seems to me to be a security setting on my work firewall, but I know of PHP sites that I can access which do not have that issue. Is there a setting in PHP which I have not set up which might be causing this? Does this sound familair to anyone?
One of the example bits of code I was using was
<?php
echo '<HTML><HEAD></HEAD><BODY>';
//For loop to loop through this 100 times
for ($x = 1; $x <= 100; $x++) {
//Generate three random R, G, and B integers for an RGB value using mt_rand()
$r = mt_rand(0, 255);
$g = mt_rand(0, 255);
$b = mt_rand(0, 255);
//Turn them into a hex code:
$hexCode = dechex( (($r & 0xFF) << 16) | (($g & 0xFF) << 8) | ($b & 0xFF));
echo 'RED: ' . $r . ' GRN: ' . $g . ' BLU: ' . $b . '<BR>Hex Code: '. $hexCode . '<BR><BR>';
// End Bracket for the For loop
}
echo '</BODY></HTML>';
?>
As you can see, nothing too fancy.
I have tried to open this page in Firefox, Chrome, and IE, it only 'fails' at work. In this case, it fails by displaying some number (which isn't echoed in the code at all), and then the page with HTML visible not treated as a markup.
Anybody know some way to get my simple test pages displaying on my work computer?
I am using personal development time to refresh my memory on some PHP concepts and MySQL concepts in preparation for an upcoming project. I wanted to use my personal server to run these test programs rather than cluttering the work linux box I share with my partner up with my personal workspace. Any help would be appreciated!