very simple variable issue
Posted: Thu Oct 31, 2002 11:04 am
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
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