Error Handling

Editor on June 29, 2012

In this tutorial, I will provide code which will send files to an FTP Server with cURL using PHP. cURL has many advantages of standard FTP, one of which is better control over error handling.   Below is complete code to send a single file to a remote FTP server. The connection time-out has been […]

Continue reading about FTP files using cURL in PHP

Editor on June 27, 2012

In this quick example, I will provide code which will do the following:   Define database connection CONSTANTS Connection to Oracle with a┬ápermanent connection Create an INSERT statement with bind variables and empty blobs Create new blob descriptor pointers Bind the INSERT statement (non-blob) variables to PHP variables Bind the INSERT statement blob variables to […]

Continue reading about Oracle Blob Insert with PHP using Bind Variables

Editor on June 27, 2012

In this quick example, I will provide code which will do the following:   Define database connection CONSTANTS Connection to Oracle with a┬ápermanent connection Create an INSERT statement with bind variables Bind the INSERT statement variables to PHP variables Execute the Oracle statement checking for any Oracle errors Echo out any Oracle errors found during […]

Continue reading about Oracle Insert with PHP using Bind Variables

Editor on June 26, 2012

On this quick lesson, I’m going to provide a way for you to capture PHP errors and write custom logs.   PHP can already create error logs for you, but you cannot control the details of them. It may be handy to capture some additional details.   When a PHP script ends, you can run […]

Continue reading about Creating custom error logs