PHP Scribbles

Service announcements and product updates from the Mad Capsule team

Using fwrite to Save a Number of Bytes to a File with PHP Spl

  • date April 20th, 2014
  • date James
  • date Comments
Using fwrite to Save a Number of Bytes to a File with PHP Spl

As if PHP5, Spl, or Standard PHP Library, is available out of the box. Spl intends to provide standard access to data through object-oriented syntax. This extends to data stored in files. In this pos ... Read More

Brightpearl API Error ( CMNC-009 )

  • date January 28th, 2013
  • date Mark
  • date Comments
Brightpearl API Error ( CMNC-009 )

Ok so after having a couple of debug issues with a PHP script that was calling on the Brightpearl API, one of our guys was continually getting :

[code] => CMNC-009 [message] => The request body could not be read while attempting to parse it as JSON

nyhow af ... Read More

Code Snippet: Getting first character or digit of a domain in PHP

  • date May 24th, 2012
  • date Mark
  • date Comments
Code Snippet: Getting first character or digit of a domain in PHP

After a very minor scuffle at Mad Capsule over the best way to get a the first letter or digit of a domain name from a variable, I thought I would post my solution online. Usually it would not occur to me to post such a short PHP snippet however I've been informed that the solution was not as easy t ... Read More



<< Previous 123


OUR AUTHORS

Mark
Mark

I like the Sea, Monkeys, the Internet and sun. I don't like olives

James
James

Less QQ more pew pew

Israel
Israel

I love time travel, infact I'm writing this from the 1920s

CATEGORIES