Problem on include
Posted: Sun Feb 07, 2010 11:19 am
b.php
<?php
$root = 'C:\';
?>
a.php
<?
include 'b.php';
echo $root;
?>
on commandline:
C:\cmdUtilities>php a.php
PHP Warning: Directive 'register_globals' is no longer supported in PHP 6 and g
reater in Unknown on line 0
PHP Warning: Directive 'register_long_arrays' is no longer supported in PHP 6 a
nd greater in Unknown on line 0
PHP Warning: Directive 'magic_quotes_gpc' is no longer supported in PHP 6 and g
reater in Unknown on line 0
Parse error: syntax error, unexpected $end in C:\cmdUtilities\b.php on line 2
Why I'm getting this error?
<?php
$root = 'C:\';
?>
a.php
<?
include 'b.php';
echo $root;
?>
on commandline:
C:\cmdUtilities>php a.php
PHP Warning: Directive 'register_globals' is no longer supported in PHP 6 and g
reater in Unknown on line 0
PHP Warning: Directive 'register_long_arrays' is no longer supported in PHP 6 a
nd greater in Unknown on line 0
PHP Warning: Directive 'magic_quotes_gpc' is no longer supported in PHP 6 and g
reater in Unknown on line 0
Parse error: syntax error, unexpected $end in C:\cmdUtilities\b.php on line 2
Why I'm getting this error?