php-general Digest 8 May 2012 17:42:39 -0000 Issue 7805

Topics (messages 317816 through 317823):

Re: IDE
        317816 by: Simon Schick

I need a good access and error log..
        317817 by: rene7705
        317818 by: admin
        317819 by: Lester Caine
        317820 by: Ashley Sheridan
        317821 by: rene7705
        317822 by: marco.behnke.biz

How to send XML requests from PHP?
        317823 by: Michelle Konzack

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On Mon, May 7, 2012 at 3:10 AM, Ethan Rosenberg <eth...@earthlink.net> wrote:
>
>
> =======
> Simon -
>
> Thanks.
>
>
>> I don't think you're talking about auto-form-fill and stuff like
>> that, are you?
>
>
> No, I am not.
>
> Please send me your xdebug-config file.
>
> Thanks
>
> Ethan
>
>

Hi, Ethan

I forgot to mention that the whole configuration of my test-webserver
is on github ;) There are my configuration-files for apache, mysql,
nginx, php, solr and so on.
But I have to say that my environment is a bit special as I am
developing on a windows-machine and this configuration is running on a
virtual linux machine. Don't hesitate to ask things about the
configuration :)
https://github.com/SimonSimCity/webserver-configuration
For each program I have an init.sh script which will install the
program exactly the way I use it.
Feel free to fork it and add your stuff.

If you're just looking for the xdebug-configuration:
https://github.com/SimonSimCity/webserver-configuration/blob/master/php/conf/conf.d/xdebug.ini
You might have to change it to use it on a windows-environment ... at
least you'd have to move it into your php.ini file instead of an
separate configuration-file as it is on Linux.

As I am the only one developing on this machine, I've configured
xdebug in that way, that anyone can open a xdebug-debug-session. This
is done by enabling xdebug.remote_connect_back. Please do not use this
on your live-server, but set an ip-limit using xdebug.remote_host!

Please read this part of the xdebug-configuration to get a better
understanding on how to set up a working environment (specially the
part "Starting The Debugger"):
http://xdebug.org/docs/remote

The only problem I can report so far is, that I can't debug
command-line scripts ... If someone else reading that post has an
answer, I'd be glad to hear it.

Bye
Simon

--- End Message ---
--- Begin Message ---
Hi.

