map200uk Posted May 5, 2007 Share Posted May 5, 2007 this is a weird request (i think?) but i need to make it so certain errors are not shown Warning: symlink() [function.symlink]: File exists in /opt/lampp/htdocs//phpdb/finddir.php on line 47 this is the error shown if the recursive function has already scanned the given directory-it will still try to create a symlink is there anyway to turn this error off? Although i suppose in practice would be better for me to check say if store dir .file=symlink bla bla else create link? map Link to comment https://forums.phpfreaks.com/topic/50160-errors-how-can-i-hide-it/ Share on other sites More sharing options...
ToonMariner Posted May 5, 2007 Share Posted May 5, 2007 you can use error surpession with @ before the function call or ini_set('error_reporting', 0); Link to comment https://forums.phpfreaks.com/topic/50160-errors-how-can-i-hide-it/#findComment-246302 Share on other sites More sharing options...
map200uk Posted May 5, 2007 Author Share Posted May 5, 2007 cheers bud, i suppose though its best if i check if there is a symlink first, to save the command being executed again, iguess:) Link to comment https://forums.phpfreaks.com/topic/50160-errors-how-can-i-hide-it/#findComment-246305 Share on other sites More sharing options...
ToonMariner Posted May 5, 2007 Share Posted May 5, 2007 that would be the preferred option yes. Link to comment https://forums.phpfreaks.com/topic/50160-errors-how-can-i-hide-it/#findComment-246306 Share on other sites More sharing options...
map200uk Posted May 5, 2007 Author Share Posted May 5, 2007 just realised something, whilst creating symlinks will work for my original purpose...what can i do if there are 2 files, exact same filename, i can create the same symlink x2, in an ideal worl files would be named properly, so we wouldnt have 2 files of differeing content bearing the same name-but this isnt ideal! Link to comment https://forums.phpfreaks.com/topic/50160-errors-how-can-i-hide-it/#findComment-246318 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.