Website Talk

PHP Sheet

27 Apr 2011, Posted by BoB in All Posts, Website Talk

How to display a user's IP address within a web page: <?php echo $_SERVER['REMOTE_ADDR']; ?> (Paste above code in your PHP file) How to display information only to an IP address of your choosing: Find your IP address at ip.TRPunlimited.com <?php if ($_SERVER['REMOTE_ADDR'] == your.ip.address.here) {?> (Paste above code at the...

.htaccess Sheet

26 Apr 2011, Posted by BoB in All Posts, Website Talk

span.post {text-decoration: underline;} Disable directory listing: IndexIgnore * -or- Options -Indexes Change default "index" page: DirectoryIndex anyfilename.html Custom 404 page redirect: # 404 error redirect # ErrorDocument 404 /full/directory/path/404.html Hotlinking protection: # hotlink protection # RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC] RewriteRule .*\.(gif|jpg|png|ico)$ - [F,L] 1 hour web browser caching (improves site performance): # default expires set...

Script Time Sheet

26 Apr 2011, Posted by BoB in All Posts, Website Talk

table.post {border:1px solid;width:100%;} th.post {border:1px solid;width:20%;padding:10px;vertical-align:top;font-weight:bold;font-size:16px;} td.post {border:1px solid;width:20%;padding:10px;vertical-align:top;height:40px;} This is a script time reference sheet (in seconds) (known to be used in .htaccess): 300 = 5 MINS 600 = 10 MINS 900 = 15 MINS 1800 = 30 MINS 2700 = 45 MINS 3600 = 1 HR 7200 = 2 HRS 10800 = 3 HRS 14400 = 4 HRS 18000...

Great Web Hosts

20 Apr 2011, Posted by BoB in All Posts, Website Talk

http://www.inmotionhosting.com/ http://www.liquidweb.com/ http://www.justhost.com/ I have been using these hosts for years. They have proven time and time again, their reliability. Also, their interfaces are fairly easy to use. ...

Web Templates

03 Apr 2011, Posted by BoB in All Posts, Website Talk

http://www.templatemonster.com/ http://www.themeforest.net/ http://www.codecanyon.net/ http://fancybox.net/ (pop-up boxes) These sites have some of the best templates and add-on scripts and themes that I have come across. ...