Recently Added
Posted by khumlo Freddie in HTML, PHP on 28. Sep, 2011 | No Comments
This application of uploading multiple files will work only on new versions of Firefox, Safari and Chrome. IE stills continues to be developer’s nightmare in this powerful feature too. Until the arrival of HTML 5, we had to upload only one file at a time but now we can upload multiple files at one go. [...]
Posted by khumlo Freddie in apache, OS on 27. Sep, 2011 | No Comments
Every time I turn on my system and logged into it, I had to follow the tradition of finding my wampmanager.exe file and run it so that I can fire http://localhost on internet browsers. But now I am following new norm, thanks to scheduler. However, how to start wampserver each time while booting the computer [...]
Posted by khumlo Freddie in Drupal on 08. Sep, 2011 | No Comments
To create a block which will only be displayed in case when user visits a specific content type, I am using an example of displaying a block throughout all blogs. You have one simple option to add blog/* at the listed pages but what if user access a blog content type through using node/1234, it [...]
Posted by khumlo Freddie in apache on 26. Aug, 2011 | No Comments
Most cases you find websites with images folder somewhere at the root folder. So, when a user type www.example.com/images they end up with the lists of images under your images folder. Similarly, your server scripts are also exposed easily to everyone. It’s not cool to show off because malicious users can easily harm your application [...]
Posted by khumlo Freddie in browser, HTML on 22. Aug, 2011 | No Comments
You may have come across websites which when you opened it, asked you whether you want that page or website to be set as a default homepage for your current browser such that whenever you reopen the same browser, a new tab will be initialized and your website will be called. To set your website [...]
Posted by khumlo Freddie in Javascript, jQuery on 06. Aug, 2011 | No Comments
When you have situation where there are multiple images and when clicked you want to used the id of the clicked image. So depending on this id you implement different operation on the page. Getting id of the element which triggered an event On HTML page,copy and paste below codes <div class=’images’> <img id="sun" src="image1.jpeg" [...]
Posted by khumlo Freddie in Drupal on 04. Aug, 2011 | No Comments
In this post, I am going to write of how to run several multiple Drupal sites using a single codebase. Sometimes you may want to host multiple sites with almost same code and for each addition of site or domain name, you only need to create new database where user table is shared throughout. If [...]
Posted by khumlo Freddie in AJAX, PHP on 25. Jul, 2011 | No Comments
This is a simple example is how you can send a JSON data through AJAX with a small tips of how to convert a PHP array to JSON data, stringify JSON data in javascript and converting JSON data back to PHP array. Converting PHP array into JSON data (say edit.php file). $value = array(’id’==>1, ‘name’==>’khumlo’); [...]
Posted by khumlo Freddie in AJAX, PHP on 22. Jul, 2011 | No Comments
I want to share my experience with all of you of how to submit multiple forms with single submit button using PHP. It’s a great day for me today, finally I have executed what I term it as a creepy grapevine task. Well The problem goes these way:- There are multiple forms under single form [...]
Posted by khumlo Freddie in PHP on 19. Jul, 2011 | No Comments
Ability to determine file access and modification time offers important aspect for administrators, especially in those web applications which involve multiple users update intensive operations. PHP offers three functions to determine file access, creation and modification time. File last Access time – fileatime() returns file’s last access time in Unix timestamp format or false on [...]