Category Archives: developer’s Guide

developer’s tools & references

array_diff_key

Share(PHP 5 >= 5.1.0RC1) array_diff_key – Computes the difference of arrays using keys for comparison Description array array_diff_key ( array array1, array array2 [, array ...] ) array_diff_key() returns an array containing all the values of array1 that have keys that are … Continue reading

Posted in php | Tagged , , | Leave a comment

domain pointing to a folder

ShareThis approach has you code the first part of the domain or subdomain name and the associated subdirectory in your .htaccess file.   For example: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/subdirectory/ RewriteCond %{HTTP_HOST} ^(www\.)?name\. RewriteRule ^(.*)$ subdirectory/$1 [L] Note … Continue reading

Posted in htaccess | Tagged , | Leave a comment

fading image using javascript

Share Show me what it does! Hide – Show Click on a link above to make the image disappear and re-appear by gradually fading in/out. It uses CSS transparency, in CSS you can set the transparency in different ways. To … Continue reading

Posted in javascript | Tagged , , | Leave a comment

javascript form validation

SharevalidateEmpty ( ) The function below checks if a required field has been left empty. If the required field is blank, we return the error string to the main function. If it’s not blank, the function returns an empty string. … Continue reading

Posted in javascript | Tagged , , , | Leave a comment

javascript: escape()

ShareProblem: Getting error on ajax when passing url with “&” on it. Solution: escape() Definition and Usage The escape() function encodes a string, so it can be read on all computers. Syntax escape(string) Parameter Description string Required. The string to … Continue reading

More Galleries | Leave a comment