$cnx= odbc_connect(dsn_name,””,””); if( ! $cnx ) { //call error handler //exit } //query column names without content //note, in my
Tag: PHP
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
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,
Async AJAX and PHP session
Javascript is single threaded. AJAX allows asynchronous calls. From http://stackoverflow.com/questions/6903318/multiple-ajax-requests-delay-each-other/6933294#6933294 If you use sessions in the AJAX handling functions, you will run
PHP 5 File Upload and Unzip
Good file upload example: http://www.w3schools.com/php/php_file_upload.asp Use ZipArchive to unzip uploaded zip file. See this link: http://stackoverflow.com/questions/8889025/unzip-a-file-with-php
USFM Tags Rendering
A while ago, I’ve ported media wiki plugin rending USFM Tags to Dokuwiki. The source code is HERE. How to
My PHP Cheat Sheet
General Info phpinfo() will give version and extension support info php error log in xampp is in C:\xampp\php\logs\php_error_log or check for