My Online Voting System – Using PHP
Finally it is done! My first ever program made using PHP! I have been using PHP for quite long, around 2 years already, but I have never coded any project by my self since almost everything is readily available on the net (I mastered copy-paste-edit method!
).. I have planned this already for years but never had a chance to materialize it. But of course not until last month. Since my internet connection (1 mbps Wired Globe Broadband) was a bit useless (May 2011) due to its very annoying disconnect/connect status, I started my Apache server/MySQL, opened my NetBeans IDE, and started a PHP project. The very first php file I have coded was the voting form, I started with a single candidate added manually on my db. Next php file I have coded was for the candidate registration…. and so on…. After finishing almost everything, I realized that I don’t have a login form. Since I am already exhausted
and wanted to learn from others implementation, specially on security – protection against malicious users, I opened a file which I have downloaded which is a login script. Well in short I didn’t actually code the login-voters registration files.
… Yep I performed some editing on it, ‘coz its a general login-registration form and I need it to fit my needs for voter’s registration form for student organization. Another part of the system which I didn’t personally code was the countdown timer. It was also a copied script from the web – I don’t know the original author ![]()
All in all it is composed of 42 files 2 were html, 1 css and 39 php.
Heres the link: http://www.jeffric.com/vote/
Its not 100% perfect, nor it is 100% secured. Since it is online, it is prone to malicious attacks. I have tried my best to protect it against attackers but of course I cannot guarantee it.
How to prevent computer viruses [malware] from infecting your computer
How to prevent computer viruses [malware] from infecting your computer
Your computer can be infected with a computer virus in many ways. The most common is from the internet, by downloading programs, music, opening email attachments, or downloading any “free” software (including crack) on the net. Others get it [a worm] from their local network if one of its peers got infected. And another very common is from our removable storage device which includes our USB Flash Drive, Memory Card, Cellphones, Digital Camera, External HDD (and more – everything that can store data) – as soon as we plug it in a computer that is infected, these devices will become a carrier of a computer virus – because a virus can copy itself to any storage devices for it to propagate. But no worries, computer viruses can only infect computers with a specific OS (Operating System) so, your devices will not be affected. It’s a program so it has also system requirements like it can only be executed on windows operating system or linux os.. ![]()
So a computer virus behaves like a biological virus. First, it needs a host, second, it needs a medium so that it can infect others, third it is destructive in many ways, and fourth it needs to be triggered before it releases its payload.
Here is a very common scenario of how a virus spreads. Continue reading
The C++ Built-In Data Type and Arrays
The C++ Built-In Data Type
C++ provides built-in support for primitive arithmetic data types such as integer:
//declares an integer object, ival
//initialized to a first value of 1024
int ival = 1024;
It also supports double precision and single precision floating point data types: Continue reading






