Jump to content

How to .cgi errors


Guest DawPi

Recommended Posts

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

Posted

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 :)

Posted

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 :) ^_^
Posted

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'

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...