Web development
Cakephp – JsController could not be found
Recently I wanted to test the ajax capabilities from cakePHP and after setting up the links to prototype.js and scriptaculous.js just as shown on cakePHP website, I’ve noticed the ajax is not working.
In the javascript error console I noticed the error:
JsController could not be found
The problem was that I thought cake will include the above js files automatically from it’s core libraries. Of course it doesn’t so to solve the problem just download prototype.js and scriptaculous.js and place them in the js directory inside webroot
That’s it!
GoDaddy 500 Internal Server Error – Windows Shared hosting

Today I needed to move some sites to a different server. A wordpress and an old oscommerce. The server was a windows server from godaddy – the hosting was a shared one
After setting up the database and the files I run into this error:
500 Internal Server Error
› Continue reading
Godaddy custom php.ini problems and solutions
Godaddy can be a killer of time for a programmer. It can take ages to figure out some things that are just now standard to webhosting.
Recently I took care of a client that had a windows hosting package and needed a script setup that required custom modifications to php.ini.
I’ve placed php5.ini to root web directory (for godaddy if you have php5 installed, php5.ini is required otherwise php.ini) the custom settings were in effect and guess what? mysql wasn’t working anymore:
Fatal error: Call to undefined function mysql_connect() in xxxxxxxx
Solution is to set up a complete php.ini file (you can take it from your computer) from which settings like upload_tmp_dir should be set up from the original php.ini
Of course how the heck you can read the original php.ini? You don’t need to, just create a a test.php and place phpinfo(); there and you should be able to read all the variables that required path alterations to fit the server.
Questions? Please let me know
How to add a custom font on your website
I’ll keep things short so people who want to add a custom font to a website will easily accomplish the task.
in your css file:
p {
font-family: ‘Custom-Font’, verdana, arial;
}
for safari and mozilla browsers:
@font-face{
font-family:’Custom-Font’;
src: url(‘Custom-Font.otf’) format(‘opentype’);
}
for IE:
add this to your html page (the css will be visible only to IE users):
<!–[if IE]>
<style type=”text/css” media=”screen”>
@font-face{ font-family:’Custom-Font’; src: url(‘Custom-Font.eot’); }
</style>
<!–[endif]–>
Note: in order to create an eot (Embedded Open Type) file, use the WEFT tool from Microsoft