Installing and Configuring Install the plugin called externaldb , then make sure you enable it! In Plugin Manager, configure your external database details for the database(s) you need. DSN: Your name for the database to be used later on Hostname: Host where the MySQL server is Port Number: Defaults to 3306, but can change if needed Username / Password : Authentication details for the database Database Name: Name of the MySQL database to use Implementing The following code is a solution to using external databases. There is no way of using this without modifying some code. That out of the way, here's how to use it in that code. You can use Jumi module to insert PHP code in your article in joomla page. ExternalDB simply creates a new jDatabase object with your given connection details - nothing clever but simple to maintain connection details. Here's a sample of code from one of our components... // Create new ExternalDB instance, using the details tha...
Qui di seguito riporto una breve espressione regolare per la verifica del C.F. inserito dall’utente mediante apposito form: ^[a-zA-Z]{6}[0-9]{2}[abcdehlmprstABCDEHLMPRST]{1}[0-9]{2}([a-zA-Z]{1}[0-9]{3})[a-zA-Z]{1}$ Tra le tonde vi è l'identificativo del comune (codice catastale). Le lettere elencate (abcd ecc.) indicano il mese di nascita mentre l'ultima lettera è quella di controllo.
Note: This is tested and proven to work on Debian Squeeze (stable) If you are a web-admin or a PHP developer hosting on your own servers you might have found out that PHP mail() function does not work out of the box in Debian unless you have installed Exim (default MTA for Debian Squeeze), sendmail or some other MTA. Most of the time this is OK, but when you really don't want to mix a mailserver with your webserver this is going to be a problem. In php.ini file there is a SMTP configuration value that you can set which is misleading. Even though you set the SMTP value, PHP mail() function will not connect directly to the SMTP server and relay emails rather it depends heavily on sendmail program which can be set via the sendmail_path configuration value. In conclusion you'll have to have a working sendmail program if you want to use PHP mail() function. So rather than using a complete MTA just to relay emails to your mailserver you can use SSMTP which is a send-only send...
Commenti