Working With fopen and fclose in PHP January 4, 2013 Working with fopen() and fclose() Before you jump headfirst into working with files, you need to learn a bit about the fopen() function, which… Continue Reading
Display Directory Contents in PHP January 4, 2013 Example:<?php$dir = opendir(“c:/”);while($i = readdir($dir)){if(($i != “.”) && ($i != “..”)){echo “<li>$i<br>”;}} ?> save as dir.php and save to the web server. Continue Reading
Sending Emails in PHP January 4, 2013 Using an SMTP Server: SMTP is an acronym for Simple Mail Transfer Protocol, and an SMTP server is a machine that transports mail, just… Continue Reading
Getting Variables from Forms in PHP January 4, 2013 HTML forms contain at least the following elements: 1. A method 2. An action 3. A submit button In your HTML code, the first… Continue Reading
Logical Operators January 4, 2013 Logical Operators allow your script to determine the status of conditions (such as the comparisons in the preceding section). In the context of if…else… Continue Reading
Comparison Operators in PHP January 4, 2013 Operator Definition== Equal to!= Not equal to> … Continue Reading
Arithmetic Operators in PHP January 4, 2013 Operator Example Action+ $b = $a + 3; Adds values– $b =… Continue Reading