Geekpedia Programming Tutorials






Knowledge Base Knowledge Base Archive

1 2 3 4 5 6 7 8 9 10 »
(128 KB articles in 13 pages)
RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
Apache

***--
3 from 2 votes

Sep 27th 2008
by Andrew Pociu

How To Prevent Hotlinking Using .htaccess

A very easy way to prevent your gif, jpeg, png files (and any other file formats you choose) from being hotlinked in other websites is to use a few mod_rewrite rules in your .htaccess file. [code=php...

Google Chrome

*****
5 from 1 votes

Sep 20th 2008
by Andrew Pociu

Google Chrome Beta User Agent String

The first beta version of the Google Chrome browser has an user agent string of its own, and although it will change with the next version, it will most likely follow the same format thus making it safe...

MySQL

-----
No votes

Sep 18th 2008
by Andrew Pociu

Search and replace table field contents

The query below will replace all occurences of "Bob Loblaw Law Blog" found in the field "BlogName" field of the Blogs table. All instances of the string are being replaced, and the search is case sensitive...

Apache

*****
5 from 3 votes

Mar 19th 2008
by Andrew Pociu

How to redirect www requests to non-www URL

If you would like to redirect all the requests to the www version of an URL to the non-www version - for example http://www.geekpedia.com to http://geekpedia.com - you can do that by placing the...

PHP

-----
No votes

Feb 29th 2008
by Andrew Pociu

How to have PHP show the errors within the current script

Before the PHP code starts, add the following lines: error_reporting(E_ALL); ini_set('display_errors', '1'); These two lines set script-wide variables that will allow the errors in your current...

PHP

-----
No votes

Nov 11th 2007
by Andrew Pociu

How do I change the timeout limit for my PHP code?

If you would like to overwrite the script execution timeout limit defined in php.ini, you can do that directly from your PHP code using the following line: // Set it to no-limit set_time_limit...

JavaScript

***--
3 from 2 votes

Nov 2nd 2007
by Andrew Pociu

How to improve the performance of your for loops

Instead of the typical: for(var i=0; i<theArray.length; i++) {      // Loop } Use: for(var i=0, arrLen=theArray.length; i<arrLen; ++i ) {   ...

JavaScript

*----
1 from 1 votes

Nov 2nd 2007
by Andrew Pociu

How to pop up the Print dialog from a web page

You can very easily pop up the Print dialog using a JavaScript call to a function. The following code works in all major browsers, including Internet Explorer and Firefox: <a href="#&...

C++

*****
4.63 from 8 votes

Oct 7th 2007
by Andrew Pociu

How to swap two numbers without using a third variable

Using pointers you can easily swap two variables without using an additional variable to store a temporary value. This is because instead of swapping values, you can swap addresses, as shown in...

Regex

***--
2.5 from 2 votes

Oct 2nd 2007
by Andrew Pociu

Regular expression for validating phone numbers

The following regular expression will validate phone numbers in all well known formats, such as: 555-12-34 555 12 34 555 1234 555 12-34 5551234 (012) 555-12-34 (012) 555 1234 +...

Filter KB Articles
Category:
Rating:


Advertisement


Other Resources
1 2 3 4 5 6 7 8 9 10 »
(128 KB articles in 13 pages)
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons