Apr 07, 2011 — 3 comments
Using the Timezone class to automatically deduce the timezone's GMT offset and then modify the date accordingly. I must admit that I was going to write you a simple timezone script and then tell you how easy it was. However, I came across some handy timezone_* functions and things got a little more difficult but a lot more practical. This script will allow you to display the time in any timezone you wish, without any ifs, buts or maybes along the way.
If you're from the UK then you'll appreciate this preface. If you're not then don't worry because I'll be doing the script from a USD perspective to satisfy the majority! Today we'll be making a currency converter, and as is common on Blue Peter, I'll be throwing bits of code at you like - here's one I made earlier! Basically what we'll be creating is a converter that automatically prepends the currency symbol to the front of the value and then works out the value in the currency that we specify
Tutorial covers different scenarios and methods of writing text to a file in PHP...
Learn how to create your own content management system (CMS) with PHP and MYSQL! This is the first part starting a series of tutorials to create a Content Management System (CMS).
The factory method pattern is an object-oriented design pattern. Like other creational patterns, it deals with the problem of creating objects (products) without specifying the exact class of object that will be created.
In this article I will show you how to use PHP regular expressions in your own PHP scripts.
There might be many reasons why you may be storing data in a database. As Google has showed us, searching data is an invaluable tool that can help minimize the time that it takes to find the information you need. I would like to show you how you can build your own PHP search engine to find the information you seek in a MySQL database.
A simple email contact form using php and mail(). Downloadable code.
A complete beginners guide into just how to connect to SQL databases using PHP, and then display your information - also contains some further database tips.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?