Sound Advice for Beginners

November 27th, 2014

If you are new to PHP programming and wish to use your new found skills for an e-commerce site, you might do well to use an existing PHP-based e-commerce solution (e.g. Magento, Shopify, Zen Cart) instead of attempting to build your own from the ground up. This is especially true if you are on a deadline.

The truth is that while it is an excellent idea to practice your coding skills and not just learn in theory, the last thing you want is to go live with a buggy e-commerce site. This is true whether the e-commerce site sell something that people find as trivial as shoe strings or stuff that people are very particular about like wedding dresses and wedding rings. The point is that people who use the e-commerce site, both owner and customers, expect the site to work well so that nothing will go wrong with their purchases.

So practice all you want, but until you are sure that you can come up with a better solution than existing ones, then keep your efforts under wraps.

Image via Magento

Galileo – Soon to Grace PHP

November 20th, 2014

Galileo, an open-source framework that was developed by the Eclipse Foundation and sponsored by IBM is set for launch tomorrow. Hailed as one of the newest innovations to the development and deployment of open-sourced projects that is becoming more and more prominent with the internet of today. Eclipse is a non-profit organization that manages and maintains the many projects they are involved in, making them one of the biggest supporters of the open-source community. Read the rest of this entry »

PHP Programming.

November 13th, 2014

PHP is free! (Most Web hosts provide PHP in even their most basic plans). PHP or the PHP Hypertext Pre-processor is a server-side programming language that gives Web developers it has the ability to build virtually any type of application, from simple contact forms to shopping carts, dynamic job sites, and complex content management systems.

Learning Computer programming

November 6th, 2014

Learning computer programming requires two important aspects namely time and effort. It is a must that before even trying to learn the basic codes, one has that willingness to sacrifice time and other priorities. This is the case because computer programming is never easy to learn. Every code has varying use, result, and applications which should be understood in detail by any programmer. Effort and initiative, on the other hand, are the secrets to one being successful in this field. These are needed since learning and mastering computer programming is a long procedure that involves the need of much practice. Practicing is not required from for instance, a professor or a school. This will only be possible if one has the initiative. It is important to known that, learning computer programming is possible to anyone even those that have the least knowledge on computers. One should simply have that willingness to sacrifice time, effort, and initiative. Success will definitely follow.

More into the syntax of PHP

October 30th, 2014

As you might have seen, all of the PHP statement ends with �;� which would be somewhat similar to Perl. The valid HTML code that was handed back to the server was :



Who are You?

My name is MacGyver.

More in the coming posts when we dig deeper as we widen our understanding of PHP.

Testing Your PHP Code

October 22nd, 2014

simpletest-logoPHP programming is definitely not all about the coding. This is actually for programming in all kinds of languages. It is also true for any kind of PHP application you may be working on, be it a PHP-based software asset management tool, a PHP-based website, or any other software.

Of course, when programming knowing coding best practices is essential, but having an in-depth knowledge of testing tools is equally important. For PHP testing frameworks used fall under different kinds of testing such as unit testing, integration testing, functional testing, behavior-driven development tools, and generic frameworks.

Each testing tool is obviously suitable for difference scenarios although they all serve the same purpose of decreasing dependence on manual testing. This makes the testing phase go more efficiently and save a lot of resources not only in terms of time but also in manpower, with less testers needed.

As a PHP programmer, make sure you brush up on your knowledge about automated testing skills and you’ll be the one who will benefit from it in the end.

Image via SimpleTest

Extracting More from PHP with the QB Extenstion

October 15th, 2014

QB logoOne of the weaknesses of PHP is that it isn’t doesn’t perform to well when used to develop computationally intensive tasks. Sure, its great for even the most complex of web applications, but is often skipped over in preference of another language for when it comes to computing.

An extension for PHP called QB, remedies this problem “by translating Zend opcodes and executing them through a statically typed virtual machine” resulting in a significant gain in performance even for complex tasks such as pixel-level image manipulation.

If you are new to PHP though, barely understanding the array chunk function, dabbling with PHP+QB is not advised and would be akin to handing your platinum credit card over to a teenager for use; perfect recipe for a disaster. Advanced programmers could benefit from this though it is recommended that you have a pretty fast system once you start compiling since compiling QB from source code is quite memory extensive, requiring at least 2 gigabytes of memory.

Photo Credit

Embedding Comments

October 8th, 2014

Now, to make you a better programmer we all know the value of comments. This allows you to understand the code that you have written defining and given meaning to operations as you build them up. You start with the terminators used by PHP and end with them as well. Single line comments look like this �// comment� and Multi-line ones use the syntax /* comment comment*/. A better example would be the one below:

//comment
/* comment
Comment*/
?>

In the next post we take on the best parts of PHP which would be variables which is essential in all programming languages.

PHP Development Tools Released

October 1st, 2014

devtoolsThe PHP community has again gotten a boost with the announcement that Eclipse is set to release their much loved PHP Development tools later this month. The developer tools included in the release is set to again make the lives of PHP developers a whole lot easier and has been since they released the last version (1.0) in 2007. The new release features a new and improved dynamic language toolkit that gives PHP more bite compared to its older counterpart. It is also designed to work with Java so any developed projects can easily be imported into the dynamic language toolkit. Better code testing tools allows faster error checking making development faster and testing is a breeze with better functionality making PHP easier to use and deploy. With this, the PHP community is set to get a boost and life would be a little bit easier in the wild that is the internet where all is supposed to work.

More Programming Basics

September 24th, 2014

As with all programming languages PHP has different variable types such as numeric, character, string and Boolean types. Boolean variables in PHP always return either true or false, integers are whole numbers, floating points are decimal or scientifically notated and strings are a chain of characters. Sounds familiar, well they are and they are mostly standard across the various programming languages. For a more in-depth discussion on the different data types of PHP go visit the manual page.
We next discuss operators such as the assignment operator which allows you to assign values to variables allowing complex operations to be constructed into more and more functional programs.