As you all know, we started a web development section here on gHacks. After asking for your opinion and talking about it with Martin, we decided to keep writing 1-2 posts a week here, but move most of the material into a new site called Scriptastique. Right now we only have the blog, but tutorial [...]
- Author: Daniel Pataki
- Comments: 5
Passing variables using in the URL
If you’ve seen some WordPress blogs or online stores you’ve probably seen url-s in the form of http://somepage.com/product.php?id=4. These sites pass variables to scripts using the url. The script will scan the url for these and you can use them in a database query for example. This is the technology that allows WordPress templates to [...]
- Author: Daniel Pataki
- Comments: 2
How echo works in PHP
The most basic command, and probably the first you’ll learn when taking a look at PHP is “echo”. The first example in many books and online tutorials is the following. Create a file, give it an extension of “.php”, upload it to your server, and edit it like so: <?php echo ‘Hello World’; ?> I [...]
PHP – what it does and what it doesn’t
PHP is a Server side scripting language. Its primary competitors are ASP (Microsoft), JSP (Sun), CFM (Adobe), and Perl (often called cgi by hosting companies, although it is not the only cgi language). PHP was originally created in 1995, so as a technology it is fairly mature. Version 5.x is the latest stable version and [...]
- Author: Martin Brinkmann
- Comments: 6
Ghacks Web Development PDF Article Compilation January 09
The following article contains all web development articles that have been published in January 09. The articles are provided in PDF format to make them readable on most operating systems and devices. We are providing article compilations to give you the chance to read the articles offline and keep them as reference without having to [...]
Web Development: PHP – what role does it fill
Before we try to work with PHP we need understand the role it fills – what problem does it address. The World Wide Web is built on a client-server model. A client computer requests a page which is supplied by a Web Server. The browser then renders the page for the user to view. The [...]
- Author: Daniel Pataki
- Comments: 23
Web Development: How does PHP work?
When someone starts learning web development they usually start with HTML and CSS, and many people get stuck there without ever experiencing the wonderful workd of server side scripting like PHP or ASP. I’ll be talking about PHP here, but the basic rules for ASP and others are the same though. The most important thing [...]
- Author: Daniel Pataki
- Comments: 3
Web Development: A brief history of time()
Part of the beauty of PHP to me is the number of really useful variables that are built in. Some of these might seem very odd at first, but once you start creating pages you will run into some problems which you’ll find can be solved by a function which seemed totally useless when you [...]
- Author: Daniel Pataki
- Comments: 19
Web Development: Standardizing variables to code faster
Welcome to a new exploratory post here on gHacks! I actually work as a web designer specializing in standalone PHP and MySQL based sites, and I’ve always wanted to write a bit about coding, but it doesn’t really fit my own blog and I just don’t have time to start a whole new blog for [...]
