View Single Post
Old 11-27-2010, 11:34 PM   #2 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I would add some sort of logging functionality to the script so you can see where it is hanging up. Something like this (this is untested, but a general idea):
PHP Code:
<?php
//Function
function log($file,$message)
{
    
$dateTime date("F-d-Y H:i:s");
    
$file __FILE__;
    
    
$string $file '(' $dateTime ') ' $message "\n";
    
    
$fd fopen($file"a");
    
fwrite($fd$string "\n");
    
fclose($fd);
}

//Implimentation
define("LOGFILE","c:\phpLogFile.txt")

log(LOGFILE,"Executing a part of the script, relevant information: ");
?>
This will let you know what is running when, you will then be able to find the snag and we can work from there.
__________________

Village Idiot is offline  
Reply With Quote