Lars Nielsen wrote:
Hi,
How do i access a variable from inside a class? ex. I want to use
$template_dir inside Template.
$template_dir = 'templates/';
class templateParser {
var $output;
function templateParser($templateFile='default_template.htm')
{
PHP lives on the server.
JavaScript lives on the browser.
Consider the sequencing of events:
1: Browser sends GET request
2: Apache begins processing request, decides to invoke PHP
3: PHP begins processing, starts sending out HTML (or other data)
4: Apache passes through PHP's HTML/data
5:
2 matches
Mail list logo