• support[@]kurinchilion.com
  • +1 (888) 666-4252

RFC 3339 date format in RSS Feeds

Aug 12, 2012 - by kurinchilamp 382 Views
RSS Feeds use RFC 3339 date format in their XML/Atom feeds. Date formats have often caused confusion in the development, interoperability and maintenance of software applications. To improve the consistency in use of Date and Time, RFC 3339 came into existence which uses Coordinated Universal Time (UTC). For PHP versions < 5.2, $dateRFC = "2008-12-01T13:30:00.000-04:00"; $myDate = date('d.m.Y', strtotime($dateRFC)); // 01.12.2008 For PHP versions >= 5.2, $dateRFC = "2008-12-01T13:30:00.000-04:00"; $myDate = new DateTime($dateRFC); $dateStr = date('d.m.Y', strtotime($dateRFC)); // 01.12.2008 Read: IETF: RFC 3339
Continue Reading

PRG – Post Redirect Get design pattern to redirect after Post

Jul 02, 2012 - by kurinchilamp 375 Views
Post Redirect Get (PRG) is one of the design patterns used in web applications to prevent double post or duplicate form submissions which often happens with a page refresh or reload. When a form is submitted to the server with information, the server responds back with HTML content. When this content is directly displayed on the browser and when the user refreshes the page, the form gets submitted twice. As the content is a response to POST it cannot be bookmarked as well. To avoid these problems, applications use PRG design pattern which will redirect users to a page instead of displaying the POST response. More information on the PRG design pattern is available on Wikipedia
Continue Reading

How to Send Emails from your local WAMP XAMPP server in windows?

Jun 15, 2012 - by kurinchilamp 406 Views
... a question that raises in the mind of programmers developing applications in their local development environments. This can be achieved by making the following modifications. Step (i) Install the WAMP / XAMPP server in your windows machine. After this install you will be able to access sites created on the localhost with URL http://localhost Step (ii) Download and extract the send mail application for Windows from http://glob.com.au/sendmail/. Remember the path where you have extracted sendmail. For e.g. c:\wamp\sendmail Step (iii) Edit sendmail.ini within c:\wamp\sendmail. This ini file has enough documentation explaining how the configuration changes should happen on the file. (more…)
Continue Reading

How to check if linux server can send out email via command line?

Dec 15, 2011 - by kurinchilamp 278 Views
Method 1: $ mail -s "Subject: Test email from linux server" info@test.com Press the "Return" key Enter the body part of the email Press ctrl + D Enter a CC email if you would like (e.g. info2@test.com) Press ctrl + D again Then check the mail box to see if the mail has arrived. (more…)
Continue Reading

Reverse DNS and Junk Email

Dec 12, 2011 - by kurinchilamp 292 Views
Many email servers depend on Reverse DNS in order to identify if the mail is legit or spam. For the Reverse DNS to work correctly, two points need to be addressed a) Look for IP address of the mail server should return its name. PTR record should be set for this b) Reverse look on the name should return back the IP address For example, $ dig -x 217.83.122.34 ;; ANSWER SECTION: 34.122.83.217.in-addr.arpa. 66372 IN PTR mail.example.com. $ dig mail.example.com ;; ANSWER SECTION: mail.example.com. 900 IN A 217.83.122.34 Check the IP address that is getting resolved matches the name that is getting returned back.
Continue Reading

Linux: How to upgrade PHP from 5.1 to 5.2 in CentOS5?

Nov 15, 2011 - by kurinchilamp 368 Views
First Check PHP version that is currently installed $ php -version Check Linux Version $ cat /etc/*-release (or redhat-release) Create a repo file with the content given below. As you can note, we are looking for package upgrade related to php only. (more…)
Continue Reading

TECHNOLOGY DEV STACK

Following are some of the technologies that we use to build and maintain solutions for our clients.