WTF ... IS WTF!?
We are a collective of people who believe in freedom of speech, the rights of individuals, and free pancakes! We share our lives, struggles, frustrations, successes, joys, and prescribe to our own special brand of humor and insanity. If you are looking for a great place to hang out, make new friends, find new nemeses, and just be yourself, WTF.com is your new home.

PHP Problem

Nunzii

®åvïñg §hëêþðhò£íç
388
38
217
#1
<?php
$image = $_GET['display_image'];
$size = getimagesize("$image");
if ($_GET['div']) { $divide = $_GET['div']; };
if ($_GET['x']) { $multiply = $_GET['x']; };
if ($size[0] > 500) {
if ($size[1] > 500) {
$imageheight = $size[1] / $divide;
$imagewidth = $size[0] / $divide;
$imageheightx = $size[1] * $multiply;
$imagewidthx = $size[0] * $multiply;?>
<?php $img_to_display = $_GET['display_image']; echo "<img src=".$img_to_display." width=$imagewidth height=$imageheight>"?>


That give me this error:
Parse error: parse error, unexpected $ in /home/lemoycom/public_html/image.php on line 121


but line 121 is </body></html> im new to php so like if its something really obvious, than ya i dont know damn
 

Nunzii

®åvïñg §hëêþðhò£íç
388
38
217
#2
Nevermind i fixed it...forgot to close my if clauses