The usual technique is to interpose your own library call above the usual call. 
See LD_PRELOAD and dlsym(). For an interpreted language like PHP use strace and 
friends to see which library calls the PHP fgets() uses (it need not be 
fgets(), it could be read()).
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to