-
Replacing text in MySQL text fields
Posted on April 19th, 2010 No commentsI didn’t even think you could do this: UPDATE table SET something = REPLACE ( something , 'oldtext' , 'newtext' ) ; How handy! For replacing text in MySQL tables that is… not for anything else really.
View original post here:
Sphere: Related Content
Replacing text in MySQL text fields
-
isset fail
Posted on April 8th, 2010 No commentsSrsly PHP, why can’t I do this: $value = isset ( $myGPCWrapper -> Get ( "value" ) ) ? $myGPCWrapper -> Get ( "value" ) : $default ; Resulting in this: Fatal error : Can’t use method return value in write context in /path/to/my/script.php on line 21 And instead I have to do this: $foo = $myGPCWrapper -> Get ( "value" ) ; $value = isset ( $foo ) ? $foo : $default ; or $value = isset ( $_GET [ 'value' ] ) ?
Read the original:
Sphere: Related Content
isset fail
-
Write Stack Dump In PHP
Posted on January 21st, 2010 No commentsJust a quick one. You probably already use debug_backtrace (and if you don’t, use it!)
More here:
Sphere: Related Content
Write Stack Dump In PHP
-
Importance of User Agents
Posted on December 9th, 2009 No commentsWhen you write something that connects to a web server, what user agent do you use? Far too often have I seen things like: curl_setopt ( $c , CURLOPT_USERAGENT , "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" ) ; In my opinion you should always use a nice descriptive user agent that explains to the server exactly what your client may be trying to achieve, or at least a unique identifier
Continued here:
Sphere: Related Content
Importance of User Agents
17, 5, Google, IDE, James, OS, Read, Search, Top, Track, URL, ad, agent, amp, api, browser, cURL, client, coding, contact, data, e-mail, email, exam, get, help, http, https, ice, identify, import, important, in, ing, less, like, live, mail, me, media, message, new, no, not, one, oop, page, ping, post, request, script, server, servers, service, something, spam, string, term, to, trac, ua, user, user agent string, web, website, when, windows, www browser, coding, import, important, live, media, Read, user agent string -
Rant: Clickable Text and Checkboxes / Radios
Posted on August 27th, 2009 No commentsArgh, it really annoys me when web designers have check boxes or radio buttons that do not have clickable text attached.
See the original post here:
Sphere: Related Content
Rant: Clickable Text and Checkboxes / Radios
17, HTML, IDE, James, Web Design, box, button, check, click, coding, design, field, form, forms, http, in, input, issue, label, login, me, name, no, not, problem, radio, semantics, simple, simple solution, solution, to, type, value, web, website, when attribute-must, box, coding, form, HTML, issue, James, label, problem, simple solution, solution, the-element, Web Design, wise-at-least -
Lookin’ Good: Two Practise ZCE Tests Passed
Posted on August 25th, 2009 No commentsAs some of you may know, back in March/April time, I started revising for my Zend PHP5 Certification, but that was pretty much put on hold when we had a baby… now I’m revising again and after having revised a couple of topics I retook the test. As you can see, I passed it “with flying colours” this time, but still have improvement to do with Streams and Design patterns… Comparing with my last test: 2 categories remained the same; Database access Web features) 4 categories improved; PHP 4/5 Differences (was FAIL) Security (was PASS) String Manipulation and Regular Expressions (was PASS) Functions (was PASS) 2 categories declined; Streams and Network Programming (was PASS) Design (was EXCELLENT) [eep - not so good that!] I think overall however, these statistics shouldn’t be examined too much – there are some questions I can guess and don’t demonstrate that I truly *know* some topics, so I’m going to cover off a few categories I don’t feel to confident on anyway – but then the practise tests are just indicators, and not meant to represent the final exam… we’ll see!

