Posted by Andrei Filonov in PHP
on Mar 4th, 2011 | 0 comments
For a moment it was looking like our project got haunted. Suddenly we started getting errors from the libraries being included twice, function exists and class exits kind of error. First few times it was written off as a “honest” mistake and fixed on spot, but it continued to happen again and again. Of course, it was only showing up on production sites, none of the test sites had this issue.
Some digging in the code and pulling hairs out lead to the issue: include_once was failing us. Yes, it was doing include of the same file again! One little detail – that only happened when we used...
Posted by Andrei Filonov in PHP
on Dec 27th, 2010 | 0 comments
Pretty strange issue and I had hard time to Google it up, so here you go, fellow PHP developers.
PHP script which was doing ftp_connect was failing on some installations with Segmentation Fault (core dumped) message. After quite a bit of time wasted looking for answers why, I found that problem was with the FTP host name having trailing line break. Well, that host name was coming from config and technically only developers had access to it, so looks like we assumed that variable “safe” and were not doing standard checks on special characters. To make things worse that line break is hard to...
Posted by Andrei Filonov in Freelancing
on Sep 22nd, 2010 | 0 comments
When I am looking for web development projects I often see an ads when company is looking for someone they call “Web designer” who is supposed to develop website including graphics, user interface, programming, content and then make sure website will be well placed in Google and have an avalanche of visitors. And salary range is, well, limited So, guess what? It’s just doesn’t make any sense. It’s same as getting a handyman to build the house alone on the empty lot. It will take ages to build and you won’t get the same result as your neighbor who got a builders...
Posted by Andrei Filonov in Uncategorized
on Nov 7th, 2009 | 2 comments
If you get error like this one
Error 400
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
That means that your browser is trying to send too much at once. Probably, it’s size of the cookies. The easy way to fix it – delete cookies. Of course, you lose all info in the cookies, but at least you can access site again.
If you develop/manage web site and your customers complain of this error message – there are two things to do:
Review cookies and limit the size of cookies your application stores in the browser....
Posted by Andrei Filonov in Web development
on May 18th, 2009 | 0 comments
I just discovered interesting thing – to my shame I misspelled word “developer” (as in web developer) on my web site and for a while I was advertising myself as “web developmer“. Bad for me I guess. But interesting thing, when checking statistics, I get better position in the search results as a developMer – just because there is not a lot of pages with same typo. Just to compare – when I search for the web developer it returns over 56 millions of pages and for web developmer it’s only 4500. So, I guess if I add more words like this to my page saying...