mysteron Posted December 25, 2006 Share Posted December 25, 2006 Hi.I have RHEL 4 on a server, and on it I have the latest version for RHEL4of php installed (4.3.9-3.22) installed. I'm running it in safemode, andhave disabled some functions such as "system" aso...On this server I am experiencing a spam-hole somewhere in a script thata user has on his/her webpage. Now I'm wondering if it is possible tolog usage of a function? If so how.Please help, all feedback and help in finding the spam generating scriptwill be greatly appreciated :) With best X-mas wishes,/mysteron Link to comment https://forums.phpfreaks.com/topic/31787-is-it-possible-to-log-usage-of-a-function/ Share on other sites More sharing options...
steelmanronald06 Posted December 25, 2006 Share Posted December 25, 2006 inside the function put one of two things:1) At the end of the function have it send an email with ip address and other relevant info2) Have that same information written to a text file instead of email. Link to comment https://forums.phpfreaks.com/topic/31787-is-it-possible-to-log-usage-of-a-function/#findComment-147416 Share on other sites More sharing options...
mysteron Posted December 25, 2006 Author Share Posted December 25, 2006 [quote author=steelmanronald06 link=topic=119844.msg491199#msg491199 date=1167006702]inside the function put one of two things:1) At the end of the function have it send an email with ip address and other relevant info2) Have that same information written to a text file instead of email.[/quote]Thank you for your reply.The problem is that I am not an author of the scripts the scripts that the users use on their websites. I am just a server admin trying to find the homepages that spam is getting through on my server. This is why I was wondering if it is possible to log the usage of for example the "mail" function on my server? I could of course keep on cross checking maillog & access_log, but that is taking too much time.thx,/mysteron Link to comment https://forums.phpfreaks.com/topic/31787-is-it-possible-to-log-usage-of-a-function/#findComment-147432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.