I recently added a new tool to my www.ThePhpPro.com web site.
This tool is a PHP Code Beautifier program.
There has been just one problem. Sometimes when I pasted a huge amount of text into the box, I would get an HTTP error message stating “FORBIDDEN.”
This was extremely vexing, and I banged my head against the wall many times trying to figure this out.
I tried putting enctype=”multipart/form-data” in my form tag and I thought that had fixed it. Indeed, enctype=”multipart/form-data” did fix a couple of problems with large amounts of data, but it did not fix the problem with FORBIDDEN.
I just experienced it, just now.
I found a really simple solution to this on the WordPress support site by Googling this phrase:
why when I’m posting php code to a form using http post do I get a forbidden error
Here is the solution:
A simple .htaccess file in the same folder as the script with a single line in it.
SecFilterInheritance Off
Hopefully this helped you.
Older Posts:
bumptop - new windows desktop interface
"Full Blown Desktop Replacement Installed Machine. Check Out."
new php article
"Issue. Many People Different Opinions Templates Article Present Believe Best Practice Approach. You Read Article."
Newer Posts:wordpress plugins
"Options Form From Code Required Save Settings. Php Function PluginNameSaveOptions $options Get_option 'pluginShortNameSettings' $options 'settingA' Stripslashes $_POST 'settingA' $options 'settingB' Stripslashes"
wordpress plugin activation code
"Support Question WordPress Codex I'm Posting Here Future Reference. However Pattern Pattern Use Needing Activate Function Plugin. $activateFunction 'activateMyPlugin' Change"
