|
| |
| |
| |
|
Statistics |
| Unique Visitors: 0 |
| Total Unique Visitors: 0 |
| Visitors Out: 272 |
| Total Visitors Out: 272 |
|
|
|
| |
|
|
| |
|
| Image uploading security |
| 2008-03-24 11:32:40 |
There are hundreds of methods to exploit a php script, but there is one, that many people just don’t pay much attention to.
The real problem happens when your script can upload files.
First of all, if your script just uploads ANY file, an attacker can upload a php shell and gain access to the server. But [...]...
|
| |
|
| Custom buttons using CSS |
| 2008-03-16 17:00:14 |
It’s a web 2.0 era, so why would you use a normal gray button when you can make custom ones to fit your website style?
Well a button is just like any xhtml tag, you can customize most of it’s properties: font, color, size, background, etc.
Have a look at this:
<style>
.mybtn
{
width: 200px;
[...]...
|
| |
|
| Common CSS Mistakes 1 |
| 2008-03-12 18:11:25 |
As in everything we can make mistakes, and when you develop a site using multiple technologies (PHP, MySQL, JavaScript, CSS…, etc) there will be more placed to make mistakes/errors. So CSS is not an exception.
p .a
{
….
}
p.a
{
….
}
Take a look at these 2 codes. What is the difference?? Got it? the space between ‘p’ and [...]...
|
| |
|
| Secure data: Filtering input variables |
| 2008-03-06 20:23:26 |
Hundreds if not thousands of vulnerabilities have been discovered in php based application because of the lack of filtering of input data. You can never trust a user, and verify what you are receiving.
The lack of securing input data can lead to sql injections, php injections, path disclosures, and more vulnerabilities. Some of these can [...]...
|
| |
|
| Logging var_dump() output |
| 2008-03-04 07:11:00 |
I’m pretty sure you have already heard about var_dump() or print_r(). These 2 great functions are very useful to debug the code by seeing what each var, array, class or whatever has inside it….
Well the only problem is how to “save” their content to a variable or wherever, maybe to later insert it into a [...]...
|
| |
|
| Drawing with PHP: array to graph |
| 2008-02-29 12:33:27 |
Ever wanted to make something like this with PHP ?
Well, today I will show and explain the script that generated this beautiful graphic.
PHP supports drawing functions with the GD library which provides many necessary image manipulation functions.
Using these functions we can actually transform the array to this graphic. The array must have no more than [...]...
|
| |
|
| SQL: DISTINCT vs GROUP BY |
| 2008-02-26 11:49:20 |
One day I saw an interesting poll on phpfreaks.com
Basically it is about what is better to use SELECT DISTINCT or SELECT … GROUP BY. Well that’s what I’m going to solve today Benchmarking it!
For this test I created 1 table like this:
CREATE TABLE `testing`.`benchmarking` (
`id` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY [...]...
|
| |
|
| Send mails even to hotmail boxes |
| 2008-02-25 11:37:52 |
I guess I’m not the only one that had this problem. One day I needed to make a registration script that sends confirmation email to the user before activating it. Well, I made that script, the whole confirmation system and of course the mailing function that would send an email to the user. And yes, [...]...
|
| |
|
| Welcome to Gaming With PHP |
| 2008-02-24 13:27:01 |
Hello and welcome to this little yet another blog
I know you will ask what is special about this blog, well hold on, you will see everything a bit later, but now I will explain some things that I will put here.
Well first of all, this blog will be completely dedicated to web technologies [...]...
|
| |
|
| |
 |