All entries filed under this archive
Creating PHP Variables
no responses - Posted 06.26.08
That's not a typoPHP lets you create variable variables. A variable variable is one that holds the name of a variable. Here's how it works: you create a variable named, say, $apples: continue
no responses - Posted 06.26.08
That's not a typoPHP lets you create variable variables. A variable variable is one that holds the name of a variable. Here's how it works: you create a variable named, say, $apples: continue
Running PHP on the Command Line
no responses - Posted 06.26.08
If php is in your path, you can run this from the command line like so (where % is a generic, cross-platform command-line prompt, and this example assumes you're in the same directory as echo.php): continue
no responses - Posted 06.26.08
If php is in your path, you can run this from the command line like so (where % is a generic, cross-platform command-line prompt, and this example assumes you're in the same directory as echo.php): continue
Mixing PHP in Some HTML
no responses - Posted 06.26.08
PHP files are most often mixtures of HTML and PHP scripts. Putting HTML and PHP scripts into the same document is no problem because you put your PHP statements inside a script bounded by <?php and ?>, which means the server can pick them out easily. continue
no responses - Posted 06.26.08
PHP files are most often mixtures of HTML and PHP scripts. Putting HTML and PHP scripts into the same document is no problem because you put your PHP statements inside a script bounded by <?php and ?>, which means the server can pick them out easily. continue
