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 Quote Link to comment 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); Quote Link to comment 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:) Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted May 5, 2007 Share Posted May 5, 2007 that would be the preferred option yes. Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.