Dynamic Dropdown Menu PHP / Navigation
Put records from your database in a drop down menu/list box. You can apply it as a navigator list box. Good for saving your webpage areas or you have many links you don't want to show all of them in your pages.
Making your first PHP page PHP / Miscellaneous
Creating a PHP page is very similar to creating an HTML page. There are two main differences between an HTML page and a PHP page, your PHP page will need to have a .php extension instead of .html, and you will use PHP code in your PHP page.
Using a page by page password system using mySQL PHP / Membership
One cool thing about php is that you can fairly easily validate users before displaying content on a page by page basis. Let's say you don't want to restrict the entire directory using htaccess, this is a neat alternative. Let's create a login system using PHP and mySQL.
Creating a PHP Quiz Page PHP / Getting Started
PHP can be used to evaluate Quiz pages. The quiz page may be written in a normal form fashion, either multiple choice or True-false. After you create this form page, setting your PHP page as the action for the form, your php page can pick up the variables and evaluate the results of the form, scoring the form.
Using Include To Avoid Unnecessary Repetition PHP / CMS
Did you notice that now we are actually in a PHP-enabled page and not in an HTML page any longer? The dynamic background script from yesterday's diary is in use here, so depending on the day of the week that you are viewing this diary entry page, the background color will change.
PHP Includes PHP / Functions
PHP has a very handy function called include(). This includes a page within the current page seamlessly. Whereas using iframes or frames in HTML is a separate page to the parent one. include() can be very useful for when you want to inclide content based on a certain topic.
Redirecting a Page using PHP PHP / Redirection
Redirecting a page in PHP is an easy task. You can use the PHP Header method to redirect a visitor to a new page. The header() method is used to send HTTP headers back to the browser. The headers can be sent back to the browser only if there's no content or error messages shown in the page.
Page Loading Time PHP / Site Analysis
Learn how to output the time a page takes to load. Have you ever noticed that lots of websites feature a little "Page loading took x.xxx seconds to load" at the bottom of their pages? It's a pretty simple thing to make and gives your site something that we all love... Stats!
Check the status of a page PHP / Miscellaneous
Sometimes it is useful to know whether a certain website is online or if it is down. This could be part of a more complex script, so even just a simple status page. Either way, the principle is the same.
PHP Sessions PHP / Sessions and Cookies
Have you ever seen member systems, or did you read the little introduction to MySQL with PHP tutorial on this site? If you have, then you must be wondering how all the user data is carried from page to page.
Web page optimizer PHP / Navigation
How to go from 15kb to a file of 11kb without even changing one single line in a CSS file? Without ruining the looks and comments of our page. How to keep them intact for editing and highly parsed, optimized for speed and compressed but only for the visitors?