Monthly Archives: February 2012

How to run the shell or bash scripts from php?

I have a bash script that I want to be run from php using a passthru function. if you don’t need any output you can use shell_exec or exec without escapeshellcmd function $command=’/bin/bash /copy_images.sh ‘; $escaped_command = escapeshellcmd($command); passthru($escaped_command, $output); … Continue reading

Posted in Debian&Ubuntu, Technologies | Tagged , | Comments Off on How to run the shell or bash scripts from php?

Integrating Foreign Trained Professionals

Lionel Laroche Lecture: Networking Canadian Style – Integrating Foreign Trained Professionals (2008) Course Description   This conference is for Internationally Educated Professionals (IEPs). It is meant to help you. In particular, it is meant to give you an opportunity to … Continue reading

Posted in Cross Cultural Management | Comments Off on Integrating Foreign Trained Professionals

How to share CakePHP 2.1 core for multiple apps?

CakePHP 2.1 ¬†allows you to use one set of core files while maintaining multiple applications. Make sure the host is pointing to the correct directory like /var/www/Sites/app/webroot/. Verify mod_rewrite is in fact on. Enable mod_rewrite with: a2enmod rewrite. Set up … Continue reading

Posted in cakePHP 2.1 | Tagged , , , | Comments Off on How to share CakePHP 2.1 core for multiple apps?