May 5 2010
Please wait
This script trys to check for any direct Absolute Path call for the function include, include_once, require, require_once, fopen, file_get_contents, and file_put_contents in the code, and report them back.
Well, it’s a bit useful for detecting were are some of the hardcoded paths are used into a PHP Project. Hope you will find it useful.
get from github
no comments | tags: Absolute Path, Coding Practices, Git, Github, PHP | posted in PHP, Releases
Jun 18 2009
Please wait
Every now and then I recieve some emails from Zend about training (I have an account there for the certifications I got), usualy they go directly into the trash. Continue reading
1 comment | tags: PHP, Training, Zend | posted in PHP
Jun 4 2009
Please wait
I’ve been expermenting with ruby for sometime now, and I’m really enjoying it, and I’m now coping with ‘#’ comments 
Now one of the points that’s about functions, is how do they pass, by value, or by reference. So to try out Ruby. Continue reading
no comments | tags: C, functions, Handle, PHP, Pointers, Ruby | posted in C, PHP, Ruby
Jan 13 2009
Please wait
When you have more than one gentoo machine, a good thing to do to manimize the bandwidth usage, is to run some local mirrors, so that you would get the file only once, for all the machines.
Continue reading
1 comment | tags: apache, cache, gentoo, mirror, PHP | posted in Free Software & Open Source, PHP
Feb 28 2008
Please wait
Working in PHP, all this time, and the big uses you find in regex, and all the string processing we need to, could make us forget our old friend that can easily solve a problem.
sscanf, do you remember it, well, for quite some time I didn’t, until I saw it in a random code I found online, so this post is a reminder that this function exists.
An example, if we have a date, lets say coming from a Mysql DB, (ofcourse you can use strtotime, but sometimes it has it’s limitations) and you want to get the year, month, day, hour, minutes, and seconds, and you have it in a string, you can parse it with some splits, but 1 call of sscanf can do the job.
<?php
$date = ’2007-05-18 22:15:03′;
sscanf($date,‘%d-%d-%d %d:%d:%d’,$y,$m,$d,$h,$i,$s);
var_dump($y,$m,$d,$h,$i,$s);
and thats all.
no comments | tags: PHP, sscanf | posted in PHP
Feb 16 2008
Please wait
I’ve written a small CAPTCHA library, in an OO style, and I love to share it with you
http://alaaibrahim.github.com/php5captcha/
Comments Off | tags: CAPTCHA, PHP, php5 | posted in Free Software & Open Source, PHP, Releases