PHP – Naming Scripts and Tags in… Eli the Computer Guy PHP Programming (NEW) You need to name your PHP files with a .php extension for them to work on your server. Past this you use the PHP Tags to trigger scripts within a web page. <?php print “Hello World printed with PHP”; ?> PHP
PHP Programming (NEW) PHP – Viewing PHP Environment with PHPinfo() Eli the Computer Guy PHP Programming (NEW) The PHPinfo() function prints out a report of al of the PHP configurations and settings for your server. <?php phpinfo(); ?>
PHP Programming (NEW) PHP – Access Named Keys in Arrays – Foreach() Eli the Computer Guy PHP Programming (NEW) The foreach() function can turn Named Keys into variables just like it does array values.
PHP Programming (NEW) PHP – Turn File Into an Array – file() Eli the Computer Guy PHP Programming (NEW) By turning a file into an array you can work with the data within it as you would a standard array.
Be the first to comment