Developers' quick reference - Programming Tips and Tricks, code samples/examples, Code Snippets - Developers' quick reference RSS 

Home | Link Us | Contact


The registration is temporarily disabled.

However you can post your comments without registration.
Username:
Password:
Register | Lost password
-->




Send cookie to multiple subdomains

send cookie to multiple subdomains

 
Update user last login time
 
Shutdown/Restart windows from command line
 
This tip/code snippet describes a simple php session example
 
Restrict copy/cut/paste to a form field
 
Perl - get current operating system
 
Set Up Authentication and Authorization in php.ini SMTP settings

This tips explains how to configure or setup Authentication and Authorization in php.ini my modifying SMTP settings in the ini file.

 
Exclude/Stop PHP script notices/warnings from displaying
 
Date YYYY-MM-DD formatting with PHP

date YYYY-MM-DD formatting with PHP

 
Select/get last insert id
 
Handling/Logging errors in PHP
 
Make date YYYY-MM-DD
 
Get/retrieve file basename,extension,path,dirname

get/retrieve file basename,extension,path,dirname

 
Extend php script lifetime ( max_execution_time )

extend php script lifetime ( max_execution_time )

 
Validate email address

validate email address

 
Validate URL (FTP, HTTP) using regular expression ( regex )
 
Validate URL using outgoing connection ( fopen )
 
Stop form to insert break after its desclaration
 
Open Windows Explorer in a specific path/directory
 
Get current operating system ( os )
 
Turn off/disable form's autoComplete feature

turn off/disable form's autoComplete feature

 
HTTP authentication with PHP
 
Sorting a hash by the hash value
 
Array change key case

array change key case

 
Access $_GET, $_POST, $_SERVER in older versions of php

access $_GET, $_POST, $_SERVER in older versions of php

 
Prevent PHP script Caching
 
Create shortcut resources ( url file )
 
Prevent access to a file or directory with Apache .htaccess file
 
Prevent Directory Listing with apache .htaccess file
 
Validate string length
 
Importing a project into CVS
 
Installing Perl Modules / Installing CPAN Modules
 
Set up WGET http proxy

set up WGET http proxy

 
PHP referrer ( referer ) - Tracking/Loging/Checking link popularity
 
APD - Advanced PHP debugger configuration on windows (win32)
 
Change/modify configuration values for 'include_path' in php ini configuration runtime

change/modify configuration values for 'include_path' in php ini configuration runtime

 
Enable/Disable command line buffering of php shell script
 
Safe_dl -- Safely Load a PHP extension at runtime

safe_dl -- Safely Load a PHP extension at runtime

 
Simple Asynchronous JavaScript and XML (AJAX) example usage of: PHP SAjax framework.
 
Detect MySQL server version with simple php script on your web hosting
 
Simple cron/crontab daemon usage run/execute/schedule script/program every 5 10 15 minutes
 
CVS gzip data compression
 
Update CVS binary extensions list
 
Gzip compression for CGI and perl scripts with CGI::WebGzip
 
Make curl HEAD request

make curl HEAD request

 
Download web site or file using wget (unix/linux download manager)
 
Smarty (php template engine) check for firefox useragent

smarty (php template engine) check for firefox useragent

 
Source code highlight plugin/modifier for PHP template engine Smarty
 
Detect Firefox browser with php script/function
 
Detect Firefox browser with perl script/function
 
How to double underline text with css style

how to double underline text with css style

 
Find sites that linking my site
 
Stop/Prevent MSN From Displaying your web site DMOZ Descriptions
 
Redirect from one domain to another
 
Definition SERP/SERPs

definition SERP/SERPs

 
Preventing/stop/block comment spam
 
Define: MFA (Made for AdSense)
 
Difference between a 301 redirect and a 302 redirect
 
Errors/problems/issues with Apache 2.2 PHP 5.1.4: Syntax error: The specified module could not be found.

errors/problems/issues with Apache 2.2 PHP 5.1.4: Syntax error: The specified module could not be found.

 
IE (Internet Explorer) red X or X-box picture placeholder workaround.
 
How to make search engine friendly links of phpBB in 5 minutes? Search Engine Optimization of phpBB.
 
Calculate TIMEDIFF with mysql version < 4.1
 
Disable Google web site/page cache
 
Disable search engines cache
 
Turn off the low disk space windows notification Baloon Tip
 
How to disable PHP magic quotes effect

Magic Quotes is a process that automagically escapes incoming data to the PHP script. It's preferred to code with magic quotes off and to instead escape the data at runtime, as needed.

 
Enable Output Compression

Enable output compression of your site, reduce bandwidth and page load time.

 
Date formatting in PHP (yyyy-mm-dd hh-mm-ss)

How to format PHP date using format yyyy-mm-dd hh-mm-ss

 
Meta refresh redirect

How to make http/meta refresh/reload/redirect

 
Search and replace text in multiple files with Perl

This tip explains how to search and replace text in multiple files with Perl under windows and linux/unix.

 
Enable Hibernate Option of Windows XP

Microsoft Windows XP offers an option called "hibernation". It allows you to make a "screen shot" of the memory and use that image to restore your work later.

 
Simple file upload form

Everything you need in order to have file upload.

 
Fetch URL with Perl

How to fetch remote URL with Perl using LWP::UserAgent

 
Typosquatting/URL squatting

Term description of Typosquatting, URL squatting.

 
Social bookmarking

Social bookmarking definition

 
Switching network settings (profiles) in windows

How to switching network settings (profiles) in Microsoft Windows

 
Highlight select html textarea contents

How to highlight/select html textarea contents

 
Example of Apache Performance Benchmark / ApacheBench (ab)

This example shows how to use Apache Performance Benchmark or ApacheBench (ab)

 
Remove empty strings/elements from a PHP array

How to remove empty strings/elements in a PHP array using preg_grep, array_map and trim functions in PHP.

 
How to convert ASCII number to string in JavaScript

This tip explains how to convert ASCII numbers to string in JavaScript

 
How to convert string to ASCII number sequence in JavaScript

This tip explains how to convert string to ASCII number sequence in JavaScript.

 
Remove/Delete a user profile/account completely in Windows XP

How to Remove/Delete a user profile/account completely in Windows XP

 
Building comma-separated list of strings with MySQL

How to Build a comma-separated list of strings with MySQL

 
Recursive-diff

How to see differencies in different folders recursively.

 
Setup port based virtual hosts with Apache

This tip explains how to add port based apache virtual hosts. Sometimes you don't have access to a DNS server or you access remote machine then you may benefit from port based virtual hosts.

 
SVN Backup yyyy-mm-dd

How to backup SVN under Linux/Unix

 
How to remove empty element from array

This tip explains how to remove empty elements from a PHP array using array_filter function

 
How to GRANT SELECT, INSERT, UPDATE, DELETE in MySQL

How to grant access to specific operations in MySQL. Using grant command.

 
How to get disk usage/space for a directory

How to find out how much space your home folder takes. Using "du" program you can retrieve information of occupied space for any folder

 
Enable port 81 or other non-standard port under Redhat SELinux

This tip explains how to add port 81 or other non-standard port under Redhat. Without adding that apache web server won't be able to bind port other than 80, 443, 488, 8008, 8009, 8443.

 
How to get selected value of html select/dropdown list with Javascript

This tip explains how to retrieve chosen value from html select dropdown menu.

 
#1071 - Specified key was too long; max key length is 1000 bytes

How to solve problem with MySQL table using UTF8 as default charset on my MySQL engine. MySQL bug Bug #4541 and Bug #6604. MySQL Error: #1071 - Specified key was too long; max key length is 1000 bytes

 
Get current date in YYYY-MM-DD format under Linux/Unix

How to get current date under linux using date command in YYYY-MM-DD format.

 
Delete CVS Directories Recursively

How to remove CVS directories from already checked out source code.

 
Ftp backup perl script

This ftp backup perl script transfers backup files to a remote FTP host one file at a time.

 
Download file with cURL

This tip shows how to download file with linux tool called curl. This is an alternative to wget command line tool.

 
How to find bind version

This tip explains how to get linux bind version

 
Conditional password protected site.

This tip explains how to password protect certain area of your web site. This is the case when you want allow access to some site or area of it from your office but have it password protected for others.

 
How to enable sshd to listen/serve on multiple ports

How to enable SSH daemon to listen/serve on different ports. This includes edititing sshd_config file.

 
List open ports localhost or another computer

This tip explains how to scan localhost or another computer on the network for the available services. The command required to be executed as root (superuser) otherwise you'll see some error like

 
Retrieve SVN log information from last week using php script

How to retrieve SVN log/commit information 1 week ago using php script.

 
  Copyright © 2005-2014 Execution time: 0.01985
hosted by 1and1