Drupal single sign across sub domains
http://www.lullabot.com/articles/drupal-single-sign-across-sub-domains
With the multitude of single sign-on modules out there for Drupal, it's easy to miss the fact that Drupal has a built-in single sign on mechanism already. No modules, no configuration, just 20 easy lines of PHP in your site's settings.php file. This solution works for a lot of clients, but the set of requirements is pretty specific as to when you can use this approach. This includes:
The sites sharing a single log-in must be on the same domain. For example:
http://www.example.com
Setting-multi-site-drupal-6-installation-shared-databases-and-single-sign
http://thedrupalblog.com/setting-multi-site-drupal-6-installation-shared...
In this blog entry, I'll explain how I setup a multi-site Drupal 6 installation with shared databases and single sign-on. This will enable you to store your users (and other desired tables) in a separate database, and share them across multiple sites.
Before installing Drupal I created 3 databases, added 2 mysql users, and granted permissions. Both mysql users will have access to the shared database which will contain the shared tables:
$ mysql
# create new databases:
Adding CRON-Jobs under a Windows Server Environment
CRON-Jobs for Drupal on a Windows platform without the annoying popups of a browser!
Download an install wget for windows from the SourceForge website with this link :
http://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/wget-1.11.4-1-setup.exe/download
In the environment path of your windows-cmd-line thingy set the path to the installation of wget-for-windows( usually something like : C:\Program Files\GnuWin32.
If you want to run a manually CRON-Job of your website you can do something like this in the cmd-line-prompt:
GIT - Users Manual ( The Short Version )
Installation
Windows-Client:
Here is the main website of the Git-repo where you can find the binairies and the source code for the real h4xx0r5 amongst us: http://code.google.com/p/msysgit/
Download the latest version of Git using the following website: http://code.google.com/p/msysgit/downloads/list
After GIT has been installed you will need a SSH-key!
This is for securing your connection between you and the server.
Creating this key is created by typing this command:
ssh-keygen -C "username@email.com" -t rsa(with your own email address, of course)
recursive delete dir
if (@is_dir($directory)) {
$handle = @opendir($directory);
while (false !== ($file = readdir($handle))) {
@unlink($directory.'/'.$file);
}
@rmdir($directory);
}