Jump to content

How to .cgi errors

Featured Replies

Posted

I am greeting,
I would like to do logs of errors on my side. Yes how it is in IPB that he is writing logs and errors down to the file. cgi

Would I be able to obtain more information for this subject?
I am greeting,
DawPi

The logs are in the /cache directory :)

Connect to your site using FTP and look inside the /cache folder and you will see the logs :)

Andyf, i know where is it.

but i aks how to make this system/mod in my site ( no ipboard ) :)

Im not sure what you mean , sorry :unsure:




Oh, Happy Birthday :thumbsup:

 

Im not sure what you mean , sorry :unsure:


I have the page leaned against the database. I would like to do in this book this way:
in order to after the occurrence of the error from SQL, this error signed up for the file for me. cgi

Yes how it is in IPB:)
Do you understand now?



 

Oh, Happy Birthday :thumbsup:


Thank You :) ^_^

Its very simple PHP, it just uses the common file functions fopen(), fwrite(), and fclose(). They just set it up to put text inside it :-)

Heres a example i just came up with

$handle = fopen( 'path/to/file.cgi', 'w' /* means it allows fopen to write to that file, and if it doesnt exist, it creates it */ );


$content = 'whatever content needs to go inside the file';

fwrite( $handle, $content );

fclose( $handle );



That would produce a file called file.cgi in the correct folder (path/to) with the content 'whatever content needs to go inside the file'

Use the mysql_error and fwrite functions.

Edit: Alex beat me to it

Thank you Alex.. :)

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.