Archive

Archive for the ‘Internet’ Category

How to get client MAC address in PHP

July 4th, 2009 Khalil Majdalawi 1 comment
<?php
exec('arp '.$_SERVER['REMOTE_ADDR'],$user_mac);
echo substr($user_mac[1],strpos($user_mac[1],':')-2, '17');
?>

Note : this technique only works on local area networks with linux based server and its impossible to get mac address in php over internet

Categories: Internet, Linux, PHP, Web Development Tags:

windows 98 still alive

July 2nd, 2009 Khalil Majdalawi 2 comments

today i was shocked as my daily blog check, i noticed someone or “something” is actually still use windows 98 & IE5 WTF ?! this person “zombie” should be jailed of illegal use of internet or send him back to hell .


traffic_from_win98


i wonder if there any version of firefox for windows 98 he could use?!

RIP IE6 for god’s sake

May 28th, 2009 Khalil Majdalawi 3 comments

ripie6-2

if i hate Microsoft , IE6 will be the reason not BSOD not security not stability , “IE6” i wish it vanish for good

ripie6-3

RIPIE6 to donate for memorial service

Enable Mod rewrite in apache

May 21st, 2009 Khalil Majdalawi No comments

For Debian use

sudo a2enmod rewrite

For Windows

  1. Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
  2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so
  3. Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.

restart your apache service and you are cool to go

FireFox Passed IE 6 in web share

March 8th, 2009 Khalil Majdalawi No comments

What A greate day for web developers , IE 7 here we come ;)

Source: StatCounter Global Stats

Categories: Internet, Web Development Tags: , ,