Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Tuesday, November 25, 2014

WordPress redirect loop

If your blog is working fine when you include the "www" in the url, but you get a "This webpage has a riderect loop" message when you omit the "www" here's a quick and dirty solution for your problem.

Tuesday, November 18, 2014

Sunday, February 5, 2012

Image resize filter for xupload in Yii framework

I was recently testing a wonderful AJAX upload widget xupload for Yii framework and decided that I want to resize the picture after it was uploaded. I found another extension Image that did the trick perfectly, but one question remained: where should I put image resize code, so that I wouldn't have to change the xupload code?

Thursday, March 19, 2009

Simple PHP website tutorial

If you ever tried making a simple website with only a handful of pages, you probably noticed that once you need to edit some menu element, you have to edit all of your pages, which can be very irritating.
The simplest way to solve this problem without resorting to coding is using frames. I encourage you not to do that. You can see for your self why.
Instead you can apply one of the following PHP techniques.

Tuesday, March 17, 2009

include, require, include_once, require_once

When it comes to dividing and ruling your code, PHP has a confusing amount of standard functions to do the job. Take include() for example. It works fine so why make the other copycats?