This code example shows you how to display different content to users from different countries. This can be used to implement a multi-lingual user-interface or display localized ads to users from different countries. It can also be used to block users from countries where the content is not legal.
This tutorial will teach you have to make your site have the option to allow the users to choose the look and feel of the site using PHP, and MySQL wrapped around a HTML template. Doing this gives you more control of your site without having to recode all yout HTML inside your PHP scripts.
Just a quick and simple web site demo. i use it for quick install, or as a back up site is i break the mysql. many reasons i wrote it. some web hosts don't have sql database. Another one is my site looks for mysql pages to load if it does not exist it looks for php pages, then static pages, if none are found it displays 404. This will cover the static page part of the function.
If you want to seperate PHP-code from HTML-code, you need some kind of template system. TinyButStrong (TBS) provides such a system. This is a short crash course for TinyButStrong. The german tutorial is more detailed, but both refer to the same examples. It will teach you how to use TBS fields and TBS blocks. Some simple and more complicated examples are provided. You will learn how to use TBS with MySQL, too. TBS documentation is available in english, german and french.
Platform(s): Linux, Windows, FreeBSD, Mac OSX, Sun Solaris
If you want to seperate PHP from HTML, you need some kind of template engine. vlibTemplate is a template engine. vlibDate easily adds and substract date values. You can format date values in different languages (german, english, french, spanish and so on). All examples are written in english. The tutorials are written in german and english. The tutorial will teach you how to use template variables, blocks and loop structures. It will give a short example of modular programming. Some simple and more complicated examples are provided. You will learn how to use vlibTemplate with MySQL, too.
Let's pretend you have 10 pages in your site with the same design and you want to change a link in your menu. You would have to edit all 10 pages, right? Nope, there's a much quicker way allowing you to edit just one file and it's not as hard as it sounds. What we have to do is create a header file and a footer file. The header file contains all the HTML code for the top portion of your site. The footer contains the HTML for the bottom. Content goes between the header and footer. Let's get started...
This is a short tutorial to help people understand how to easily install phpNuke. There are some issues that would arise on installation and this article is trying to explain them.
There are many different ways to create a template system in PHP. This tutorial will hopefully show you the basic understanding of this type of method.
This tutorial will explain and demonstrate how to use the ITX templating system from the PEAR collection of useful classes for PHP. As we go along, it'll show you some of the competitors, why the author didn't like them and why in the end he chooses to work with ITX in his own scripts. We will build a simple example script that will load and fill out the data out of a database. This script will use another PEAR component, a database abstraction layer. This tutorial assumes that you are familiar with PEAR's DB abstraction layer.