Enable Openssl and cURL If you are using XAMPP, these utilities are already installed. Enable the following in xampp/php/php.ini in
Category: PHP
PHP SSH – Using phpseclib to SFTP
Phpseclib is a package of code that allows PHP programs to initiate actions, such as SFTP , using SSH. Here
PHP with Postgresql
If PHP is installed as part of XAMPP, it will work with MySQL/MariaDB with no additional change. However, to work
PHP ODBC Display Columns of a Table
$cnx= odbc_connect(dsn_name,””,””); if( ! $cnx ) { //call error handler //exit } //query column names without content //note, in my
PHP Execute A Program On Server
Here are two commands to execute a program located on the server: exec(“command”); or system(“command”); Command could be an executable
PHP Mail Log
Normally, if one sent an email, a copy of it will appear in the user’s sent box. However, if one
PHP Connection Handling
From php.net: Internally in PHP a connection status is maintained. There are 4 possible states: 0 – NORMAL 1 –
Enable PHP Email
This set up works for XAMPP on Windows version 5.6.11 using SMTP server on Bluehost. I am running on Windows
Slack api command auth.text by PHP curl
Issuing auth.test method using PHP curl. <?php $token= //your login token $url = ‘https://slack.com/api/auth.test’; $parameters = array(“token” => $token); if
Slack post a message by PHP curl
Step by step process to post a message to using PHP curl: Click on Team43. In the pop up box,