Skip to main content

Posts

Top 10 Open Source Web-Based Project Management Software

Project management software is not just for managing software based project. It can be used for variety of other tasks too. The web-based software must provide tools for planning, organizing and managing resources to achieve project goals and objectives. A web-based project management software can be accessed through an intranet or WAN / LAN using a web browser. You don't have to install any other software on the system. The software can be easy of use with access control features (multi-user). I use project management software for all of our projects (for e.g. building a new cluster farm) for issue / bug-tracking, calender, gantt charts, email notification and much more. Obviously I'm not the only user, the following open source software is used by some of the biggest research organizations and companies world wild. For example, NASA's Jet Propulsion Laboratory uses track software or open source project such as lighttpd / phpbb use redmine software to keep track of th...

PHP Send Email Using Authenticated SMTP Mail Server In Real Time

PHP has mail() function to send an email to users. However this mail() will not work: => If sendmail (or compatible binary) is not installed => If Apache Web server / Lighttpd running in chrooted jail => And your smtp server needs an authentication before sending an email => Or you just need to send email using PHP PEAR In all these cases you need to use PHP PEAR's Mail:: interface. It defines the interface for implementing mailers under the PEAR hierarchy, and provides supporting functions which are useful in multiple mailer backends. In this tip you will learn about how to send an e-mail directly to client smtp server in real time. PHP Pear's Mail.php is located in  /usr/share/pear/  directory. Following is sample code to send an email via authenticated smtp server. PHP send email using PHP SMTP mail Pear functions - Sample source code Following code is well commented, you need to make necessary changes as per your setup. <?php include ( ...

HTML Form submission technique via jQuery

Here's a technique I use often to provide an alternative method to HTML Form submission for JS Disabled Browsers. Here's a Basic HTML Form with its corresponding jQuery script:  ( **note: for sake of simplicity, I have placed the messageDiv on top of form **)  The messageDiv: <div id="messageDiv"><?php if( isset($_GET['msg']) ) {  echo $_GET['msg']; } ?></div> The form: <form name="addCustomerForm" id="addCustomerForm" method="post" enctype="application/x-www-form-urlencoded" action="somefile.php"> <p>Name: <br /> <input type="text" name="customerName" /> </p> <p> Address: <br /> <input type="text" name="customerAddress" /> </p> <p> <input type="submit" name="submit" value="Submit" /> <input type="reset" ...

Getting Lat and Lon from Address in Google Maps Using PHP

Recently, I am working on an application where I have to convert addresses to their corresponding Lat and Lon. So, I decided to write on how to get Latitude and Longitude in Google Maps using only PHP. To use the technique explained below, you need to have a  Google Maps Key . The idea is simple. Make a request to Google Maps server, and it will return an XML (or JSON). Then, parse the XML to get the Lat and Lon. I use DomDocument and DomXPath for processing it. Below I have used the address:  100 City Centre Dr., Mississauga, Ontario . 1. $key    =  "....." ;  // your Google Maps key 2.   3. $address   = urlencode( '100 City Centre Dr., Mississauga, ON' ); 4.   5. $url   =  ' http://maps.google.com/maps/geo?q= ' . $address . '&output=xml&oe=utf8&key=' . $key ; 6. $dom   =  new   DomDocument(); 7. $dom ->load( $url ); At this point, the XML is loaded into the $dom. Now, it...