FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » log of all php's connection
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
log of all php's connection [message #179114] Thu, 13 September 2012 14:44 Go to next message
nawfer is currently offline  nawfer
Messages: 34
Registered: August 2011
Karma: 0
Member
I have in localhost on windows, easyphp (apache, php, mysql)
I would like to have a file log with a list of all connections that one
php application does;
1) the connection or datas that are send and at which url;
2) the email sended
and generally all the activity with the external
Re: log of all php's connection [message #179119 is a reply to message #179114] Thu, 13 September 2012 18:59 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 9/13/2012 10:44 AM, nawfer wrote:
> I have in localhost on windows, easyphp (apache, php, mysql)
> I would like to have a file log with a list of all connections that one
> php application does;
> 1) the connection or datas that are send and at which url;
> 2) the email sended
> and generally all the activity with the external
>

There's nothing in PHP to do this.

Apache has the ability to log incoming connections and you can get more
information depending on the log settings. But otherwise you'll need to
either implement the code in the application itself or set up a proxy
server to do the logging.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: log of all php's connection [message #179122 is a reply to message #179114] Thu, 13 September 2012 19:28 Go to previous messageGo to next message
Jonathan Stein is currently offline  Jonathan Stein
Messages: 43
Registered: September 2010
Karma: 0
Member
On 13-09-2012 16:44, nawfer wrote:

> I have in localhost on windows, easyphp (apache, php, mysql)
> I would like to have a file log with a list of all connections that one
> php application does;

Sounds like a job for a network monitoring tool. With Windows, it could
be http://www.microsoft.com/en-us/download/details.aspx?id=4865

Regards

Jonathan
Re: log of all php's connection [message #179129 is a reply to message #179119] Fri, 14 September 2012 08:38 Go to previous messageGo to next message
nawfer is currently offline  nawfer
Messages: 34
Registered: August 2011
Karma: 0
Member
Il Thu, 13 Sep 2012 14:59:35 -0400, Jerry Stuckle ha scritto:

> On 9/13/2012 10:44 AM, nawfer wrote:
>> I have in localhost on windows, easyphp (apache, php, mysql)
>> I would like to have a file log with a list of all connections that one
>> php application does;
>> 1) the connection or datas that are send and at which url;
>> 2) the email sended
>> and generally all the activity with the external
>>
>
> There's nothing in PHP to do this.
>
> Apache has the ability to log incoming connections and you can get more
> information depending on the log settings. But otherwise you'll need to
> either implement the code in the application itself or set up a proxy
> server to do the logging.

so in exit, apache cannot know nothing?
in localhost on win, which is solution more simple for activate a proxy for
logging; are settings inner win xp or some applications?
Re: log of all php's connection [message #179137 is a reply to message #179129] Fri, 14 September 2012 14:22 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 9/14/2012 4:38 AM, nawfer wrote:
> Il Thu, 13 Sep 2012 14:59:35 -0400, Jerry Stuckle ha scritto:
>
>> On 9/13/2012 10:44 AM, nawfer wrote:
>>> I have in localhost on windows, easyphp (apache, php, mysql)
>>> I would like to have a file log with a list of all connections that one
>>> php application does;
>>> 1) the connection or datas that are send and at which url;
>>> 2) the email sended
>>> and generally all the activity with the external
>>>
>>
>> There's nothing in PHP to do this.
>>
>> Apache has the ability to log incoming connections and you can get more
>> information depending on the log settings. But otherwise you'll need to
>> either implement the code in the application itself or set up a proxy
>> server to do the logging.
>
> so in exit, apache cannot know nothing?

As far as Apache goes, there is no "exit". There are just requests and
responses for Apache-delivered resources.

> in localhost on win, which is solution more simple for activate a proxy for
> logging; are settings inner win xp or some applications?
>

You need to be asking in a Windows or networking forum. Such is far
beyond what this forum is about.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with PHP Driver Authentication
Next Topic: php and PDO Error HTTP 500
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 18 02:22:01 GMT 2024

Total time taken to generate the page: 0.04532 seconds