Archive for PHP
December 11, 2007 at 2:00 pm · Filed under PHP, Tutorial
Thank goodness it is close to Christmas, as this is the time of year to recieve some great gifts, with one coming to us from
Kore Nordmann. He wrote a series of articles (great reads, check the links below) for Image Creation with PHP, they will teach you about Bitmaps, Vector Graphics, Libraries and Image Formats, and tools for image creation.
The Image Creation with PHP are broken up into several posts, here is a direct link to all the topics.
Format and Libraries
A first shape
Gradient rendering
Integrating bitmaps
Text rendering
Image Tools
December 7, 2007 at 12:02 am · Filed under PHP, Tutorial
Found a great article on
i-Hack.org regarding
Searching Google Like An Expert and although I knew a lot of the commands the Author Zeus talks about, I honestly really never used them with Google, opting to be lazy and just type in what I am looking for.
After reading the article, I decided to try it out, and find some PHP Tutorials, but I didn’t want web pages, I just wanted to search for PDF’s, so I typed this simple query in the Google Search Bar -> PHP Tutorial filetype:pdf
Seems simple enough, and bingo, I got tonnes of good PHP Tutorial PDF’s, awesome. I should use some of these techniques more often.
Below is a couple links to PHP Tutorial PDF’s that popped up from my search :
PHP Handout
PHP Advanced Tutorial
PHP Programming
There are tonnes more, try it out and let us know if you find a great tutorial.
December 6, 2007 at 2:20 pm · Filed under PHP, Tutorial
As you may have read in previous posts, I am a Newbie in PHP, although I do have a C/C++ background, I think should be easier for me to get into PHP. I have an idea of an Online MMO (text based) that I want to create (ala WW2GAME.NET) but before I start, I want to make sure I read up plenty on PHP.
One area of development that people sometimes forget (besides Commenting well) is Testing. This is were I ran across this great article An Introduction to the Art of Unit Testing in PHP.
The article makes mention of the main reasons why testing usually takes a back seat to development, mainly it is major boring compared to the rest of the production of developing. The author gives several examples of the types of Unit testing, then goes on to give you a bunch of benefits for Unit testing. My favorite being, Unit Testing is Fun =) I think the author will have a difficult time convincing us of that, but you can’t argue with the points made in the article. Unit Testing will save you lots of time in the end, and keep bugs out of production. Which is what we all want in the end.
December 5, 2007 at 1:51 pm · Filed under PHP, Tutorial
I am a beginner at PHP, I know C and C++, so I can read PHP pretty well, but I am still having some difficulty starting PHP from scratch. I have been searching the Net for a couple of good sites, and I will mention a couple I have found over the next couple of days.
First great site I found (was on the DIGG front page, so shouldn’t be hard for others to find as well) is TalkPHP. I like there example tutorials so far, the way they are layed out, the way they explain the language, then give examples to back up there explanation.
A couple of interesting reads if you are a Newbie to PHP are -> Defining your World - All About Constants , Generating a Range of Numbers the Easy Way, The Dangers of the Header Function , Securing your MySQL Queries with Sprintf plus there are tonnes more.
The site is layed out in forum style, but unlike other forums, the good information is not buried deep in thousands of posts. They display the latest Articles on the front page, plus have a Articles Menu, and it is split up into several Categories. You will even find the Top 10 Articles listed in the Articles Menu.
If that was not enough, there is also a Glossary, so you can click on a letter and find the definition of the PHP functions, plus an example.
I am glad I found this site, it will help me tremendously with learning PHP, and I hope it helps you as well.
December 3, 2007 at 10:09 am · Filed under PHP, Tutorial
Although it is easier I think for someone to transition who already know C/C++ to move to PHP, there are still a lot of pitfalls one might encounter on there road to PHP Uberness.
I found this little tutorial called From C/C++ to PHP by Alexey Smirnov. Alexey discusses some interesting topics such as Avoiding references misuse, Object construction and Regular Expressions.
Another good read is by a user called cable_guy_67 which shows you code by code comparisons of what it would look like in C++ and then PHP. Check out Porting Code from C++ to PHP.
On the opposite side, I also found an interesting tool that translates PHP to C++, you can find the source of the tool on The PHP to C++ Translation tool page, and check out the PHP2CPP Feature Summary page to see what the tool can do for you.