45 Cache Hits Per Second
We all know that accessing the database can be resource intensive. But did you realize accessing the hard drive is intensive too? Every time you include a file in a script or write to a file, that is using the hard drive. Hard drives are fast, but when you multiply the number of includes, writes, [...]
Creating PHP Splash Pages
Program owners take note! If you’ve ever wanted to turn a splash page into a splash page your users can use, you’ll want to bookmark this page. It’s very simple but if you don’t know how to do it, where do you start?
1. Create the Splash Page in normal, dull, HTML
This is the easy part. [...]
Preventing XSS Exploits
If you don’t know what XSS is, and you are a web developer. Well, it’s time to wake up. XSS or Cross Site Scripting is basically injecting code onto someone else’s website. By doing it, you can do all sorts of nasty stuff.
The good thing is, it’s pretty simple to prevent this in PHP:
$string = [...]
Connection: closed & PHP fsockopen
Wow. It’s incredible the difference two words will make: “Connection: closed” with a PHP command fsockopen changed the website scanner’s speed dramatically. I won’t go into the details, I found them here. But the key thing is for me to post about it so later when I forget about it I can find it again [...]
Developing a Website Scanner
I run a traffic exchange and a common occurance is for people to advertise sites that cause problems while surfing. Sometimes it’s a mistake, and other times it’s on purpose.
Part of my job is to keep things in rotation clean. I’m doing this better by developing a website scanner in PHP. So far it’s working [...]