robertd Posted December 12, 2007 Share Posted December 12, 2007 First of all I am not a programmer, just a technical professional, i.e. network admin. I run a large vBuletin board on a dedicated Linux server (7 years old) and I am capable of editing PHP code, but not writing anything from scratch...here is my issue: I have a problem with some missing attachments...Is there a way to put a if/then or else in the PHP code so that when the attachment is missing I can return something other than this error: Warning: fopen(/home/admin/attachments/2/5283.attach) [function.fopen]: failed to open stream: No such file or directory in /attachment.php on line 203 That is what you get when you click the attachment link in a post where the actual file is missing. I would just like to have it give a message like: this attachment is no long available, or something like that on a standard vB page so it does not look like the board is messed up. Thank for anyone that can/will help me! Quote Link to comment https://forums.phpfreaks.com/topic/81400-vbulletin-php-help-needed/ 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.