I've been using Google Analytics, and I'm sure I'm using the analytics
code correctly, but when I checked my dev server's apache access logs
(dozens of hits per day) against what Google Analytics reports (zip,
zero, nada), I realized I needed something different. BTW, I'm not the
only one to report this problem
(https://www.google.nl/search?aq=f&sourceid=chrome&ie=UTF-8&q=google+analytics+lower+number)

I thought of rolling something of my own, a PHP-MySQL based
access+error log, add a viewer for it (http://dygraphs.com/ perhaps),
and spend the next month perfecting it..
But before I start coding, I thought it would be better to ask you all
what you use to see who's visiting your sites and when.
Oh, I need something that will work on shared hosting (php+mysql).

Thanks for your input.

(and purists; I couldn't think of a better place to post this, as this
is a large community of web developers who use the same language as I
do. I may even end up writing an opensourced php logging facility for
you)

--- End Message ---
--- Begin Message ---
-----Original Message-----
From: rene7705 [mailto:rene7...@gmail.com] 
Sent: Monday, May 07, 2012 3:00 AM
To: php-general
Subject: [PHP] I need a good access and error log..

Hi.

I've been using Google Analytics, and I'm sure I'm using the analytics code
correctly, but when I checked my dev server's apache access logs (dozens of
hits per day) against what Google Analytics reports (zip, zero, nada), I
realized I needed something different. BTW, I'm not the only one to report
this problem
(https://www.google.nl/search?aq=f&sourceid=chrome&ie=UTF-8&q=google+analyti
cs+lower+number)

I thought of rolling something of my own, a PHP-MySQL based
access+error log, add a viewer for it (http://dygraphs.com/ perhaps),
and spend the next month perfecting it..
But before I start coding, I thought it would be better to ask you all what
you use to see who's visiting your sites and when.
Oh, I need something that will work on shared hosting (php+mysql).

Thanks for your input.

(and purists; I couldn't think of a better place to post this, as this is a
large community of web developers who use the same language as I do. I may
even end up writing an opensourced php logging facility for
you)

--


I have seen and dealt with this for a few companies.
I have setup PHP scripting, JavaScript, Perl scripting you name it I have
tried it.
I have NEVER came up with the same number Google Analytics comes up with.
Sporadic behavior from Analytics not tied to a unique browser, OS or time.
Almost like random addition values are just added to the total for no
reason.

I like Google, but the numbers are not real!
When I can track each and every visit, site navigation and the numbers do
not match.
I asked Google for click by click information IP, Time and any other
information they could give me.
I never got that list to this day. Probably because it would allow me to
argue traffic that simply didn’t happen!

Suggestions when logging traffic, Avoid JavaScript that relies on the client
side to tell you information. Bad Idea!!!!!
Use php, perl or any server side language.
When logging information remember that apache/.NET process web request and
generally the best place to log.
It you log at the process you do not need to have scripting in each landing
page.
Log light information, never request overwhelming amounts of information for
each request you may cause horrid loading results.

PHP example (Just a simple example, there are many ways to do it)
Index.php
<?php
$query = "INSERT INTO click_log (`ip`,`action_time`) VALUES
('".$_SERVER['REMOTE_ADDR']."','".date("y-m-d H:i:s")."') ";
$result = mysql_query($query);
?>

I HIGHLY recommend you have a full understand of httaccess or web.config
before you attempt logging from them.
 

Rick









   


--- End Message ---
--- Begin Message ---
rene7705 wrote:
But before I start coding, I thought it would be better to ask you all
what you use to see who's visiting your sites and when.
Oh, I need something that will work on shared hosting (php+mysql).

piwik ...
http://piwik.org/
A couple of my heavy google users are finding the results much more informative, and we have started switch google analytics off on all the sites.

( And while it says PHP MySQL I'm using it quite happily on Firebird :) )

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--- End Message ---
--- Begin Message ---

Lester Caine <les...@lsces.co.uk> wrote:

>rene7705 wrote:
>> But before I start coding, I thought it would be better to ask you
>all
>> what you use to see who's visiting your sites and when.
>> Oh, I need something that will work on shared hosting (php+mysql).
>
>piwik ...
>http://piwik.org/
>A couple of my heavy google users are finding the results much more
>informative,
>and we have started switch google analytics off on all the sites.
>
>( And while it says PHP MySQL I'm using it quite happily on Firebird :)
>)
>
>--
>Lester Caine - G8HFL
>-----------------------------
>Contact - http://lsces.co.uk/wiki/?page=contact
>L.S.Caine Electronic Services - http://lsces.co.uk
>EnquirySolve - http://enquirysolve.com/
>Model Engineers Digital Workshop - http://medw.co.uk//
>Firebird - http://www.firebirdsql.org/index.php
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

Google analytics only tracks when javascript is enabled, so that could account 
for some of the discrepencies. It also uses cookies, which now have to be 
legally opted in by the user in the EU (unless they're vital to the 
functionality of the site, such as for shopping carts, etc)

I've rolled my own for these reasons. It's not perfect, but it does a pretty 
good job at tracking browsers and bits alike. I use the IP to track individual 
users; its not wholly accurate (people can share the IP in a given day), but it 
does the trick.

The key is using images to track. If javascript is enabled it can add extra 
info to the url. Obviously it won't work with images turned off, so I'll need 
to look at that soon too.

Thanks,
Ash
http://ashleysheridan.co.uk

--- End Message ---
--- Begin Message ---
On Mon, May 7, 2012 at 11:27 AM, Ashley Sheridan
<a...@ashleysheridan.co.uk> wrote:
>
>
> Lester Caine <les...@lsces.co.uk> wrote:
>
>>rene7705 wrote:
>>> But before I start coding, I thought it would be better to ask you
>>all
>>> what you use to see who's visiting your sites and when.
>>> Oh, I need something that will work on shared hosting (php+mysql).
>>
>>piwik ...
>>http://piwik.org/
>>A couple of my heavy google users are finding the results much more
>>informative,
>>and we have started switch google analytics off on all the sites.
>>
>>( And while it says PHP MySQL I'm using it quite happily on Firebird :)
>>)
>>
>>--
>>Lester Caine - G8HFL
>>-----------------------------
>>Contact - http://lsces.co.uk/wiki/?page=contact
>>L.S.Caine Electronic Services - http://lsces.co.uk
>>EnquirySolve - http://enquirysolve.com/
>>Model Engineers Digital Workshop - http://medw.co.uk//
>>Firebird - http://www.firebirdsql.org/index.php
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>
> Google analytics only tracks when javascript is enabled, so that could 
> account for some of the discrepencies. It also uses cookies, which now have 
> to be legally opted in by the user in the EU (unless they're vital to the 
> functionality of the site, such as for shopping carts, etc)
>
> I've rolled my own for these reasons. It's not perfect, but it does a pretty 
> good job at tracking browsers and bits alike. I use the IP to track 
> individual users; its not wholly accurate (people can share the IP in a given 
> day), but it does the trick.
>
> The key is using images to track. If javascript is enabled it can add extra 
> info to the url. Obviously it won't work with images turned off, so I'll need 
> to look at that soon too.
>
> Thanks,
> Ash
> http://ashleysheridan.co.uk
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Thanks for the replies, everyone..

I'm going to roll my own as well.

--- End Message ---
--- Begin Message ---

Lester Caine <les...@lsces.co.uk> hat am 7. Mai 2012 um 11:03 geschrieben:

> rene7705 wrote:
> > But before I start coding, I thought it would be better to ask you all
>
> piwik ...
> http://piwik.org/
> A couple of my heavy google users are finding the results much more
informative,
> and we have started switch google analytics off on all the sites.

I can support this one too. I have been using for quite a few now. It
supports JS and NOSCRIPT.
And you can go from "Track the visits" up to campaign setups and so on.

--- End Message ---
--- Begin Message ---
Hello *,

I have to implement an interface which must access a Domain-Registration
API.  From the manual I have for example:

----8<------------------------------------------------------------------
Example 2.8. Contact Update:valid(change password)

Change password from multipass to green

REQUEST:

Generic Operation: 
POST(http://backend.example.com/bdom/contact/update/DOJOB0001/1/,xml)

Where xml:

<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <type>PERS</type>
  <sex>MALE</sex>
  <first-name>Otto</first-name>
  <last-name>Normalverbraucher</last-name> 
  <organisation>Acme Gmbh</organisation>
  <street>Main Strasse</street>
  <number>13</number>
  <postcode>555555</postcode>
  <city>Newe Stad</city>
  <country>DE</country>
  <phone>+040.0123456789</phone>
  <fax>+040.0123456789</fax>
  <email>h...@nictest.de</email>
  <password>new_secret</password>
</request>


RESPONSE:

<response>1 updated</response>
----8<------------------------------------------------------------------

The problem is (I am sitting on my line) that I do  not  understand  how
to send this XML stuff.

Any hints please?

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux
               Internet Service Provider, Cloud Computing
                <http://www.itsystems.tamay-dogan.net/>

itsystems@tdnet                     Jabber  linux4miche...@jabber.ccc.de
Owner Michelle Konzack

Gewerbe Strasse 3                   Tel office: +49-176-86004575
77694 Kehl                          Tel mobil:  +49-177-9351947
Germany                             Tel mobil:  +33-6-61925193  (France)

USt-ID:  DE 278 049 239

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Attachment: signature.pgp
Description: Digital signature


--- End Message ---

Reply via email to