Page 1 of 1

very simple variable issue

Posted: Thu Oct 31, 2002 11:04 am
by Rob_Beard
hey all,

Before you tell me to go read stickys and the manual, i've already done so. I just happen to be very very stupid. so please bear with me.


this is my code:
$path="/home/sites/[rest of path]"
$file2delete = $file2del;
$file2del = $path + $bar;
$test = unlink($file2del);
if ($test)
{
print ("Deleted file");
}
break;

I want to know how i can get $file2del to equal $path + $bar in a string....but this code doesnt work?!?!?

cheers

Rob

Posted: Thu Oct 31, 2002 11:08 am
by volka

Code: Select all

$var = 'string concatenation ' . 'is fun';

Posted: Thu Oct 31, 2002 11:09 am
by Rob_Beard
thankyou!!!!!!!!!!!!!!!!