Git + Eclipse + Php

The basic steps are: Install EGit Import Git project Create a new PHP project, based on existing code (ie, your Git clone)   1. Install EGit In the Help menu, go to Install New Software Select your main Update Site from the “Work with” drop-down menu (usually starts with http://download.eclipse.org/releases/ ) Where it says “type filter text”, … Leggi tutto

Install PostGreSql

In this exercise, we’ll go thru installing PostgreSQL 9.3 on a CentOS 6 64-bit box. We’ll cover upgrading in a later article. For the rest of this article, we’ll go over configuring yum to use the PostgreSQL PGDG Yum repository found at http://yum.postgresql.org , which has the latest and greatest of 9.3. It’s been a … Leggi tutto

Virgolette o apici? PHP

C’è una differenza fondamentale tra i due tipi di virgolette e, sul quando si dovrebbe usare l’una piuttosto che l’altra. In PHP, i valori racchiusi tra apici singoli (‘) saranno trattati come letterali, mentre quelli racchiusi tra doppi apici (“) saranno interpretati.

Cambiare la password di root in MySQL

Come cambiare la password di root di MySql? Sarà sufficiente eseguire dal terminale il comando: mysqladmin -u root password   Oppure mysql -u root Dopodiché, sempre dalla shell di MySQL, dovremo digitare: mysql> use mysql; mysql> UPDATE user SET Password = PASSWORD(’newpwd’) WHERE User = ‘root’; mysql> FLUSH PRIVILEGES;     Oppure mysql -u root … Leggi tutto

cURL e WAMP (xamp) e protocollo ssl

Mi è capitato, dovendo installare zen-cart che il gestionale e-commerce mi sputasse un errore proprio sul certificato ssl e cURL. Ecco come ho risolto! Ovviamente se state usando WAMP avete un server locale sul vostro pc quindi vi basterà modificare il file di configurazione php.ini che trovate in C:\wamp\bin\php\[versione php]\php.ini, cercate la stringa: 1 ;extension=php_curl.dll … Leggi tutto

Assegnare stili ad una tabella

Le tabelle, se opportunamente usate, sono uno strumento utilissimo per contenere e visualizzare dati. Una tabella è composta da 3 tag/elementi fondamentali: table tr td Oltre ad essi, ci sono alcuni tag opzionali che perè è consigliabile utilizzare, soprattutto per migliorare l’usabilità e l’accessibilità della tabella: thead tbody th caption Esempio: <table> <caption>Table Caption</caption> <thead> <tr><th>Header</th><th>Header</th><th>Header</th></tr> … Leggi tutto