Start looking here for info on how to generate a backtrace and get debugging info: http://bugs.php.net/ You probably have found an actual bug, and can help to get it fixed by documenting what blows up. On Mon, January 14, 2008 4:17 pm, Anjan Upadhya wrote: > Hello, > > I have a freebsd 6.2 server running amd64 version with php 5.2.5. The > web server is Apache 1.3.39. The following bit of code works on the 32 > bit version of php running on Freebsd 6.2 (32 bit), Apache 1.3.39 > build > but causes a 500 internal server error when run on the amd64 bit > version. The amd64 bit version has the web application mounted as a > nfs > mount. > > $file_name = MOUNT_DIR . "/test.txt"; > if (!$write_handle = fopen($file_name, 'w')) { > return false; > } > //set conforming strings to true > $ins_fields_sql = "SET standard_conforming_strings > to > TRUE;"; > fwrite($write_handle, $text_to_write . "\n"); > #### THIS WRITE HAPPENS TO THE FILE > > foreach ($ar_orders as $key => $value) { > ### INTERNAL SERVER ERROR > } > > Has anyone come across this? Any insight would be greatly appreciated. > > -- > Regards, > > Anjan Upadhya > V.P. of Software Development > anjan@xxxxxxxxxxxxxx > ph: 954.332.7875 > ================== > www.sproutloud.com > SproutLoud Media Networks, LLC. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php