Advertising
- Untitled
- Friday, November 17th, 2006 at 8:51:26am MST
- --- main.c 2006-11-10 13:31:18.000000000 +0000
- +++ main.c.new 2006-11-17 15:48:43.953125000 +0000
- @@ -1005,12 +1005,18 @@
- struct tm *ta, tmbuf;
- time_t curtime;
- char *datetime_str, asctimebuf[52];
- + char script_name[132];
- time(&curtime);
- ta = php_localtime_r(&curtime, &tmbuf);
- datetime_str = php_asctime_r(ta, asctimebuf);
- datetime_str[strlen(datetime_str)-1]=0; /* get rid of the trailing newline */
- - fprintf(stderr, "[%s] Script: '%s'\n", datetime_str, SAFE_FILENAME(SG(request_info).path_translated));
- + snprintf(script_name, 132,"[%s] Script: '%s'\n", datetime_str, SAFE_FILENAME(SG(request_info).path_translated));
- +# if defined(PHP_WIN32)
- + OutputDebugString(script_name);
- +# else
- + fprintf(stderr, "%s", script_name);
- +# endif
- }
- break;
- }
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.