Re: Can anyone see why unlink isn't working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



maybe $path$nameb is wrong
$path.$nameb???

Try echoing $path$nameb and see if is is a valid file path.

Jochem

Chris Payne wrote:
Hi there everyone,

I have image details stored in my DB, and i'm trying to remove the ones I select, but I keep getting an error saying that there is an unexpected T_Variable, can anyone see what is wrong here? It's probably obvious, but for the life of me ........

if (count($del) >= 1) { for ($i=0;$i<count($del);$i++) {

$nameb = $del[$i];

echo $nameb;

unlink($path$nameb);

};

Thanks for any help :-)

Chris

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux