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
Assignment Operators in PHP January 3, 2013 Operator Example Action+= $a += 3; Changes the value of a variable … Continue Reading
What is an Operator in PHP ? January 2, 2013 The basic function of an operator is to do something with the value of a variable. That “something” can be to assign a value,… Continue Reading
Predefined Constants in PHP January 2, 2013 __FILE__ The name of the script file being parsed. __LINE__ The number of the line in the script being parsed. PHP_VERSION The version of… Continue Reading
Constants in PHP January 2, 2013 A constant is an identifier for a value that cannot change during the course of a script. Once a constant has a value, it… Continue Reading