[PHP] OpenSSL: how connect?
Hello, In PHP, how is the right way to do a connection using OpenSSL like: openssl s_client -tls1 -connect beta.registro.br:700 -cert client.pem Thanks in advance, Evandro
[PHP] EPP server - TLS conection
Hello, I'm trying to connect in a EPP server (TLS), but I'm getting the message: Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in testepp.php on line 9 My test code is: ?php ini_set(display_errors,1); $fc = stream_context_create(array( 'tls'=array( 'allow_self_signed'='TRUE', 'local_cert'='client.pem' ) )); $fp = stream_socket_client(tls://beta.registro.br:700 ,$errno,$errstr,30,STREAM_CLIENT_CONNECT,$fc); if (!$fp) { echo $errstr ($errno)br /\n; } else { echo connected; } ? Thanks for any help, []s
[PHP] Re: PHP and XML-RPC on MS Windows
Erich, Yes, it's possible to do the same. What XML-RPC implementation to PHP are you using? Evandro Sestrem Erich Kolb [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] What do I have to do in order to use the XML-RPC functionality on a Windows based machine? It was fairly easy to drop the .inc files into the PHP include directory on a Linux box, but I am not sure if it is possible to do the same on a Windows machine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] What XML-RPC implementation should I use?
Hi, What XML-RPC implementation to PHP should I use? I'm using the implementation from Useful (http://phpxmlrpc.sourceforge.net), but I'm having troubles. When the client receives a response from my server and this response is a array of struct with more than 1 item, occurs a problem. When the response array of struct has just 1 item it works fine. Look what my server is sending like response (array of struct with 2 items), this response raises a error in my client. The struct has 3 members (codigo, cidade, estado): ?xml version=1.0 encoding=ISO-8859-1? methodResponse params param value struct member namecidades/name value array data value struct member namecodigo/name valueint2/int/value /member member namecidade/name valuestringBlumenau/string/value /member member nameestado/name valuestringSC/string/value /member /struct /value value struct member namecodigo/name valueint3/int/value /member member namecidade/name valuestringTimbó/string/value /member member nameestado/name valuestringSC/string/value /member /struct /value /data /array /value /member /struct /value /param /params /methodResponse This response works fine (just 1 item in the array): ?xml version=1.0 encoding=ISO-8859-1? params param value struct member namecidades/name value array data value struct member namecodigo/name valueint2/int/value /member member namecidade/name valuestringBlumenau/string/value /member member nameestado/name valuestringSC/string/value /member /struct /value /data /array /value /member /struct /value /param /params Thanks for any help. Evandro Sestrem evandro at blueone dot com dot br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XML-RPC problem
Hi, I'm using the XML-RPC implementation from Useful (http://phpxmlrpc.sourceforge.net) to do my client in PHP. When this client receives a response from my server and this response is a array of struct with more than 1 item, occurs a problem. When the response array of struct has just 1 item it works fine. Look what my server is sending like response (array of struct with 2 items), this response raises a error in my client. The struct has 3 members (codigo, cidade, estado): ?xml version=1.0 encoding=ISO-8859-1? methodResponse params param value struct member namecidades/name value array data value struct member namecodigo/name valueint2/int/value /member member namecidade/name valuestringBlumenau/string/value /member member nameestado/name valuestringSC/string/value /member /struct /value value struct member namecodigo/name valueint3/int/value /member member namecidade/name valuestringTimbó/string/value /member member nameestado/name valuestringSC/string/value /member /struct /value /data /array /value /member /struct /value /param /params /methodResponse This response works fine (just 1 item in the array): ?xml version=1.0 encoding=ISO-8859-1? params param value struct member namecidades/name value array data value struct member namecodigo/name valueint2/int/value /member member namecidade/name valuestringBlumenau/string/value /member member nameestado/name valuestringSC/string/value /member /struct /value /data /array /value /member /struct /value /param /params Thanks for any help. Evandro Sestrem evandro at blueone dot com dot br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Copy question
Hi, Can I use the copy function to copy a file to a remote computer? Ex: // copy a file from my computer to a remote computer copy('c:\teste.txt', '200.xxx.xx.xx/temp/teste.txt') How can I do it? Thanks in advance, Evandro Sestrem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Temp dir
Sorry if is a newbie question... but how I discover where is the php temp dir? Thanks!! Evandro Sestrem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Temp dir
Discover in my code.. Ex: I want create a file in the php temp dir. $tempdir = getPHPTempDir(); fopen($tempdir . test.txt, w+); Evandro Sestrem [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Sorry if is a newbie question... but how I discover where is the php temp dir? Thanks!! Evandro Sestrem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array - change elements position
Hello, Has a automatic way to change the position from 2 elements of a array without use a aux variable? Like that: A = (1,3,2) -- A = (1, 2, 3) Thanks, Evandro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: array - change elements position
My example wasn't good. I have a array of objects and want change its positions. $array = (obj2, obj1, obj3) -- $array = (obj1, obj2, obj3). Like TStringList.Exchange in Delphi. Sort() don't work in this case, because I want sort based in a attribute of the object. Evandro Evandro Sestrem [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Has a automatic way to change the position from 2 elements of a array without use a aux variable? Like that: A = (1,3,2) -- A = (1, 2, 3) Thanks, Evandro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: array - change elements position
This is what I was looking for! Thank you very much. Miguel Cruz [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 25 Apr 2002, Evandro Sestrem wrote: My example wasn't good. I have a array of objects and want change its positions. $array = (obj2, obj1, obj3) -- $array = (obj1, obj2, obj3). Like TStringList.Exchange in Delphi. Sort() don't work in this case, because I want sort based in a attribute of the object. Why not try usort(). You can supply any sorting scheme you want. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php