Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Sending message to Slack Incoming Webhook using PHP

Slack is a popular work collaboration tool and it provides many features which help teams collaborate. It has one function which allows sending messages to channels from external source such as your own web service -- Incoming Webhook. This is extremely useful when want to monitor something and get notified when some event occurs and it doesn't require complicated setup.To send messages using Incoming Webhook, a service URL has to be generated on Slack and then the message can be posted to this URL and it will be posted on your team channel. After clicking "Add Configuration", the process...

25,762 0       PHP CURL SLACK INCOMING WEBHOOK


  Resolving error "SSL certificate problem: self signed certificate in certificate chain"

In a PHP application, cURL is frequently used to make connection to remote server to request some resource. It can be used to transfer data with different protocols such as HTTP, HTTPS, FTP etc.While using cURL in PHP, someone may get an error with message similar to "SSL certificate problem: self signed certificate in certificate chain".This may happen when cURL tries to make a SSL connection server and the server returns a server certificate which is self-signed and it's not trusted by the client(in the client CA store). In this case, you may need to follow below steps to resolve this issue....

28,888 1       PHP SSL CURL TWILIO


  PHP Multithreading – Faking It

PHP doesn’t really support multi-threading per se but there are ways to do “fake” multithreading. Here’s one I saw in the PHPClasses.org newsletter – Multi-thread Simulation.Note that this class is intedend for use on a webserver, as opposed to running PHP scripts from a command line (or similar). Check the end of this post for some alternatives you can try if you’re using PHP as a stand-alone scripting language.Now, I’m going to be lazy and just copy the description of the class from the project page :)This class can emulate the execution of prog...

8,707 0       PHP MULTITHREADING POSSIBLE CURL FAKE SI