Hello all. I am usingthe same class function on two different pages. THe first example works fine, the second one stalls in the middle of the script (as noted) and creates a 11MB core.#### file on my server. The ####'s are actually random digits.
Anyone know why this would be happening?
//THIS SCRIPT WORKS FINE
$a = array("aid", "aname", "adesc", "adate", "atime", "alink");
$b = array($id, $name, $info, $date, $time, $link);
if($db->arr_insert("announcements", $a, $b))
echo '<h3>Announcement inserted into the database.</h3>';
else
echo '<h3>ANNOUNCEMENT INSERTION FAILURE!</h3>';
Here is the broken one...
$a = array("eid", "ename", "adesc", "edate", "estime", "eetime", "elink", "expires");
$b = array($id, $name, $info, $date, $stime, $etime, $link, $expires);
//SCRIPT DIES HERE -- CREATES CORE.#### FILE
if($db->arr_insert("events", $a, $b))
echo '<h3>Event inserted into the database.</h3>';
else
echo '<h3>EVENT INSERTION FAILURE!</h3>';
Any help would be appreciated. I cannot view the core.#### file, it locks my text editor when trying to open it.
########EDIT##########
Turns out it is a core dump file.
When a program terminates abnormally, it may make a file named "core" in the process's working directory. The core file is a memory image of a process that terminated when any of various errors occurred. The most common types of errors which cause core dumps are memory violations, illegal instructions, bus errors, and user-generated quit signals.
So...how do I fix this?