Jump to content

[SOLVED] Combining coding


acctman

Recommended Posts

How would I combine the two sections below into one? if (!$width || !$height) || ($width < 160 || $height < 120 )   is that right?

 

if (!$width || !$height) {
	header("HTTP/1.1 500 Internal Server Error");
	echo "Invalid width or height";
	exit(0);
}

if ($width < 160 || $height < 120 ) {
	header("HTTP/1.1 200 Internal Server Error");
	echo "Invalid width or height. Your image is way to small.";
	exit(0);
}

Link to comment
https://forums.phpfreaks.com/topic/104730-solved-combining-coding/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.