PHP tidy extension Mac

A short description of how you could get a precompiled php tidy extension Mac OSX

At some point php-developers need to use php tidy extension Mac. Usally the activation of tidy.so in the php.ini file suffices. But not for this little extension. The established MAMP application doesn’t provide tidy.so. Nobody knows why. After several hours of research i came to a solution that works considerably and activated tidy.so in PHP version 5.4.10 on MAMP.

There exists several solutions on the web. This one helped me most -> projectbee.org

I don’t know why, but the tidy.so file from projectbee.org haven’t worked on my System (MAMP v. 2.1.3, PHP 5.4.10, OSX 10.8). So i decided to check out the actual zend studio (version 10.1.0) [NO affiliate!] with a 30 day trail.

After installing Zend Studio you can copy the precompiled tidy.so (just search inside Zend Studio app) and paste it to your php extension folder in MAMP.

Mine was:

~/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/

The last step is to activate tidy: Just add “extension=tidy.so” to php.ini file in folder:

~/MAMP/bin/php/php5.4.10/conf/

Done :) .

Of course you can download the tidy.so from here: tidy.so

 

Und jetzt noch mal das ganze auf Deutsch ;) :

Unglücklicherweise gibt es von offizieller Seite immer noch keine PHP tidy extension Mac per default. Dabei gibt es viele PHP-Entwickler, die diese Erweiterung für ihre Projekte nutzen wollen oder sogar müssen.

Nach dem ich lange auf der Suche war und einige Sachen ausprobiert hatte (PHP mit tidy kompilieren,…) bin ich endlich auf eine funktionierende Lösung gestoßen. Dabei hat mir der Blog-Artikel von Bipin Upadhyay sehr geholfen. Allerdings hat mir seine tidy.so version nichts genützt, da unter meinem System diese anscheinend nicht funktioniert (MAMP Version 2.1.3, PHP 5.4.10, OSX 10.8).

Also habe ich selbst die 30 Tage Test-Version von Zend Studio (Version 10.1.0) [KEIN affiliate!] installiert und die tidy.so extrahiert. (Open Source, also keine Probleme).

Danach habe ich die tidy.so in folgenden Ordner gelegt:

~/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/

Als letztes muss noch tidy in der php.ini registriert werden: Einfach “extension=tidy.so” hinzufügen. Die php.ini ist zu finden unter:

~/MAMP/bin/php/php5.4.10/conf/

Fertig. Mit einem Neustart von MAMP sollte tidy nun aktiviert sein.

Hier könnt ihr die tidy.so extension herunterladen: tidy.so

Ein Gedanke zu „PHP tidy extension Mac“

  1. I think that what you posted was very reasonable.
    But, think about this, suppose you composed a
    catchier title? I mean, I don’t want to tell you how to run your blog, but suppose you added a headline to maybe grab folk’s attention?

    I mean PHP tidy extension for Mac – tidy.so in Mac OSX is a little boring.
    You should look at Yahoo’s front page and watch how they write post headlines to grab people interested. You might add a related video or a pic or two to get readers interested about everything’ve got
    to say. Just my opinion, it would bring your website a little livelier.

Kommentare sind geschlossen.