Posts filed under ‘General’
PHP: Fatal error: Maximum execution time of 30 seconds exceeded
This error happens when the execution time of the PHP script exceeds the time limit for program execution in Php.ini file.
By default the timer is set to 30 seconds in php.ini and you can track the time limit by tracing for ‘max_execution_time’ directive in php.ini.
Box model bug in IE, Firefox
Box model bug in IE, Firefox
Display the below versions of the file in IE, Firefox and check the difference in display. Note the css styling used in Sample A and Sample B HTML coding.
When defining the width of the “div” layer it is essential that you need to consider the padding, margin, border size given to each element. As different browser versions have different ways of interpreting these values we need to cascade the width from the parent element to child layer if we were destined to use width for restricting the boundary of the element. (more…)
Install ActiveState Perl on Ubuntu
Install Perl from ActiveState on Ubuntu machine
I prefer ActiveState download for a beginner to have a Perl installation with compiled libraries for immediate execution of various Perl programs. You can grab a copy based on your OS from
http://www.activestate.com/activeperl/downloads/
Download the x86 .deb file for easy installation of ActivePerl on Ubuntu. (more…)
Network Time Protocol – NTP in Ubuntu
Network Time Protocol – NTP in Ubuntu
NTP is a TCP/IP protocol which helps synchronising time over a network. A client requests the current time from a server (identified , and uses it to set its own clock.
The following article on Ubuntu help guide will get you started on setting the NTP protocol
https://help.ubuntu.com/7.10/server/C/NTP.html (more…)
How to delete user or group in ubuntu?
Ubuntu: Delete group or user in Ubuntu
Delete a user in Ubuntu
sudo userdel -r <username>
Delete a group in ubuntu
sudo groupdel <groupname>
PHP4 Vs. PHP5 – What is New in PHP5? – Part 1
In PHP5, Zend engine has been rewritten to accomodate the new object oriented concepts. To start with, I will write on some functions that have been added to PHP5’s bag.
~ The access modifiers public/private/protected are introduced for methods and properties.
~ __construct() is used now instead of the function names in the name of the classes which makes it a uniform way of access
~ __destruct() function is now introduced which will run when an object is destroyed. In PHP5, Zend engine has been rewritten to accomodate the new object oriented concepts. To start with, I will write on some functions that have been added to PHP5’s bag.
~ The access modifiers public/private/protected are introduced for methods and properties.
~ __construct() is used now instead of the function names in the name of the classes which makes it a uniform way of access
~ __destruct() function is now introduced which will run when an object is destroyed
To read more about this article, please click here