Original post:
Sphere: Related Content
Lookin’ Good: Two Practise ZCE Tests Passed
17, 5, Class, FAIL, IDE, James, Program, RDP, Top, Wordpress, Zend, baby, base, cell, certification, coding, data, database, design, exam, excel, expressions, feature, fun, functions, http, image, in, live, load, me, network, no, not, php, php5, practise, present, press, programming, question, questions, regular, security, string, test, time, title, to, upload, web, when, word, work, wp, www, zce certification, coding, design, excel, FAIL, feature, final, having-revised, James, live, practise, questions, some-topics, web -
Twitter Updates for 2009-07-12
Posted on July 12th, 2009 No commentsAhh Sunday, a day of relaxing… and changing nappies… and feeding baby… and wiping up sick… and getting rid of wind… etc… # fb # Programmingz0r while @ babyfreyja has her mid-morning nap. # fb # Woo, got a fair amount done

The rest is here:
Sphere: Related Content
Twitter Updates for 2009-07-12
17, 5, Chris, Class, Eclipse, Google, ICO, IDE, Lol, Program, RDP, Read, Search, Weekly Twitter Digests, Wordpress, action, air, baby, changing, chrome, coding, contact, daddy, day, dinner, drink, explorer, freyja, get, girl, hanging, home, http, ical, ice, image, images, include, like, live, magic, map, me, morning, netbasic, new, no, not, one, oop, pdt, php, pies, programming, smile, stock, sw, test, time, to, trac, tweets, twitter, ubuntu, waiting, web, website, weeks, when, word, work, wp, www all-incorrectly, coding, freyja, ical, ICO, live, map, oooh-the-shame, pies, RDP, time, twitter, ubuntu, Weekly Twitter Digests, work -
Awesome: Short Ternary Operators
Posted on June 30th, 2009 No commentsI’m an advocate of tidy, well commented code, and something that has bugged me for a little while was the messiness of the ternary operator (?:) in PHP. With the introduction of PHP 5.3.0, we can now miss out the duplication messiness of using the ternary operator for existance checks for example.
Read more here:
Sphere: Related Content
Awesome: Short Ternary Operators
17, 5, IDE, James, archive, bug, code, coding, comment, cool, exam, goto, http, me, name, namespace, namespaces, no, not, one, opera, operators, phar, php, something, spaces, sw, ternary, to bug, bundling, code, coding, goto, goto-operator, messiness, namespace, opera, php, really-rather, spaces, the-duplication -
Good Site Design, SEO and Semantics all in one
Posted on June 14th, 2009 No commentsOne thing I ensure I do on all sites is to develop for two audiences at once. The first audience is of course the end user of the site.

Go here to see the original:
Sphere: Related Content
Good Site Design, SEO and Semantics all in one
17, 5, CSS, Class, Google, HTML, ICO, IDE, James, Mod, OS, RDP, SEO, Search, Someone, URL, Wordpress, XHTML, background, background image, base, browser, click, code, coding, comment, early, engine, first, h1, header, help, home, http, ical, ice, image, images, include, issue, less, like, list, live, load, markup, me, method, modify, name, netbasic, no, not, one, page, repeat, semantics, smile, something, style, term, time, tips, title, to, view, when, word, work, www coding, CSS, dimensions, ICO, SEO, URL, user, view -
Changing Project Types in Eclipse
Posted on May 27th, 2009 No commentsIf you created a project in Eclipse, but you created a regular “Project” instead of a particular project type (in my case, a “PHP Project” then there is a fairly easy way of fixing it. I had to do this to make a particular project work in the PHP Explorer (which for some reason worked fine on Windows version of Eclipse, but not my version…) Create a new project of the type you want to convert your existing project to
Read more:
Sphere: Related Content
Changing Project Types in Eclipse
17, Eclipse, File, James, OS, Projects, XML, air, build, buildSpec, case, change, changing, coding, comment, exam, explorer, feature, fine, fix, http, ical, like, me, modify, name, nature, new, no, not, one, open, pdt, php, place, project, regular, script, to, type, valid, validation, windows, work build, buildSpec, changing, coding, explorer, modify, open, pdt, place, Projects, remove-the-old, script, type, windows












































