-
Stop Using the PHP Error Suppressor “@” and “or die”
Posted on August 28th, 2010 No commentsIt annoys me when I see tutorials for learning PHP with code like this: $fd = @ file ( "doesnotexist" ) ; and this: $md = mysql_connect ( "localhost" , "user" , "pass" ) or die ( "Could not connect!" ) ; It’s bad practice in the real programming world and shouldn’t happen. The at symbol (@) is used to silence any errors caused by calling a function as shown above, when proper error handling should be implemented. Similarly, the practice of using “or die” to error check needs to stop being taught.
Read the rest here:
Sphere: Related Content
Stop Using the PHP Error Suppressor “@” and “or die”
17, 5, Class, File, ICO, James, OS, PDO, Program, RDP, SQL, Top, Wordpress, ad, amp, art, asgrim, asgrim.com, at, catch, check, code, coding, csv, die, error, exceptions, fun, function, functions, handling, host, http, ice, image, images, in, include, ing, int, language, like, live, load, me, mysql, no, not, or, personal, php, press, programming, smile, stack, suppressor, symbol, to, tutorial, tutorials, ua, user, when, word, world, wp, www asgrim, catch, Class, csv, functions, hatred, image, language, php -
Alternative to array_merge merging many arrays
Posted on July 8th, 2010 No commentsI have a case at work where I needed to go through a big list of arrays, and add them to a new master array. It turns out this is incredibly slow when adding many large arrays to a larger array. The alternative to this if you don’t care about keys or duplication of values is to just add it into the array
Follow this link:
Sphere: Related Content
Alternative to array_merge merging many arrays
17, 5, Class, ICO, James, OS, RDP, Wordpress, ad, amp, anyone, array, array_merge, asgrim, asgrim.com, car, case, code, coding, data, dataset, duplicate, get, help, http, image, images, in, include, ing, int, key, large, like, list, live, loop, me, merge, method, new, no, one, php, press, process, return, simple, smile, solution, something, time, to, ua, value, values, when, word, work, wp, www amp, asgrim.com, creamy, degree, each-as-well, include, int, list, merge, normally-enough, process, values -
Freyja Growing Up
Posted on June 12th, 2010 No commentsIt’s been a little while since I talked about our little one, and my she has grown up a lot. She’s 14 months old now and she’s walking around like no tomorrow. She wants to walk so much that if you let her loose outside she will just walk and walk, and if you try picking her up she will protest

