Category: Web Development

Adding a Self Signed Certificate to Trusted Certificate on Linux

Naveen Nayak January 14, 2016 No Comments Linux, Web Development , ,

Some times, when we generate self signed certificates, some libraries need it to be a part of the operating systems trusted certificates I am doing this on CentOS 7 and for openSSL This will only work for apps/libraries that use OpenSSLs trusted certificate list I already have my self signed certificate in /etc/pki/tls/certs/my-self-signed-cert.crt cp /etc/pki/tls/certs/devinviteright.crt […]

PHP 5.6 and Self Signed Certificates for Soap, file_get_contents

Naveen Nayak November 18, 2015 No Comments LAMP, Web Development ,

Operating System: CentOS 7 PHP: 5.6 This is only for local machine and local development – use at your own risk I a using a self signed SSL certificate on my local development machine and many functions in PHP refuse to work with self signed certificates. Some of the functions are file_get_contents() fopen() SoapClient() my […]

Ajax File Upload without iframe

Naveen Nayak February 10, 2015 No Comments Jquery, LAMP, Web Development

The Invisible I-frame File Upload method works in almost all browsers. This post explains using FormData to submit forms that is supported by most new browsers. <? if( isset($_POST) && ! empty($_POST) ) { $file = $_FILES[‘myfile’]; $output =”Response From the Server\n”; $output .= “myInput = “.$_POST[‘myInput’]; $output .= “\n”.’File Name: ‘.$file[‘name’]; $output .= “\n”.’File […]

DataTables with Twitter Bootstrap FixedColumns not working

Naveen Nayak July 11, 2013 No Comments Tips and Tricks, Web Development

DataTables integrates very well with Twitter Bootstrap and the results look amazing. I was tinkering with the two and ran into a problem when using the FixedColumns plugin. Whenever I used bootstrap.css, the horizontal scroll bar would disappear. After searching around for a long time, found that bootstrap table property of max-width is the culprit. So just […]

Simple PHP encrypt and decrypt

Naveen Nayak March 12, 2013 71 Comments Web Development

You need to have openssl encrypt installed and running. Check this thread if you dont have it already http://stackoverflow.com/questions/11525524/why-cant-i-use-openssl-encrypt /** * simple method to encrypt or decrypt a plain text string * initialization vector(IV) has to be the same when encrypting and decrypting * PHP 5.4.9 ( check your PHP version for function definition changes […]

Page 1 of 2