Monthly Archives: February 2012

Php strip tags

strip_tags — Strip HTML and PHP tags from a string

link

link 2

Leave a comment

Filed under Uncategorized

Tagging Schema

This page and related pages describe various issues surrounding the Web 2.0 tagging and folksonomy concepts, including discussions on schema architecture, common data access patterns, and replication/scale-out guidelines.

link

Leave a comment

Filed under DB

Django Video Tutorial

Leave a comment

Filed under django, python

Online DB schema Editor

DB Schema Editor is a free RIA Web application that will let you design Database Schemas and generate scripts for SQL Server, My SQL, Postgre SQL, SQLite, Firebird and Oracle directly from your Browser.

It’s an amazing tool. I can used to print the schema and export is as any database format (it has mysql format)

http://www.dbschemaeditor.com/

Leave a comment

Filed under DB

Setup Gii on Yii Framework

I have issues to setup Gii remotely, but I find the solution

at this link

which is to change to this:

‘ipFilters’=>array($_SERVER[‘REMOTE_ADDR’],’127.0.0.1′,’::1′),

 

another issues. can’t login clear browser cache and cookies

Leave a comment

Filed under Php

XSPF playlist using PHP

XSPF.PHP generates a Valid XSPF playlist from MP3 file tags.

 

more info click here

Leave a comment

Filed under Php

How to force WWW in a URL

I’ve come across this problem today so I’ll leave here the solution if you are using a Apache server.

So Editing (or adding ) the .htaccess you need to have this code included there:

RewriteEngine on

For FORCING www.
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^(YOUR_DOMAIN_NAME\.com)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]

For REMOVING www.
RewriteCond %{HTTP_HOST} !^www.YOUR_DOMAIN_NAME.com$
RewriteRule ^(.*)$ http://www.YOUR_DOMAIN_NAME.com/$1 [R=301]

This should solve it.

Leave a comment

Filed under Apache