Re: [PHP] unlink problem... please help...

2003-02-26 Thread Chris Hayes
At 16:42 26-2-03, you wrote: $result=unlink('$dir_to_upload/$row->Photo'); what do you get when you echo echo htmlspecialchars('$dir_to_upload/$row->Photo'); and do you use the full file path? Images accept relative links but in my experience PHP's file handling functions want the full path. -

Re: [PHP] unlink problem... please help...

2003-02-26 Thread Ernest E Vogelsinger
At 16:42 26.02.2003, Jøran Sørbø spoke out and said: [snip] >Hi! >Ive tried to change the script sometimes now and it still dont work... >i still get the error Warning: unlink() failed (No such file or directory) >and it wont remove the data form the database

Re: [PHP] unlink problem... please help...

2003-02-26 Thread Jøran Sørbø
Hi! Ive tried to change the script sometimes now and it still dont work... i still get the error Warning: unlink() failed (No such file or directory) and it wont remove the data form the database $dir_to_upload is defined in config.php wich is included... it works just fine to display image us

Re: [PHP] unlink problem... please help...

2003-02-26 Thread Ernest E Vogelsinger
At 16:03 26.02.2003, Jøran Sørbø spoke out and said: [snip] > if (isset($delimage)) > { > >$result=unlink('$dir_to_upload/$Photo'); > > $result=mysql_query(" >update product set > Photo='nothing', > miniPhoto='nothing', > picture='0'

[PHP] unlink problem... please help...

2003-02-26 Thread Jøran Sørbø
Hi! Im developing a site using php and mysql and need som help... The site is a simple company site and it gets products, pictures etc from the database... Everyhing worls great except deleting product images from the database, and unlink them from the directory... the code i use is: the delete f