$cnx= odbc_connect(dsn_name,””,””); if( ! $cnx ) { //call error handler //exit } //query column names without content //note, in my
Category: Web
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 –
Prevent auto page refresh after a form submit
I have a simple HTML form such as follows: Catalog: I want to capture and process the submit event of
Debug Browsers
Here’s a good website for how to invoke javascript debugger in different browsers: http://debugbrowser.com
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
See cookies in Chrome
CTRL-SHIFT-J to bring on the javascript debugger Choose Resources tab and click on cookie on the left side bar.
Inspect cookies in detail in Safari 8
Show Develop menu item on the menu bar by selecting Safari->Preferences->Show Develop menu in menu bar. Go to Develop->Show Web
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