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
very simple variable issue
Moderator: General Moderators
Code: Select all
$var = 'string concatenation ' . 'is fun';