Here is the original post:
Sphere: Related Content
Freyja Growing Up
17, 5, Class, Dan, IDE, James, News, OS, Our Baby, Portsmouth, Projects, RDP, Top, Wordpress, ad, amp, asgrim, asgrim.com, book, busy, child, children, day, freyja, fun, get, growing, growing up, hannah, help, home, house, http, image, in, ing, ini, int, krazy kaves, left, like, live, load, marwell, me, netmums, new, no, one, parent, personal, ping, post, press, project, regular, rest, site, something, talk, test, time, title, to, tom, ua, upload, video, videos, walking, word, work, wp, www, zoo Class, day, growing, growing up, krazy kaves, News, Portsmouth, regular, rest, support-through, time, upload, video -
Moving to Linux – Finding Alternative Software
Posted on June 10th, 2010 No commentsI’ve been using Linux on servers for years, since before I started learning to code. Finally, after something like 7/8 years I am almost fully confident in severing the ties to my highly underused Windows installation on my personal laptop, but there are still a couple of exceptions
Go here to read the rest:
Sphere: Related Content
Moving to Linux – Finding Alternative Software
17, Adobe, Desktop, Eclipse, File, Google, IDE, James, OS, Photoshop, Read, Technology, The List, Top, ad, air, alternatives, amp, anyone, art, asgrim, box, cell, chrome, code, computer, contact, crash, day, default, disabled, editor, excel, face, family, finance, fine, get, google docs, growing, high, http, ice, import, important, in, ing, install, int, interface, issue, laptop, like, linux, list, live, me, message, messenger, microsoft, money, music, new, no, not, office, one, open, personal, photos, pidgin, rest, running, server, servers, simple, site, software, solution, something, studio, sw, switch, table, tech, test, thought, time, to, tools, truth, ua, ubuntu, user, version, video, videos, virtual, virtualbox, web, webcam, when, windows, windows live messenger, work, www, years code, File, import, linux, money, music, personal, Read, running, studio, videos, virtual, windows, years -
How to Reduce Amazon S3 Costs
Posted on May 9th, 2010 No commentsIf you're new to Amazon S3 or have been using it for months without much thought to how it works, then you might be paying unnecessary costs and having pages load slower than they need to because users browsers aren't caching data served from S3 appropriately. This article provides some very useful advice on how to increase page load times and reduce S3 costs by appropriately setting cache control headers for your S3 served content More here: How to Reduce Amazon S3 Costs No related posts.
Read more:
Sphere: Related Content
How to Reduce Amazon S3 Costs
5, Amazon, Chris, Google, IDE, OS, Reviews, ad, art, browser, click, code, control, cost, data, diese-eintr, double, eintr, eintrag, entries, explorer, facebook, firefox, get, google-sidewiki, header, http, ice, in, in-bearbeitung, informationen, ing, load, map, me, new, nfb, no, page, post, posts, seite, seitenbetreiber, setting, sidewiki, thought, time, title, to, ua, user, weitere-informationen, work, www advice-on-how, Chris, code, double, eintr, load, load-slower, map, Program, seite, served-content, useful-advice, user, work -
How to Reduce Amazon S3 Costs
Posted on May 9th, 2010 No commentsIf you're new to Amazon S3 or have been using it for months without much thought to how it works, then you might be paying unnecessary costs and having pages load slower than they need to because users browsers aren't caching data served from S3 appropriately. This article provides some very useful advice on how to increase page load times and reduce S3 costs by appropriately setting cache control headers for your S3 served content More here: How to Reduce Amazon S3 Costs No related posts.
See more here:
Sphere: Related Content
How to Reduce Amazon S3 Costs
5, Amazon, Chris, Google, IDE, OS, Reviews, ad, art, browser, click, code, control, cost, data, diese-eintr, double, eintr, eintrag, entries, explorer, facebook, firefox, get, google-sidewiki, header, http, ice, in, in-bearbeitung, informationen, ing, load, map, me, new, nfb, no, page, post, posts, seite, seitenbetreiber, setting, sidewiki, thought, time, title, to, ua, user, weitere-informationen, work, www browser, Chris, costs, diese-eintr, firefox, header, informationen, load, reduce, sidewiki -
A Simple News System For Basic Websites
Posted on March 10th, 2010 No commentsThis is a very simple news system with comment support which is ideal for adding simple blog/news system functionality to any website needing that kind of system. In the past I'd usually use wordpress as a pre-built solution for adding this kind of content to a site and although you get a lot of extra benefits by using wordpress (as a result of its plugin system) there can be a lot of issues with tweaking the wordpress theme to suite the site. The method of embedding this system is so simple that it can be used easily within any site template and as such it's perfect for quickly adding blogging or news system style functionality to previously static sites or E-Commerce systems where an attempt at tying in wordpress could be very messy in reference to: About The Demo » Phpns » Open Source PHP News System ( view on Google Sidewiki )
Originally posted here:
Sphere: Related Content
A Simple News System For Basic Websites
5, Chris, EU, Google, HTML, IDE, News, OS, Plug, RDP, Reviews, Track, Wordpress, XHTML, XML, ad, blog, blogging, cd, click, comment, double, fun, function, functionality, get, http, https, ice, in, ing, issue, map, me, method, new, open, open source, php, plugin, press, service, simple, site, software, solution, source, style, system, theme, to, trac, ua, user, view, views, web, website, word, www Chris, ing, News, php, source, support-which, Track, XML -
AeroSQL an alternative to phpMyAdmin
Posted on March 8th, 2010 No commentsAnother really useful item from Oleg Burlaca. AreoSQL is a free web based database management solution which, given some development could be a decent replacement for the awful phpMyAdmin.
See the article here:
Sphere: Related Content
AeroSQL an alternative to phpMyAdmin
5, Chris, Databases, Desktop, EU, Google, HTML, IDE, OS, Projects, SQL, Top, Track, URL, XHTML, XML, ad, base, blog, data, database, development, face, fun, function, functionality, http, https, in, ing, int, interface, like, management, me, media, no, not, one, personal, php, phpmyadmin, place, project, replace, site, solution, to, trac, ua, user, view, web, when, www base, Databases, function, https, ing, lot-desktop, personal, place, replace, web, www -
How to visualise your webserver logs as a map of user progression through your site content
Posted on March 8th, 2010 No commentsI love web stats and for a long time now (last 4 years or so) I have been analysing web stats with Google Analytics, which is probably one of the best apps for assessing basic stats (provided the web browser being used support javascript). For the most accurate stats I also use AWStats (which has provided great results for the last 7 years) Within the last year or two I have also employed the use of ClickTale for the analysis of user interaction
View original post here:
Sphere: Related Content
How to visualise your webserver logs as a map of user progression through your site content
17, 5, AWS, Analysis, Chris, EU, Google, HTML, IDE, Java, JavaScript, OS, Track, URL, XHTML, XML, action, ad, analytics, apache, blog, browser, click, day, few days, http, https, in, ing, int, interaction, me, method, network, no, not, one, script, site, something, time, to, trac, ua, user, view, web, website, work, www, years analysing-web, Analysis, few days, google-sidewiki, https, Java, replace, time, XML -
Double quotes in INI files loaded with parse_ini_file
Posted on March 1st, 2010 No commentsWriting a bit of PHP tonight and found that if you use parse_ini_file to load an INI file in PHP, there is a slightly hacky way of having double quotes in strings. For example, I tried these: somevalue = "This " "string" " has quotes" somevalue = "This " string " has quotes" But none of them worked! Turns out a quick look at the PHP manual reveals a simple (but a bit hacky) solution to this is to define a constant e.g. QUOTE to be “, and use that in the INI string
Read more from the original source:
Sphere: Related Content
Double quotes in INI files loaded with parse_ini_file
EU, File, James, ad, amp, asgrim, coding, config, double, escaping, exam, fine, fun, function, http, in, ing, ini, light, load, me, no, one, parse_ini_file, php, php5, quote, quotes, setting, simple, solution, string, to, ua, value, work, www double, escaping, exam, File, having-double, ing, setting, simple, work












































