Posts tagged notepad

PHP – The Basics

PHP Logo

PHP Logo

PHP has grown from nothing to become one of the most popular languages on the web. This is mainly because of it’s simple syntax, easy usage, and seamless integration with MySQL and other databases. It’s also free, which makes it a great tool for developers when designing interactive and

dynamic content. In fact, my blog is powered by the open-source software WordPress.org, which is written in PHP.

What is this ‘PHP’ thing?

You may be thinking “wow, it sounds great, but what is it?”. So here are a few points about PHP:

  • PHP stands for PHP: Hypertext Preprocessor (It’s a bit of a paradoxical name if you ask me!)
  • PHP is a server-side scripting language, which means the scripts are executed on the server – before the user sees any output. (This is similar to ASP.net)
  • The opposite of server-side is client-side. JavaScript is a client-side scripting language.
  • Although PHP is free and open source, you need a server to run PHP, you can’t just access it in your browser. Common servers include Apache and Microsoft’s IIS.
  • PHP files have the extension .php / .php3 / .phtml

What do I need?

To be honest, you don’t really need much at all! A simple text editor such as NotePad or TextEdit will suffice. I use NotePad++ for various reasons, outlined in my review, but mainly because of it’s syntax highlighting. You could also try NotePad2 for a more lightweight option.

Also, as I mentioned earlier, you need a webserver to parse the script. This means you will need to host your files somewhere. This could be locally, using a package such as XAMPP, or you could buy hosting, but make sure they offer PHP support. (Most hosts will, as PHP is free and open source.)

Got all that? Good, let’s start writing some code! Read the rest of this entry »

Notepad++ Review

A handy text editor for all your programming and web developing needs. I have been using Notepad++ for a few months now, and I have really enjoyed using it. The layout is simple and easy to use, the colours are plain and not hard on the eyes, and it has syntax highlighting for hundreds of different languges including PHP, HTML, C++, Javascript, Java and ASP.

Probably the most useful feature of  Notepad++ is the tabbed editing window. This makes it really easy to switch between files and it makes error checking much more simple. Not to mention the taskbar space saved on Windows. In addition to this, there is a find & replace option which can be used to replace a certain phrase in ALL of the currently open documents. This saves loads of time and typing. Read the rest of this entry »