Hello, I'm writing an error handling script for my windows 2000 Server, Basically I'm exploding the query_string down to the error code, (404, 401, 500, ect...) and I want to add either (main, main2, desc, or sub) to the errorcode, how do I go about this? Im trying to do this so it eventually comes back like: main404, desc404 or ect.. so i can include the error description in a web page, Here is the following code, thanks for any help anyone can give. It should be compatible with unix, but im not sure, I run it on windows 2k, with IIS5, and php4, thanks again <?php header("Status: 200 OK"); $dir_level=(count(explode("/",$web_root))-2); // *** To be compatible with linux or windows machines if($REQUEST_URI){ $h_request=$REQUEST_URI; $prog_offset=1; }elseif($QUERY_STRING){ $h_request=$QUERY_STRING; $prog_offset=3; }else{ echo"<center>System Error 600. Please contact the [EMAIL PROTECTED] with this error.<br>Thank you,<br>Xtreme Computers</center>"; } // *** Explode the URL using / to get different parts $url_array=explode("/",$h_request); // *** Get the error code $errorcode=$url_array[$dir_level+1]; // *** Explode the error code using ; (otherwise i get 404;http as a result) $error_array=explode(";",$errorcode); // *** This is the error code $newerrorcode=$error_array[0]; // *** this is where im lost, i have the error code, but how do i append main, // *** main2, desc, and sub after the $ but before the error code? // *** thanks again for any help ?>