Hi,

I have tried to find out on this, but I cannot be sure.

Anyone knows for certain fopen and file_get_contents (or any similar functions) will generate an entry in the target domain's website traffic stats?

I know this could be traffic analyser specific, so for a start, will it appear in webalizer, awstats or google analytics. if it does, will it appear as a regular user with the server IP or another form, like a bot or something with identifiable IP?

Thanks

Well when using file_get_contents a request is sent to the remote server with the User Agent as "PHP" which can be configured in php.ini. I believe the same holds true for cURL but a cURL request can be configured to customize the user agent. So yes, it does get logged like a normal request.

So yes, it does get logged like a normal request.

thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.