JavaScript: VB String Functions
37448
Javascript has been expanded to include VB functions. Use standard VB string functions in JavaScript: Trim, Chr, LTrim, RTrim, UCase, LCase, Instr, StrReverse and more.
440080
Stoyan Stefanov has posted about some updates he's been making to his Text_Highlighter PEAR package and to the hiliteme.com website.   In today's busy schedules there's less and less time to give love to our favorite open source projects. [...] Anyway, today I found the time to fix two bugs in Text_Highlighter and also include the patch from Daniel Fruzynski that adds support for highlighting VBScript. Wo-hoo!   The update to hiliteme.com uses the newly updated package, so you can try it out before you go and install it.
368826
On the Zend Developer Zone today, there's a new post from Maarten Balliauw about a set of PHP classes he's created to work with Office 2007 SpreadsheetML documents (yay! another format!).   I finished my first goals (some basic XLSX writing), and I want to share this set of classes to the community. [...] Each cell supports the following data formats: string, number, formula, boolean. Visual formatting is not implemented, but I'll get to that later.   Features supported currently include the creation of the Spreadsheet object, adding worksheets, adding cells, and exporting the object to the Excel 2007 OpenXML format.   You can check out the project and the latest version over on his blog.
632254
Harry Fuecks has gotten busy and posted the third part of his "Joy of Regular Expressions" series over on the SitePoint PHP Blog today.   Following on from the last part, this one is more of an intermission-a round up of regex syntax seen so far and a couple of links following feedback.   He looks at two different topics:  A "must reads" section of resources for getting the most out of regular expressions A comprehensive "cheat sheet" with tips on expression delimiters, literals, pattern modifiers, character classes, quantifiers, assertions, sub-patterns, and working with the blackslash.
694259
This week we look at valid names, declaring, initializing and displaying variables and mixed data types. We conclude this section with an introduction to form variables. By Ellie Quigley. 0122
703914
On his blog, Stuart Herbert has a quick tip showing how to mimic a feature of Ruby on Rails:   I'm still working on the next article in my series looking at PHP on servers, so in the mean time, check out this simple way to emulate Ruby's nice way of handling separate getter, setter and state query methods in PHP.   He admits his example isn't as elegant as the Ruby method, but it does get the job done. Code for the method is included in his post ready for cut and pasting.
460464
A new posting from Dynamically Typed - More on rich web UIs - has a few interesting links to share, as well as Harry's search for a XmlHttpRequest method.
389225
Not only can JavaScript functions contain other functions, but they can also be instantiated. This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object-oriented programming. By Cristian Darie, Bogdan Brinzarea. 1022
630036
In his latest post, Brian Moon talks about a method to help you and your code fit into an E_STRICT style of coding - the settype function.   These days, the way to develop is to have E_ALL and maybe even throw in E_STRICT if you are really hard core. That of course means having all your variables initialized before they are used.   In his view, defining them is good, but it's more "elegant" to use the settype function to make it more clear where they are defined. He also includes a function, using settype, that ensures that the entered values are what they should be (i.e. and int is an int).
679414
For some, starting out with the new SimpleXML functions can be a bit of a challenge. It's not quite the same as the "old ways" of parsing, and might take a little getting used to. Well, this new article on the PHP Wiki should help shed some light on the subject.
408197
I added his expand/collapse code to the HTML rendering of Scripting News, per my recent request. It seems to work nicely.  Does it work in Opera? Please let me know.
457694
Latest PHPClasses.org Releases:db connect classTrue Color PickerDbCodeBuilderProgramInsert or Update TablesAutomatic Drop Down MenuPlatform versioningSMTPseasyFormMagic Yahoo! Messenger Avatar GeneratorStringGridIAM-XLSphpTwitterGoogle Checkout Button
195318
For your consideration today, Philip Olson has worked up a listing of twenty (humorous) possible reasons that the names of the PHP functions are weird.   Here are 20 possible reasons why PHP functions lack consistent names and parameters. Learning the definition for every PHP function is truly an amazing feat and I doubt this has been attempted or accomplished by anyone. At least, by any sane human. And references are named references because they are designed to be referenced, right?   Items on the list include:  PHP likes BC PHP says all your namespace are belong to us PHP function naming algorithm still remains a secret and cannot be cracked PHP isn't designed to win a beauty contest
587677
John Lim has posted about an interesting bug he's come across when working with the output of two strings that should look the same:   Someone reported a bug in ADOdb, the open source db library i maintain. I went crazy for half an hour until i realised the problem.   According to him, "if you expect the above code to produce the same values, you are sadly mistaken". His example gives an interesting result for the first echo statement - not echoing the 9 in the first character like it seems would make sense. Check out his post for the code and try it out for yourself.
449459
DevShed continues their series looking at some of the fundamentals of working with PHP in this new tutorial posted today. It looks at one of the flow control statements the language has to offer and a very useful data structure - the switch statement and arrays.   In our last exciting adventure (back in early November), we braved crocodiles, ravenous editors, most of the PHP statements, and beginning loops. In this edition we'll cover the final statement, the Switch, and discuss arrays. So sit back, order your R2D2 robot to bring you a cold, frosty Jolt Cola, and let's get cracking.   They start with a simple example of a switch statement (to echo out strings) and follow it with a detailed description of the different sorts of arrays - numeric indexed, associative and multidimensional versions.
328302
JavaScript and databases have a mixed history, due in part to JavaScript's success. But Web security provisions restricts the ability of a Web program to read (and write) local files. Here are some options to change that. By Jacques Surveyor. 0827
700792
Brian Moon has posted some thoughts about "the post" that Terry Chay recently wrote including comments on smart versus intelligent, object nonense, and funky function names.    So, if you are not smart, then stop coding PHP.  Its a good thing that C developers are smart.  They have to remember all those functions.  Assembly language developers donât have to remember functions.  I guess they are not smart?   Ok, that last paragraph was tongue in cheek.  Knowing 3000+ functions does not make you smart.  It means you have a good memory.  I will take intelligence over smart or a good memory any day.     His comments on the "object nonsense" makes note of the difference between functions and methods and the function naming issue - well, he has "no solid defense" as they do make it difficult to learn the language and send some developers running back to the manual to make sure the parameter order is right each time.