Welcome Guest, Not a member yet? Register   Sign In
[ SOLVED ] Unlink problem
#2

[eluser]xwero[/eluser]
you need the full path for the unlink function. I've added a constant to the index.php for these situations
Code:
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('PUBPATH',str_replace(SELF,'',FCPATH)); // added
then you can do
Code:
$filestring = PUBPATH.'uploads/'.$row->filename.$row->ext;


Messages In This Thread
[ SOLVED ] Unlink problem - by El Forum - 01-30-2008, 08:43 AM
[ SOLVED ] Unlink problem - by El Forum - 01-30-2008, 08:48 AM
[ SOLVED ] Unlink problem - by El Forum - 01-30-2008, 09:17 AM
[ SOLVED ] Unlink problem - by El Forum - 11-09-2008, 10:48 AM
[ SOLVED ] Unlink problem - by El Forum - 11-09-2008, 06:33 PM
[ SOLVED ] Unlink problem - by El Forum - 10-07-2009, 02:40 AM
[ SOLVED ] Unlink problem - by El Forum - 02-25-2012, 04:21 AM
[ SOLVED ] Unlink problem - by El Forum - 02-25-2012, 05:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB