Archive for October, 2005

Oct
26

I’ll be off for the next week, I mean this week and since today. I’ll left some articles and posts for the next week in almost all my blogs cause finally I won’t even moblog. I left also in the last posts of this blog a pict of my head, so you can read directly what I’m going to post hehe no kidding.

This month on phpmagazine.net many news and articles as usual, but here is a selection of the top news :

Oct
22

Flickr Photo

We have a proverb in Tunisia which said that bald person head is near to God. And yes that’s my head :D

Oct
18

PHP Magazine have now a nice toolbar that you can get from http://phpmagazine.ourtoolbar.com/, available for both Internet Explorer and Firefox. I have include actually an RSS reader in the toolbar with my favorite blogs : The blog’s Blog, AJAX Magazine, Googling, Blogging and PHP and the Firefox Magazine.

PHP Magazine Toolbar

If you use internet explorer it’s possible to add your own icons and shortcuts to the toolbar. Support PHPmagazine.net and download the PHP Magazine toolbar. If you have suggestion or idea to it’s welcome.

Oct
18

There is news in the Tunisian newspaper that Richard Stallman, founder of the free software movement will be in Tunisia to participate in the World Summit on the Information Society (WSIS) as a member of the PCT group (Patents, Copyright, Trademarks).

Stallman, the author of the GNU General Public License (GNU GPL or GPL), the most widely-used free software license, which pioneered the concept of the copyleft, talked about censorship in many occasions. He conclude about the WSIS in an article published on GNU website :

The summit may have a few useful side effects. For instance, several people came together to plan an organization to help organizations in Africa switch to GNU/Linux. But the summit did nothing to support this activity beyond providing an occasion for us to meet. Nor, I believe, was it intended to support any such thing. The overall attitude of the summit can be seen in its having invited Microsoft to speak alongside, and before, most of the various participating governments–as if to accord that criminal corporation the standing of a state.

Updated : it’s the founder of the free software movement, and not the Open Source ! thx Swobodin.

Oct
17
Windows vista

No comment !

Oct
17

One of the classes that I’m sharing on phpclasses and I never talk about is DBConv or Database Conversion. The idea of the package is to convert SQL from proprietary structure into standard structure which could be used on different database servers.

I use this class specially to convert from Oracle to MySQL, to have a local database that I can work on more easily and keep compatibilities with the original oracle database.

Oracle users generally have this tool called TOAD, I use it to generate a dump of the oracle database. From menu choose Database, then Schema browser. Select tables you want to convert, then right click and choose “Create script” from the menu. The window below will be displayed :

Multi Table script

Continue reading Convert Oracle database Schema to MySQL

Oct
16

You may notice that this month posting slowed down, it was not problem of time but it was more a lack of ideas. Anyway this month i’ll be more than busy, specially by the end, but i’ll moblog when i’ll find time cause most of the time i’ll be off my pc.

That’s why i have enabled moblogging on phpmagazine.net via atom. And now i’m using lifeblog and a nokia 6630.

This month on phpmagazine.net a new firefox magazine was born, we have exceeded disk space, bandwidth and 1000 visitors daily. A great progress in my opinion, and that’s not all, there is more coming soon. Stay tuned

Oct
14

One of the functions that might be very useful for web development is to create a protected folder on the fly so you can upload files for example without worrying that anyone can access these files.

/**
* Create .htaccess protected folder
*
* @param $folder folder path
* @return
**/
function smkdir($folder){

if (!is_dir($folder)) {
mkdir($folder,0777);
}

if (!$handle = fopen($folder.”.htaccess”, ‘a’)) {
echo “Impossible d’ouvrir le fichier ($filename)”;
exit;
}
$protect = “AuthType Basic
AuthName “No access”
AuthUserFile .htnopasswd
AuthGroupFile /dev/null
Require valid-user
“;
fwrite($handle, $protect);
fclose($handle);
}


Continue reading Create .htaccess protected folders

Oct
11

Ramadan was so busy for me that I didn’t watch the news. A major earthquake on Saturday morning measuring 7.6 on the Richter scale has devastated cities, towns and villages across northern Pakistan. The official death toll in Pakistan reached 19,369 yesterday with over 42,000 people injured, but casualties are expected to climb further as rescue workers reach outlying areas. Hundreds more were killed in Indian-controlled Kashmir. The worst affected in both countries were the poor who lived in cheap housing built of mud brick and wood.

This is few links talking about the disaster :

You can donate to Edhi Foundation, an NGO in Pakistan working for more than 50 years now. Click here to donate http://donate.vergesms.com

Oct
07

Nexen published the latest stats of PHP diffusion on the web for september 2005. In the previous post I was talking about PHP5 which still not popular. You can see that PHP5 usage for september is only 4.22% compared to PHP4 which is 94.50% !

PHP usage september 2005 - by nexen

You can notice also that the most used version of PHP4 are the PHP 4.3.10 and 4.3.11. You can see also on these stats the repartition of php servers worldwide on a world map. The highest percent is in Sao Tomé et Principe (.st) with 82.12 % and the number one arab country is Libye with 58.77 % ! While france have just 44.73 % and USA 34.32 %.

In this stats 9,5 million servers have been tested and 5,5 millions have been retained for the stats. Domains without website, parcked domains or inaccessible have been illiminated.