[PHP] Method C14N from DOM

2011-10-03 Thread QI.VOLMAR QI
I've got this error: *"Fatal error*: Call to undefined method DOMElement::C14N() in..." My local server has the version 2.7.6 of libxml, and works fine. The development server has the version 2.6.26 DOM/XML API Version 20031129. This may be the problem? Or there's a dependency lost? or something l

[PHP] Oi , Portas/ Hello, Ports

2011-10-10 Thread QI.VOLMAR QI
Alguem sabe se, e como eu posso trabalhar com as portas do computador com php no windows? Do someone know if, and how, I could work with Computer logical ports with PHP on Windows? ex: shell_exec('cat /dev/usbmon0 | hexdump'); <- Linux

[PHP] Problem with base64_encode and openssl_verify

2011-10-11 Thread QI.VOLMAR QI
openssl_sign($dados, $signature, $pkeyid)); // return 1 $signatureValue = base64_encode($signature); $funcionam = base64_decode($dados_que_nao); $pubKey = file_get_contents('protected/models/nfe/certs/cert.pem'); openssl_verify($funcionam,$signature, $pubKey)); // return 0; if I remove the de b

[PHP] C14

2011-10-18 Thread QI.VOLMAR QI
Como faço C14N com o PHP antes da versão 5.2? How I can make C14N with php before version 5.2?

Re: [PHP] C14

2011-10-18 Thread QI.VOLMAR QI
I already do that. I alos instaled the libxml2 :/ 2011/10/18 Daniel Brown > On Tue, Oct 18, 2011 at 18:12, QI.VOLMAR QI wrote: > > Doesn't work. My server is a 5.1.6 > > Keep replies on the list please. > >Just because that's your version doesn't m

[PHP] Object size

2011-10-28 Thread QI.VOLMAR QI
Is there a function or method that calculate the object size in PHP?. Or maybe that calculates a xml buffer of a file? I need to check a size of a file, and if it's size is bigger than 500kb. I will need to make another file to the subsequent content. Any help will serve. Tks, Volmar -- PHP Gene

[PHP] pcre little problem

2011-11-04 Thread QI.VOLMAR QI
i have this part of code that works with DOMDocument: public function translateNFeXML(NFE $nfe_factory) { $inf_adic = $nfe_factory->createElement('infAdic'); if ($this->inf_ad_fisco) { $inf_adic_fisco = $nfe_factory->createElement('infAdicFisco', $this->inf_ad_fisco);

Re: [PHP] pcre little problem

2011-11-08 Thread QI.VOLMAR QI
I've got with preg_replace(). But I guess that filter_var could be used instead. Em 08/11/2011 08:46, "tamouse mailing lists" escreveu: > On Mon, Nov 7, 2011 at 5:54 AM, Richard Quadling > wrote: > > On 4 November 2011 16:52, QI.VOLMAR QI wrote: > > > &g

[PHP] Error in portuguese translation of substr_compare

2011-12-30 Thread QI.VOLMAR QI
I was read substr_compare description in portuguese language, an I asked myself to test it, so after several test, I found that its wrong. The text is in Portuguese: "Se length é igual ou maior que o comprimento de main_str e length é setado, substr_compare() imprime warning e retorna FA

[PHP] CURL -d

2012-03-26 Thread QI.VOLMAR QI
I have this lines: curl -H "Content-Type: application/json" -d "hello world" \ "http://api.pusherapp.com/apps/17331/channels/test_channel/events?"\ The option -d is for data. But How I can set it on the PHP CURL extension? I have found that if I set something like array('H

Re: [PHP] CURL -d

2012-03-26 Thread QI.VOLMAR QI
I know guess that it is a POST field, but the detail is on simulate the -d without a label. I've already looked at setopt man page, but nothing seems like what I need. 2012/3/26 Ashley Sheridan > ** > On Mon, 2012-03-26 at 09:45 -0600, QI.VOLMAR QI wrote: > >