FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » sql_errors
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: sql_errors [message #20534 is a reply to message #19937] Mon, 18 October 2004 16:13 Go to previous message
adrel is currently offline  adrel   United States
Messages: 1
Registered: October 2004
Karma:
Junior Member
Hi,

I experienced the same problem, having to decode the base64 messages from the error file. The problem was that I could not log into the board and use that to decode them for me.

Therefore, I wrote a small PHP script to decode them for me. I put that in a directory, made a copy of the sql_errors file, and I set up limited access to it (just in case).

Anyhow, here's the script I used, someone else might find it handy. It requires the sql_errors file to put placed in the same directory as the script itself, but one can easy adjust that to match his/her own installation.

<?php
?>
<html>
  <head>
    <title>sql_errors</title>
  </head>
  <body>
    <table border=1>
    <?php
    $f
= fopen('sql_errors', 'r');
    while(!
feof($f)) {
      
$line = fgets($f, 32768);
      if(
$line[0] != '[') continue;
      if(
$line[28] != ']') continue;
      
$date = substr($line, 1, 27);
      
$encoded = substr($line, 30);
      
?>
      <tr>
        <td valign=middle><?= $date ?></td>
        <td valign=top><?= base64_decode($encoded) ?></td>
      </tr>
      <?php
    
}
    
fclose($f);
    
?>
    </table>
  </body>
</html>
<?php
?>


It is a simple script, but it does the job. I hope this would be helpful to some other people having the same sort of problems.

Regards,
-Adrel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Install problem
Next Topic: Apache 2.0.51 [CAN-2004-0811.patch] step 4 - 5
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 00:39:43 GMT 2024

Total time taken to generate the page: 0.04285 seconds