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 to be resource". I am not sure what I am…
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 order to set up reCaptcha, you will need to register…
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 you are adding a new meta box to the post…
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 a piece of text has using code is incredibly useful.…
I am developing a custom plugin in wordpress and i am trying to get a new post type added. I have followed some guides to get this done and I dont see any problem with what I have done. The syntax is good and there is no php error being thrown. Still I get the…
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?
I am running an older version of PHP and have been told that the register_globals setting should always be disabled. The method has been deprecated for some time and as of PHP 5.4 it no longer even exists.¬† What does register_globals do and why is it important to make sure that this setting has been…