PHP 5: Mass Virtual Hosting points $_SERVER[‘DOCUMENT_ROOT’] to wrong folder

When I set up mass virtual hosting for my servers, it seems PHP won’t get the right $_SERVER[‘DOCUMENT_ROOT’] Here’s the solution I found: 1.Edit your php.ini (the file location depends on  how you have PHP setup) 2. Edit this section ; Automatically add files before PHP document. ; http://php.net/auto-prepend-file auto_prepend_file… Continue reading

Great way to integrate SwiftMailer and Kohana 3

Just found this post: http://www.flynsarmy.com/2010/06/integrating-swift-mailer-into-kohana-3/ by Flynsarmy showing the simplest way to integrate SwiftMailer and Kohana 3 Create the following files/folders: /modules/swiftmailer /modules/swiftmailer/init.php /modules/swiftmailer/classes Inside /modules/swiftmailer/classes/ drop the official latest build of Swift Mailer. Enter the following into init.php. <?php require Kohana::find_file(‘classes’, ‘Swift-4.0.6/lib/swift_required’); There. Wasn’t that easy? Remember to enable… Continue reading

Habilitar acesso IMAP num email no Google Apps

01-Acesse http://mail.<SEU_DOMINIO> Por exemplo http://mail.exemplo.com.br 02-Digite o nome de usuário (a parte do endereço de email antes do @ ) e a senha. 03-Dependendo das configurações de seu navegador, você terá a opção de lembrar a senha digitada. 04-Na primeira vez que você acessar sua conta, será necessário digitar um… Continue reading

Configuração do Thunderbird 3 usando Google Apps

01-Clique em Ferramentas (Tools) e escolha Account Settings (Configurações de Conta) 02-Clique em “Ações” (Account Actions) e selecione “Adicionar conta de email” (Add Mail Account) 03-Na janela que se abre, preencha com seu nome, endereço de email e senha. 04-Ao clicar “Continue”, Thunderbird irá testar a conexão com o servidor… Continue reading

Trying my GSA-T20L optical drive with MCE usb 2.0 enclosure for the superdrive

After purchasing and using the MCE optibay on my white macbook 13″, I got really curious as it that would work for any regular laptop PC…. Having not asked any of the manufacturers involved, I put my brain to work and wouldn’t make any sense for Apple to create a… Continue reading