Archive - Apr 30, 2007

Date

Tom's Hardware

Toms Hardware Logo

Are you a fan of building your own computers? Just an enthusiastic gamer that wants a hot-rod of a machine? I'll have to refer you over to Toms Hardware. Tom's Hardware has many useful resources and things that may be useful to you in your next computer build. I didn't think toms hardware would be very informative to me, although I proved myself wrong when I went and started reading up on some of the posts they had made. I learned so much! Once again I say, if you are a machine enthusiast, head on over to tom's hardware! I'll for sure be building my next machine from information gathered here.

Smarty PHP Template Programming And Applications

I got this from WeberDev by winning the coding contest. It shows how Smarty can work for both developers and designers. What's most impresses me is the connection between the business logic and how to implement it in PHP.
I recommend this to people who might use work as a PHP professional, because many companies uses Smarty.

Status: 
Already Read
Rating: 
Excellent

Interesting PHP related sites for April 2007

I'm showing my deepest RESPECT for the 2 site below.
Alexis Ulrich promotes his esoteric codes by using the common easy to understand PHP. His Brainfuck and PATH is as enjoyable as his serious libraries like XML Parser, .eml viewer and Stemmer.

TheWorldsEnd.Net's knows networking. 3 Networking related PHP scripts: php-ping, php-trace and snmp-collector have combined of over 20000 downloads.

Get the file name without the directories

in

Shocking! This tutorial teaches people very inefficient codes!
Mountains of inefficientness running though every line of the tutorial! AHHHHHhhh
I'm not going to criticize not using __FILE__ part, since sometimes, $_SERVER["SCRIPT_NAME"] can be different from __FILE__.
$file = $_SERVER["SCRIPT_NAME"];
but I have to say something about how to get the a file name without the directories.

$file = $_SERVER["SCRIPT_NAME"];
$break = Explode('/', $file);
$pfile = $break[count($break) - 1];

Build ups of this kind of small unpolished gears could end up with huge performance hit(even though it's usually not noticeable among the users).
I suggest a MUCH faster method:
$pfile = basename(__FILE__);

Honey Pot that kill bots