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

2012-05-08 Thread php-general-digest-help

php-general Digest 8 May 2012 17:42:39 - 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


--
---BeginMessage---
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---
---BeginMessage---
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=fsourceid=chromeie=UTF-8q=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---
---BeginMessage---
-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=fsourceid=chromeie=UTF-8q=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 

[PHP] How to send XML requests from PHP?

2012-05-08 Thread Michelle Konzack
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;
  typePERS/type
  sexMALE/sex
  first-nameOtto/first-name
  last-nameNormalverbraucher/last-name 
  organisationAcme Gmbh/organisation
  streetMain Strasse/street
  number13/number
  postcode55/postcode
  cityNewe Stad/city
  countryDE/country
  phone+040.0123456789/phone
  fax+040.0123456789/fax
  emailh...@nictest.de/email
  passwordnew_secret/password
/request


RESPONSE:

response1 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/


signature.pgp
Description: Digital signature


Re: [PHP] How to send XML requests from PHP?

2012-05-08 Thread Jim Lucas

On 05/08/2012 10:50 AM, Michelle Konzack wrote:

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;
   typePERS/type
   sexMALE/sex
   first-nameOtto/first-name
   last-nameNormalverbraucher/last-name
   organisationAcme Gmbh/organisation
   streetMain Strasse/street
   number13/number
   postcode55/postcode
   cityNewe Stad/city
   countryDE/country
   phone+040.0123456789/phone
   fax+040.0123456789/fax
   emailh...@nictest.de/email
   passwordnew_secret/password
/request


RESPONSE:

response1 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



Look into cURL http://php.net/curl


--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to send XML requests from PHP?

2012-05-08 Thread Matijn Woudt
On Tue, May 8, 2012 at 7:50 PM, Michelle Konzack
linux4miche...@tamay-dogan.net wrote:
 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;
  typePERS/type
  sexMALE/sex
  first-nameOtto/first-name
  last-nameNormalverbraucher/last-name
  organisationAcme Gmbh/organisation
  streetMain Strasse/street
  number13/number
  postcode55/postcode
  cityNewe Stad/city
  countryDE/country
  phone+040.0123456789/phone
  fax+040.0123456789/fax
  emailh...@nictest.de/email
  passwordnew_secret/password
 /request


 RESPONSE:

 response1 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


Try one of the available XML classes that are included in PHP [1].
Both XMLWriter [2] and SimpleXML [3] will do the job.

- Matijn

[1] www.php.net/XML
[2] www.php.net/XMLWriter
[3] www.php.net/SimpleXML

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: How to send XML requests from PHP?

2012-05-08 Thread Michelle Konzack
Hello Jim Lucas,

Am 2012-05-08 11:08:13, hacktest Du folgendes herunter:
 Look into cURL http://php.net/curl

I know curl but I do not know, HOW to send the XML stuff.

The XML code is generated using a temp file for logging, which  mean,  I
can see any changes on the system...

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/


signature.pgp
Description: Digital signature


Re: [PHP] Re: How to send XML requests from PHP?

2012-05-08 Thread Jim Lucas

On 05/08/2012 11:25 AM, Michelle Konzack wrote:

Hello Jim Lucas,

Am 2012-05-08 11:08:13, hacktest Du folgendes herunter:

Look into cURL http://php.net/curl


I know curl but I do not know, HOW to send the XML stuff.

The XML code is generated using a temp file for logging, which  mean,  I
can see any changes on the system...

Thanks, Greetings and nice Day/Evening
 Michelle Konzack



It is data, you send it in the data section of a post.  Typically you 
must also assign it to a variable as you would any other value that you 
are submitting.


What you should do is capture (using Firefox and viewing the headers) 
the communication that your browser would perform when submitting the 
data via FireFox.  Once you have that, you will then see how the data 
needs to be associated.


Sending post data via curl is a matter of formatting the data right and 
inserting it into the curl request.


--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php