Jump to content

Arquetipo

Novato
  • Posts

    2
  • Joined

  • Last visited

Información Personal

  • Pais
    Chile
  • Genero
    Hombre

Arquetipo's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter Rare
  • One Month Later Rare
  • One Year In Rare
  • Week One Done Rare

Recent Badges

0

Reputation

  1. buenas, quisiera haceles una consulta, estoy pasando las aplicaciones de un portal a la versión 7 de php, pero tengo problemas con la libreria de nusoap. ya que hay varias lineas que dan error dado que hay funciones con los mismos nombres de las clases y eso queda obsoleto en la versión 7 ej: class nusoap_base { .. .. .. function nusoap_base() { $this->debugLevel = $GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel']; } dando advertencia y error_log [12-Oct-2021 18:14:07 ] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_base has a deprecated constructor in /home/lib/nusoap.php on line 85 intente cambiar las funciones a __construct, pero nusoap dejan de funcionar. el cambio que hice fue el siguiente: class nusoap_base { .. .. .. function __construct() { $this->debugLevel = $GLOBALS['_transient']['static']['nusoap_base']['globalDebugLevel']; } alguien sabrá que cambio habría que hacer para que funcione en versión 7? de antemano, Muchas Gracias.
  2. durante mucho tiempo he enviado los archivos a sii mediante CURL en php. pero al actualizar el servidor ya no funciona (php 5.6), asumo que es por que estan obsoletas. Este es el fuente que uso:_______________________________________________________________ $data = [ 'rutSender' => $this->rutEnvia[0], 'dvSender' => $this->rutEnvia[1], 'rutCompany' => $this->rutEmpresa[0], 'dvCompany' => $this->rutEmpresa[1], 'archivo' => $this-> curl_file_create( $this->fileXML, 'application/xml', basename($this->fileXML) ), ]; $curl = curl_init(); if($this->METHOD=="POST"): curl_setopt($curl, CURLOPT_POST, true); endif; curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_HTTPHEADER, $this->headers); curl_setopt($curl, CURLOPT_URL, $this->URL); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); // for ($i=0; $i<$retry; $i++) { $response .= curl_exec($curl); $this->RESPONSE = $response; if ($response and $response!='Error 500') break; } _____________________________________________________________debido a esto todas las respuestas entregan el siguiente error : <RECEPCIONDTE> <RUTSENDER>14734627-6</RUTSENDER> <RUTCOMPANY>0-0</RUTCOMPANY> <FILE></FILE> <TIMESTAMP>2019-01-30 15:33:20</TIMESTAMP> <STATUS>7</STATUS> <DETAIL> <ERROR>CHR-00004: no se encontro envio(XML)</ERROR> </DETAIL> ____________________________________________________________ Agradeceria su ayuda. T_T
×
×
  • Create New...