Apache and the URL-Encoded Forward Slash in Path Issue

The path part of a URI specifies the location of the file to retrieve under the document root of the web server.  Given the URI http://mywebsite.com/path/to/myfile.txt the path is /path/to/myfile.txt The forward slashes are the path delimiters indicating the directory hierarchy of myfile.txt.  Given the basic usage of Apache and paths on a webserver, there is [...]

Read more...

Comments (0)

Create SVN Repository from Existing Project

Initially creating a repository in SVN is a little clunky in that you start your project, then you create the repository from that project, but then you have to checkout the repository over that initial project so you can check in future updates. Also, if your project directory name differs from the repository directory name, [...]

Read more...

Comments (0)

Clear/Reset Default Form Fields Using jQuery

Many times forms are constructed with the label of a form element as the default value for that field. This is a way to label fields without text labels adjacent to the form element thus taking up minimal real estate. Forms of this nature are also coded so that when you click on the field [...]

Read more...

Comments (0)

Integrate with Port25′s PowerMTA SMTP Server’s Monitoring Interface Via HTTP

Port25′s PowerMTA SMTP Server PowerMTA is a high performance SMTP server used by many email marketing technology companies.  Not only does the server handle high volume of outgoing email, the server also provides various means of integration for email submission, data merging, and monitoring. The server provides a monitoring interface over HTTP.  Server administrators can [...]

Read more...

Comments (2)

Trigger Save As… Window for PDF Download

Most browsers are equipped to display PDFs. This means when a user clicks on a link to a PDF on a website, the browser will download and display it. PDFs, however, are intended to be downloaded and retained by the user for offline viewing or printing. It is possible, however, for anyone to save the [...]

Read more...

Comments (0)

Device Detection Plugin for WordPress

Firstly set-up your Wordpress environment by creating a new directory in the
Wordpress plugins directory, for our purposes we'll name it "theme_swapper"

Read more...

Comments (0)

Incorporate Insert On Duplicate Key Update Method in Zend_Db_Table

MySQL includes a clause for INSERT statements in which an UPDATE is executed if an existing primary or unique key is encountered on the update. The generate syntax for this statement is: INSERT INTO [table] ([columns]) VALUES ([values]) ON DUPLICATE KEY UPDATE [column updates]; The Zend_Db_Table_Abstract class may be extended to incorporate a method to [...]

Read more...

Comments (0)

Extend Zend_Db_Table with Replace() Method

The REPLACE statement is a handy MySQL addition to the SQL language. It is useful when you want to INSERT a new row or replace any existing row with the same primary key or unique index. In the event of a replace, the existing row is deleted and a new row inserted. If the table [...]

Read more...

Comments (2)

Disable PHP Execution in Certain Directories

In deploying a web PHP application, there may be instances where you need to disable PHP execution in certain places. This is especially helpful if your application accepts uploaded files which are placed under the document root. This way if a person happens to upload a PHP file, it will not be executed. Under Apache, [...]

Read more...

Comments (0)

Publish SPF Record to Increase Email Deliverability

SPF (Sender Policy Framework) is means of validating email senders to help reduce spam. The process involves publish a TXT DNS record for a domain or hostname that specifies the outgoing SMTP servers which are authorized to send email on behalf of the domain/hostname. An SMTP server receiving mail or spam prevention system can perform [...]

Read more...

Comments (0)