Recursive Category Listing

Webmasters allways use category trees, i wrote a function about creating category trees with using recursive function. Output : Food Fruits Apple Banana Vegetables Tomatoes Aborgin Drinks Soft Fruit Juice Apple Juice Strawberry Juice Milk

Continue reading

Optimize PHP Codes Tricks

Use echo, not print, Unset your variable when your job is over that variable, especially for large arrays, Don’t use require_once, Use full paths for includes, str_replace is faster than ereg_replace but strtr is fastest.. If you can, use strtr, Close your database connections when you are finish your process, Using $table[‘id’] is faster than …

Continue reading

Resizing All Images in Directory

I need a script for resize all images in one directory. I have create thumbnails for a site. I have not so much time write these code. I found two different code and mixed them. I love PHP, it is very easy to solve problem with little scripts. If you resize in same directory it …

Continue reading

BBPress is Forum of WordPress

I create a new web site about “The Martial Arts” with WordPress. I want to create a forum work with WordPress together. I remember WordPress team works on forum software. They called “BBPress“. I install BBPress and it is asked me some WordPress questions about config file, i set them and i have got forum …

Continue reading

FCK Editor is Reloaded: CK Editor

I always use FCK Editor in my php codes, it is really helpful for coding. 10 days ago FCK Editor is reloaded and change its name to CK Editor. There is lots of changing. New Version of FCK Editor (CK Editor 3.0) Working on Chrome clearly It’s faster and faster Better user interface New javascript …

Continue reading

Change Time Zone with htaccess

In my server there are some sites from Turkey, some of from England, some of from Germany. I have got timezone problem in that sites. I found easy solution for this. Just add .htaccess this code: or You can test date is change or not If htaccess can’t solve your problem, add this code to …

Continue reading

del.icio.us bookmarks in PHP

This tutorial uses PHP5 to download and cache your recent bookmarks in RSS format from the Delicious API, then displays them in a HTML unordered list. Source : http://briancray.com/2009/delicious-bookmarks-api-php/

Continue reading

str_replace Case Sensitive Problem

When i use str_replace for replacement in PHP, it is changing without any case sensitive. Example i want to bold HousE, code is Php 5 have another function to solve this problem str_ireplace() . But this is solve my problem exactly. Because i want to replace case sensitive to case sensitive.  I found this solution for …

Continue reading

Copy a Directory to Another Server

I need a script to my directory to another servers. Firstly, i tried to download from my site and upload another site but it is not so fast. Because there is lots of files in that directory. I wrote a little php script for this. I hope you will enjoy.. P.S.: This code is only …

Continue reading

Iframe Virus jl.chura.pl Removal

Today i upload an index file to my web site and i saw an iframe that site. I am shocked. Because i never use any iframe. I enter another sites for checking. All web sites are iframed. In my explorer all web sites are virused. I checked my sites to my friends. They saw iframe …

Continue reading