DawPi Posted January 12, 2008 Share Posted January 12, 2008 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 Link to comment Share on other sites More sharing options...
AndyF Posted January 12, 2008 Share Posted January 12, 2008 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 :) Link to comment Share on other sites More sharing options...
DawPi Posted January 12, 2008 Share Posted January 12, 2008 Andyf, i know where is it. but i aks how to make this system/mod in my site ( no ipboard ) :) Link to comment Share on other sites More sharing options...
AndyF Posted January 12, 2008 Share Posted January 12, 2008 Im not sure what you mean , sorry :unsure: Oh, Happy Birthday :thumbsup: Link to comment Share on other sites More sharing options...
DawPi Posted January 12, 2008 Share Posted January 12, 2008 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 :) ^_^ Link to comment Share on other sites More sharing options...
Alex Posted January 12, 2008 Share Posted January 12, 2008 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' Link to comment Share on other sites More sharing options...
Mark Posted January 12, 2008 Share Posted January 12, 2008 Use the mysql_error and fwrite functions. Edit: Alex beat me to it Link to comment Share on other sites More sharing options...
DawPi Posted January 12, 2008 Share Posted January 12, 2008 Thank you Alex.. :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.