[PHP] ZCE Question

2009-08-08 Thread Augusto Flavio
Has someone an clue about this zce question: The following is a common XML structure used in service oriented architectures, what does it represent? ?xml version=1.0? methodCall methodNamemyMethod/methodName params param valuestringHI!/string/value /param /params /methodCall

[PHP] ZCE question - duplicate object

2009-08-12 Thread Augusto Flavio
HI everyone, i'm studying for the zce exam and i found a blog that try to answer some questions covered in the exam. I found one that i do not agree. Question: What is wrong with the following code? function duplicate($obj) { $newObj = $obj; return $newObj; } $a = new MyClass(); $a_copy =

[PHP] security question of ZCE exam

2009-08-24 Thread Augusto Flavio
Hi all, i'm discutting with my friend about this question for 30 min and i do not agree with he. Here is the question: Why is it important from a security perspective to never display PHP error messages directly to the end user, yet always log them? Answers: (choose 2) Error messages

[PHP] security/deployment issue

2009-10-11 Thread Augusto Flavio
Hi everybody, i have a doubt about my security and deployment methods. Today i manage several projects and these projects are versioned with subversion. My environment is something like this: 1. The developer make some update in the source code of a project. (from your IDE, generally netbeans)

Re: [PHP] security/deployment issue

2009-10-16 Thread Augusto Flavio
Humm.. thanks for the replies. But i have another problem about rsync again. When i deploy a project using the rsync the permissions of all home directory is changed. i tried to use the parameter -p -o -g (preserve permissions, owner and group): I dont know but the rsync doesnt preserve the

[PHP] remove namespace from xml

2009-12-02 Thread Augusto Flavio
Hi all, i'm trying to connect to a SOAP Server but i'm having a problem. Look the xml that i need send to the server: // THIS IS THE XML CORRECT THAT NEED BE SENT TO THE SERVER ?xml version=1.0 encoding=utf-8? soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

[PHP] php path and relink

2010-05-10 Thread Augusto Flavio
Hi, I have a shell account with limited access. The php cli version installated is 4.4.6. But the server have also the php 5.2.6. I checked the php version and i got this: $ php -v PHP 4.4.9 (cli) (built: Sep 17 2008 11:04:03) . But i want that the php command be a link to the php5. How

Re: [PHP] PHP framework

2010-05-14 Thread Augusto Flavio
You can use the symfony. It's a great framework. Bye. Augusto Morais

[PHP] communication protocol

2010-07-06 Thread Augusto Flavio
Hi List, I'm looking for a chat support likes the livezilla. The livezilla is a great tool but doesn't have language supports to another language instead english and german (operator side). Then I thought that a good option would be develop my own chat support. A great solution is build the

Re: [PHP] communication protocol

2010-07-06 Thread Augusto Flavio
Hi again, I'm thinking about in how to do the communication between web chat in browser client, the server and the operator desktop client. I'm thinking in web service likes wsdl. Is a good option? Thanks Augusto Morais

[PHP] interface name file

2010-07-07 Thread Augusto Flavio
Hi, I want to know which file name is appropriate for a interface. Today, for a PHP class I use: NAME.class.php. What about a interface? Is there a definition about it ? Thanks Augusto Morais

[PHP] SOAPParam - Does it possible?

2010-07-09 Thread Augusto Flavio
Hi, I'm creating a wsdl server but I have one doubt about the soapparam::soapparam(). I want to know how to return several parameters using the soapparam::soapparam(). I'm doing this: class MyApi implements API { public function Send($param) { $resp = array('resposta' = 'works',

[PHP] SOAP ERROR - Encoding

2010-07-22 Thread Augusto Flavio
Hi guys, I created a simple wsdl web service. Everything works fine, but when I fill the fields with accents and send the soap request, the PHP returns me an error: *Fatal error*: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: string 'ol\xe1...' is not a valid utf-8 string in

[PHP] SOAP ERROR - Encoding

2010-07-23 Thread Augusto Flavio
Hi guys, I created a simple wsdl web service. Everything works fine, but when I fill the fields with accents and send the soap request, the PHP returns me an error: Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: string 'ol\xe1...' is not a valid utf-8 string in

[PHP] Re: Webservice Wsdl - to do or not to do?

2010-12-06 Thread Augusto Flavio
soap:body use=literal / /wsdl:output /wsdl:operation Bye for all. Augusto Morais 2010/12/6 Augusto Flavio afla...@gmail.com Hi, I'm wrting a WSDL webservice in php and I have a doubt about one thing. I created a method(or operation) that sends an invitation to the user