Archive for the 'PHP' Category

CoolUri plugin for typo3

Thursday, August 30th, 2007

This is perhaps more of a convenient place for me to store install instructions than anything… BUT:

Installing CoolUri in Typo3 on linux / apache2 / php5

Based on: http://docs.google.com/View?docid=dd33gg45_3f8j96p
Steps :

Check if the weberver has the following settings:
PHP5+ with SimpleXML enabled
MySQL 4.1+
Apache’s mod_rewrite enabled

Go into the extension manager
Choose menu option ‘Import extensions’
Upload extension file: cooluri_1.0.4.t3x
Found here ( http://typo3.org/extensions/repository/view/cooluri/ )

Once imported, install it and accept its defaults (altering tables etc.)

Add a htaccess:
(check that it covers all folders in the root directory)

# Enable URL rewriting
RewriteEngine On
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|css|calculator|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|css|calculator|fileadmin|uploads|showpic\.php)/.*$ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# Main URL rewriting.
RewriteRule .* index.php [L]

Copy across the CoolUriConf xml file:
cp typo3conf/ext/cooluri/cooluri/CoolUriConf.xml_default typo3conf/CoolUriConf.xml

Add a domain record
- Go to the homepage, -> NEW -> DOMAIN (add the domain name in)

Add the following to the main template setup::

# Cooluri
config.simulateStaticDocuments = 0
config.baseURL = http://mtaa.supernaut/
config.tx_cooluri_enable = 1
config.redirectOldLinksToNew = 1

Go to the backend and select the ‘CoolUri’ menu item
Click ‘Delete/Update all’ -> DELETE EVERYTHING AND START AGAIN

Clear cache

Try.

For CATMENU see note from Jan:

try to remove the part which removes cHash parameter from URLs. Since
tt_news are cached, they either require cHash or you’d need to make them
COA_INT.

A reliable text editor

Wednesday, May 9th, 2007
scribes

I was complaining to someone the other day about how most text editors fail to deal with large files. I was trying to edit a 8mb sql file and my default editors eclipse and cream (a vim extension) both couldn’t handle it. I then tried emacs and jEdit neither of which I particularly like. jEdit at least opened the file. But the interface is clunky and on my system at least, wont go past 800×600 screen real estate…. (more…)

PHP frameworks - symfony

Friday, January 20th, 2006

I’ve been playing with a few php frameworks - check this list , most of which were pretty cool, but I couldn’t see myself using on an extended basis. However symfony looks really good. After getting past some install errors on ubuntu (blame PEAR), everything worked really smoothly. It reminded me of the first time I played with ruby on rails and was astounded to have a simple website with DB functionality within a couple of minutes.

The features which I think make this framework shine above the rest are its implementation of MVC which is really smooth and its easy template system.

You should check it out. Askeet was build in 24 days as part of a symfony advent - its a good example of how quick it is to get a web app online with symfony.

technorati tags: ,