I am using HTMLPurifier for PHP to ensure that all external links in a piece of HTML that the user provides have the nofollow tag. The problem Is that when I run the code, it will make all links nofollow, including those for my own…
Rather than having to use an include a statement to include every new PHP file I add to a directory, is there a way to tell PHP to just load all files in a directory. Some kind of recursive call to load everything.
I am trying to make a get request using file_get_contents and I want to get back the HTTP headers from the response along with the content body. Whenever I try to provide the headers to the function, I get the error "file_get_contents() expects parameter 3…
reCaptcha is a smart captcha system that will help prevent spammers from submitting junk data using forms on your website. The system works very well and is relatively simple to implement. This guide will show you how to setup and configure reCaptcha with PHP. In…
This should be a relatively simple task to achieve in most scenarios, there are circumstances where it is not. This guide will show you what you need to do to make custom meta boxes appear above the default WordPress editor in the admin area. When…
Calculating the length of a string is a very simple thing to do in most programming languages. It is an action that you will find yourself needing to perform very often. Be it for validation, reporting or comparisons, knowing how to find how many characters…
I'm not really sure what this setting even does but it is flagged as being really dangerous. Why is it dangerous to have allow_url_include  on a webserver running PHP as the main language and how are you supposed to disable it?
Why is this considered a dangerous thing to have enabled on your system? This sounds to me like something that is quite useful. Why should i be careful about using this?