Skip to main content

Posts

How do you enable error reporting in PHP?

  PHP allows us to choose whether or not to display errors to users. There are three ways to enable or disable error reporting in PHP: Method 1:  You can turn the display error parameter in the php.ini file on or off. When it’s on, errors are shown; when it’s off, there are no errors shown or reported. To do this, locate the display error parameter in the php.ini file, then set its value to “on.” Restart the web server's various services. The PHP script's errors will now be visible to end users. Set the display error parameter to “off” to stop reporting errors. The off argument indicates that users won't see any errors. Method 2:  Using the mini set() function is the second way to enable or stop error reporting. The ability to modify the configuration options in the php.ini file is a built-in feature of the PHP programming language. It requires two inputs: the name of the setting you want to change and the value you want to assign. Method 3:  You can also utilize the error

Sachin vs South Africa Highlights HD🔥 First ODI Double Century hitter | India | Full Match Video

 

How to Create Custom Post Types in WordPress

  We only get three built-in content types at the backend when we install WordPress, i.e., posts, pages, and media. However, today WordPress has become quite flexible and advanced. The approach to adding more post types also has expanded. The diversified usage demands more content types because posts, pages, and media are not enough, and here is where WordPress custom post type comes in handy. What Is a WordPress Custom Post Type? Custom post types are used to convert a regular WordPress website into a content management system. As the name suggests, you can use custom post types to create various content types for your website. Besides that, one can find several post types available by default in WordPress installation, including: Post – blog post Page – static page Attachment – attached media Revision – post revision Navigation Menu – nav menu WordPress supports an unlimited number of Custom Post Types. You can create your custom posts and call them up wherever you want. For example,