por Anselmo Battisti | fev 19, 2019 | Joomla, PHP
Joomla is dead, all we know it! But eventually you will need revisit some old site made in Joomla, so, if you are struggling about how to send an email in joomla here you will find the solution here! # Invoke JMail Class $mailer = JFactory::getMailer(); # Set sender...
por Anselmo Battisti | jan 28, 2017 | Linux, PHP
By default after installation of php7 the display_erros is setting to off. How to modifi it in php.ini configuration? If you are using linux probably in /etc/php/7.0/apache2/php.ini (if you are using php directly from terminal you need to change...
por Battisti | jul 16, 2012 | Joomla
Para colocar um arquivo .bat para download no phoca é necessário incluir o mime type do mesmo dentro da lista de tipos permitidos para Downalods, para isso siga os passos abaixo: 1 – Acesse o phocadownload 2 – Clique em opções 3 – Geral 4 –...
por Battisti | fev 28, 2011 | PHP
O nome já diz tudo, como trazer alguma coisa em json vinda do php com o htmlentities $(document).ready(function(){ // faz uma chamada em ajax para preencher os dados da pessoa var url = “urldosistema”; $.getJSON(url, function(json) {...
por Anselmo Battisti | mar 13, 2010 | PHP
Essa é uma das primeiras perguntas que alguém faz quando começa a utilizar a API de mapas do google. Bom no meu caso eu queria saber isso NÃO através de JS e sim via PHP! SE VOCÊ QUER SABER QUAL A LATITUDE DE UM ENDEREÇO CLIQUE AQUI. SE FOR PROGRAMADOR CONTINUE LENDO...
por Anselmo Battisti | mar 4, 2010 | PHP
Mexer com XML é chato, no PHP é pior ainda! Eu prefiro muito mais um vetorzinho, então como converter aquele XML monstro em array? Modo de uso $aux = new xml2array($string_xml); $cores = $aux->getResult(); Referência Este cara...