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…
I am seeing recommendations that you should disable the expose_php setting in the PHP.ini file. What is the importance of this? Why is this dangerous for you to use on your web server?
I have just setup php-fpm to replace mod php with Apache on Centos 7. When i try to run the code, I am getting a permission denied error. What am I doing wrong?
I have switched from using mod PHP in Apache to using PHP-FPM. It was always done via restarting apache in the past, so this was never an issue for me. How do I restart the service now that it is running this way?