Category: LAMP

PHP Remote CLI Script Debugging with PHPStorm

Naveen Nayak February 9, 2016 No Comments LAMP, Tips and Tricks , , ,

PHPStorm is one of the best IDE’s to develop in PHP. I recently came across tons complex php cli scripts and needed a way to debug them. Follow this PHPStorm Docs post first to set up php storm and the server. Most important things to configure are Set up xdebug correctly on the remote server. Dont use […]

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 […]

PHP send text message

Naveen Nayak May 14, 2014 No Comments LAMP ,

/** * send a text message via email to a phone * a quick test is to open up gmail and put the phoneNumber@domainName * a list of domains can be found here http://www.venture-ware.com/kevin/web-development/email-to-sms/ * put some text in the Subject and Body and hit send. * If your number and domain is correct, you […]

Page 1 of 1