Current location: Hot Scripts Forums » Programming Languages » PHP » Recording Queries, Executed by PHP Script?


Recording Queries, Executed by PHP Script?

Reply
  #1 (permalink)  
Old 07-15-04, 03:05 AM
pual_cruzs pual_cruzs is offline
New Member
 
Join Date: Jul 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Post Recording Queries, Executed by PHP Script?

Is there any utility in MySQL as I want to make a history/Log file of all DML statements excluded from PHP script. The file will be similar to the history file maintained by MySQL client. Whenever we write query in MySQL client it is also recorded in some history file, the queries we executed before, we could see them in lower MySQL client window, and these comes from that history file. I want the same criteria for PHP, when ever my PHP script execute a query by mysql_query($query) command it is recorded in some log/history file maintained by the server.
Please tell me how I could set up my MySQL server so it makes a log file of DML queries for me. The MySQL server software I am using is mysql-4.0.18-win and using PHP4 for scripting.
Reply With Quote
  #2 (permalink)  
Old 07-15-04, 10:11 AM
<?Wille?> <?Wille?> is offline
Junior Code Guru
 
Join Date: Jan 2004
Location: Helsinki, Finland
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
?? something like this?

PHP Code:



$query 
mysql_query($the_query);
$file fopen"log.txt""w" ); 
    
fwrite$file$query ); 
    
fclose$file ); 
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
Run PHP Script Within PHP Script Reg PHP 1 06-29-04 09:09 AM
PHP News script similar to aspHeadlines!! Hideki Script Requests 0 01-22-04 04:25 AM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 12:31 AM
Affiliate script (PHP) whtiebear Job Offers & Assistance 2 12-21-03 12:12 AM


All times are GMT -5. The time now is 05:12 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.