PHP: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
5 bytes removed ,  14:02, 18 December 2015
m
→‎Using PHP scripts not processed by Cumulus: replace 'as above' by 'normal'
m (→‎Using PHP scripts not processed by Cumulus: replace 'as above' by 'normal')
Line 98: Line 98:


#A more efficient approach, this is a bigger implementation change, is to set Cumulus to process just [[Php_webtags| something like this file]] to read the Cumulus web tags you want to use (some may have parameters to indicate what period to use or how to format the date they output) and then the processed file will create PHP variables/arrays for your other PHP web pages to use.
#A more efficient approach, this is a bigger implementation change, is to set Cumulus to process just [[Php_webtags| something like this file]] to read the Cumulus web tags you want to use (some may have parameters to indicate what period to use or how to format the date they output) and then the processed file will create PHP variables/arrays for your other PHP web pages to use.
#Then you create a new PHP script that does not get processed by Cumulus. For example "thismonth.php" would start with the same HTML5 as shown above, but the table is output by the PHP script:
#Then you create a new PHP script that does not get processed by Cumulus. For example "thismonth.php" would start with the same HTML5 as normal, but the table is output by the PHP script:
<pre>
<pre>
<!DOCTYPE HTML>
<!DOCTYPE HTML>
5,838

edits

Navigation menu