PHP

Match Making (The Meat of the Matter)

Match Making (The Meat of the Matter) Now that you’ve mushed your users’ input around like Play-Doh, it’s about time you give them something in return. Since your database doesn’t have any real formatting of its own, drop the HTML formatting around the text you retrieve. Printing out to a ...

Read More »

Tidying Up the Input

Tidying Up the Input To search for the info that corresponds to the user “title” input, we’ll open the database in the same way we would any other file in Perl. Then we’ll read it into an array variable and, of course, close the file. open (DATA, "/usr/people/ferm/movies.dat"); my @data ...

Read More »

Just Like in the Movies

Just Like in the Movies For your CGI-learning enjoyment, I’m going to show you how to write a little movie-review search script. It’s the perfect thing for the web page of a true Movie buff. But don’t worry. If movies aren’t your thing, this script will work just peachy with ...

Read More »

Getting Manipulative

Getting Manipulative Without something to manipulate, the only thing you’ve done today is waste your time and sanity. So how do you get the stuff to manipulate? Through a magically wonderful thing called input-output. There are two major types of input and output:user input-output and file input-output. User input is ...

Read More »

PHP COOKIES

PHP COOKIES PHP Cookies – Background Cookies have been around for quite some time on the internet. They were invented to allow webmaster’s to store information about the user and their visit on the user’s computer. At first they were feared by the general public because it was believed they ...

Read More »

PHP SESSIONS

PHP SESSIONS PHP Sessions – Why Use Them? As a website becomes more sophisticated, so must the code that backs it. When you get to a stage where your website need to pass along user data from one page to another, it might be time to start thinking about using ...

Read More »

PHP Date Function

PHP DATE PHP Date Function While PHP’s date() function may seem to have an overwhelming amount of options available, isn’t it always better to have more choices than not enough? With PHP’s date function you format timestamps, so they are more human readable. PHP Date – The Timestamp The date ...

Read More »

PHP EXPLODE

PHP EXPLODE PHP – String Explode The PHP function explode lets you take a string and blow it up into smaller pieces. For example, if you had a sentence you could ask explode to use the sentence’s spaces ” ” as dynamite and it would blow up the sentence into ...

Read More »

PHP – String Capitalization Functions

PHP CAPITILIZATION PHP – String Capitalization Functions If you’ve ever wanted to manipulate the capitalization of your PHP strings, then this lesson will be quite helpful to you. PHP has three primary capitalization related functions: strtoupper, strtolower and ucwords. The function names are pretty self-explanatory, but why they are useful ...

Read More »

PHP str_replace Function

PHP STR REPLACE PHP str_replace Function Another key tool to have in your programming toolbox is the ability to quickly replace parts of a PHP string with new values. The str_replace function is similar to a word processor’s “Replace All” command that lets you specify a word and what to ...

Read More »