-
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 -
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 -
Windows 7 Partition Manager
Posted on May 30th, 2010 No commentsI’ve just found a handy free tool for managing partitions really easily in Windows 7. http://www.partitionwizard.com/free-partition-manager.html I’d used the built in partition manager in the Windows 7 Disk Management tools to shrink my primary volume and make the second drive, but then I realised I’d made it too big and needed a couple of extra gig added back onto my C drive
Read the rest here:
Sphere: Related Content
Windows 7 Partition Manager
17, 5, File, Files, Google, HTML, Jon, Powerquest, Windows 7, ad, amp, art, disk management, face, free partition manager, get, half, home, http, in, ing, ini, int, interface, job, like, magic, management, management tools, me, new, no, not, partition magic, partitions, software, table, thought, to, tools, windows, work, www art, int, interface, job, management, partition magic, primary-volume, thought, tools, Windows 7, work, www -
Server Outage
Posted on April 7th, 2010 No commentsSorry the website had been down for a little while, there was an IP routing problem which I did not spot. I’m currently working on a High Availability LAMP setup, which I’ll post details and results for a little later, there should be some interesting trinkets in there for people looking for File replication, Database replication etc on a Linux based servers.
Continued here:
Sphere: Related Content
Server Outage
-
Google Reader Play: Stumbleupon for feeds
Posted on March 11th, 2010 No commentsWith new Google Reader Play: https://www.google.com/reader/play you can browse a slideshow of recommended feed items tailored to your Google reader profile in a slideshow format. Very slick and easy to use give it a try for yourself! Related posts: QR Codes Are Great! Recently I saw a symbol on the side of the...
Go here to read the rest:
Sphere: Related Content
Google Reader Play: Stumbleupon for feeds
17, 5, Chris, File, Google, IDE, LAMP, OS, Read, Reviews, Search, ad, amp, book, click, code, cool, development, device, double, form, format, get, http, https, ice, ideas, in, ing, ini, int, like, map, me, method, new, no, not, one, personal, post, posts, project, qr code, qr codes, recipe, rest, stumbleupon, sw, title, to, web, word, www cool, development, ideas, ing, LAMP, method, posts, qr codes, Search, www -
Apache Live Log (ALiveLog)
Posted on March 7th, 2010 No commentsA really useful tool for providing simple stylised views of apache webserver log files via the browser. Ideal for providing a level of log file monitoring/analysis to novice web developers or website owners who don't want or need to see the raw log file text, but might need to keep occasional tabs on how the webserver is behaving as part of a bigger website control panel style app.
Continue reading here:
Sphere: Related Content
Apache Live Log (ALiveLog)
5, Analysis, Chris, EU, File, Files, Google, HTML, IDE, Track, URL, XHTML, XML, apache, blog, browser, control, developers, error, http, https, ice, in, ing, live, me, no, server, simple, site, style, tabs, to, trac, user, view, views, web, website, www access, access-logs, Chris, control, developers, File, google-sidewiki, keep-occasional, live, simple, style, tabs, URL -
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 -
Possibly the world’s best 500 Error Page
Posted on February 8th, 2010 No commentsNice One Qype Qype 500 Error Page Related posts: Excel SYLK: File format is not valid error I came across this error earlier this week so thought...

Read more from the original source:
Sphere: Related Content
Possibly the world’s best 500 Error Page
5, Chris, Class, Desktop, File, Google, ICO, OS, Top, Uncategorized, ad, book, centos, click, code, compiling, double, error, excel, form, format, http, ice, image, images, in, include, ing, light, linux, load, map, me, microsoft, no, not, one, page, php, php 5, post, posts, smile, software, thought, title, to, upload, valid, world, wp, www adding-additional, Class, form, imap, include, microsoft, permanent-link, php, slightly-edited, www -
Question: How does source control work in a non-distributed environment?
Posted on February 5th, 2010 No commentsAt our company we currently all work on one shared network drive. The source code is not under any kind of source control, which for me is a big no-no. I’d love to be able to set up SVN and us all work of separate repositories and just commit back to a trunk or branch, but our tech manager doesn’t agree.
Continue reading here:
Sphere: Related Content
Question: How does source control work in a non-distributed environment?
17, CVS, Eclipse, File, James, OS, SVN, amp, auto, change, check, code, coding, commit, company, control, fine, form, http, ical, in, ing, int, issue, linux, me, network, no, not, one, open, open to suggestions, problem, repository, scm, share, solution, something, source, tech, to, tom, ua, update, vcs, version, windows, work before-it-takes, check, commit, linux, network, situation, source-control, tech -
Quite possibly THE most useful site(s) for cross browser testing (and fixing)
Posted on January 22nd, 2010 No commentshttp://spoon.net/browsers Nuff said... Actually while I'm on the topic (mainly of IE being an idiot) http://code.google.com/p/ie7-js/ In addition, for up to date browser usage stats (and in theory the most correct stats): http://www.w3schools.com/browsers/browsers_stats.asp Related posts: Google Chrome – Released But Not Polished
Continued here:
Sphere: Related Content
Quite possibly THE most useful site(s) for cross browser testing (and fixing)
5, Chris, Download, File, Google, Misc, OS, Top, ad, amp, applications, book, browser, chrome, click, code, cross browser, day, double, face, facebook, fun, function, http, ie7, in, ing, light, load, map, me, new, no, not, php, post, posts, simple, spoon, title, to, ua, usage, web development, www begun, book, Chris, date-browser, map, php, spoon, theory-the-most












































