Fri, 17 May 2024


How to disable error reporting on a single expression?

By: Peter, NetArt Media
Tue, 12 January 2021

You can do this by preceeding the line with the source code by @

@$fp = fopen($YourFile,'r');

In this case PHP will not report an error if for example the specified file doesn't exist.


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox