...

View Full Version : how to check for new packets



koolaid
02-26-2008, 04:18 PM
How can I check a connection (fsockopen) for new packets? I know I can use fgets but that retrieves the packet too, I only want to check if a new packet has arrived.

Thanks.

matak
02-26-2008, 05:07 PM
if (fgets) {
mail(packethasarrived);
}

:)

koolaid
02-26-2008, 05:36 PM
if (fgets) {
mail(packethasarrived);
}

:)

Thanks but in that way the specific packet disappears too, is there another way?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum