How to write php variable as string
Posted: Sun Feb 06, 2011 12:48 am
I want to write the following code in index.php file
But the problem is when I create the file index.php, it writes as follows.
the variable is eliminated.
Please help me solve this problem.
Code: Select all
<?php
$curdir = basename(dirname(__FILE__));
require_once '../template/index.php';
?>Code: Select all
<?php
= basename(dirname(__FILE__));
require_once '../template/index.php';
?>Please help me solve this problem.