I was working on a client site today that required me to create a custom php.ini file so that I was able to enable some PHP functions that were disabled by default by their hosting provider. While I was doing this, it got me thinking that I should give you all a heads up about about why you should be cautious when using a custom php.ini file.
In my article “So You Want A Larger Upload Limit Eh…” I walk you through the process of creating a custom php.ini file so that you could modify the upload limit for your server; essentially overriding the default values set by your hosting provider. Your custom php.ini file is a copy, originally based on the php.ini file installed as part of your server’s setup for its default PHP version, and as such, you could run into serious problems if you decide to use another PHP version.
The reason for this being that your custom php.ini copy may contain configuration paths, extensions and other settings that are not suitable for a PHP version that gets chosen down the line. It’s even possible it could be missing settings required by the new PHP version entirely. That would not be good!
An example of problems that can arise between PHP version changes is as follows:
PHP 5.2: extension_dir=”/usr/local/lib/php/extensions/no-debug-non-zts-20060613″
PHP 5.3: extension_dir=”/opt/php53/lib/php/extensions/no-debug-non-zts-20090626″
Notice in the above example that the server path that is used for extension modules is different between PHP 5.2 and PHP 5.3.
If you are working with a custom php.ini copy to modify your hosts default PHP configurations, make a note of any modifications that you have made and then delete the custom php.ini copy you created along with it’s corresponding suPHP_ConfigPath pointer (if applicable, not all servers require this portion), located in your primary .htaccess file prior to implementing a PHP version change!
1140 Grids (34)
While working on the new fancy shmancy designFox.co layout (I know, I know, it’s been a work in progress for awhile. What can I say, I’m a bit of a perfectionist >.> <.< ) I decided to go back and review Browser Window Sizes and Screen Resolutions.
If you’re sitting there thinking “Why the heck did you do that, you know that 960 is the way to go!” you’re not alone… I did to. Then I thought, balls I’m going to just review it anyway.
Read more on “Browser Window Size… that’s right.. BROWSER… not Screen Resolution!” »
Have you ever tried to upload a file to WordPress only to be greeted with the lovely message
“Somefile has failed to upload due to an error. Sorry, this file type is not permitted for security reasons.”
If you’re like me, you probably saw that and heaved an exasperated sigh. @_@ LOL
The quickest way to work around this is to add those needed file extensions to your current theme’s function.php. Read more on “Add Custom File Extensions To WordPress” »
As you sit and read this you might be wondering, Why would I want to do this? What is this for?
Have you ever tried to upload a file directly from your site but couldn’t because the file was to large? Does it leaves you grumbling and shaking your fists. Don’t worry, you’re not alone.
Mercifully there is a 3 step process to get around this, shown below, and the best part is we’re going to walk through it!
Read more on “So You Want A Larger Upload Limit Eh…” »
I was working on a project that required different, dynamic (widgetized) sidebars for different pages. After a few hours of research, loads of articles, and a few failed attempts later I finally succeeded.
I thought I would share this so that it saves anyone else wanting to do the same thing the time of digging through interwebz articles.
Read more on “Different, Dynamic WordPress Sidebars Per Page!” »
[important]*For the sake of this article, I’m going to assume that you have a basic understanding of HTML and CSS.[/important]
“What… HTML5 now… No, No, No, you must be wrong! You’re absolutely WRONG! You can’t use it now, it’s a draft, and it won’t be ready until 2022! REDO ALL YOUR SITES YOU HAVE USED IT IN! YOU HAVE NO RIGHT TO USE THIS IN LIVE PRODUCTION WORK YET!”
Read more on “Browsers: HTML5… “OMG YOU CAN’T USE THAT!” …Why yes sir, I really CAN!” »
Often times I come across lovely websites that still use Dreamweaver’s built in behaviors to create a JavaScript styled navigation. You may have heard them called disjointed rollovers. You can recognize this if you view a websites source code where you will see blocks of JavaScript and coding elements such as onmouseover, onmouseout, onclick and onload attached to individual links.
Read more on “Lions and Tigers and CSS Navigations Oh My!” »