1 2

le 10 sept. 2010 à 14:31:57

Publié par Axel Etcheverry

Comme vous le savez Twitter a arrêté l'utilisation de l'authentification basic et utilise oAuth pour son API, suite à ce changement j'ai du migrer mes scripts qui utilisaient l'API Twitter.

Tags : PHP, Oauth, Twitter, API

le 10 sept. 2010 à 11:51:12

Publié par Axel Etcheverry

Suite à mon article sur l'utilisation de oAuth pour l'API Twitter j'ai dû installer l'extension pecl oAuth sur mon serveur Gentoo, mais le package n'existe pas dans le portage, j'ai donc crée mon propre ebuild.

Tags : PHP, Gentoo, Oauth, PECL

le 24 août 2010 à 13:11:30

Publié par Axel Etcheverry

Suite à la réinstallation de mon serveur sous gentoo, j'ai été confronté à un problème d'installation de l'extension pecl php-sphinx.

je vous livre la solution qui a marché pour moi.

Installation de libsphinxclient


$ wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
$ tar -zxvf sphinx-0.9.8.1.tar.gz
$ cd sphinx-0.9.8.1/api/libsphinxclient
$ CXXCPP=\"gcc -E\" ./configure
$ make
$ sudo make install

Installation de php-sphinx


$ wget http://pecl.php.net/get/sphinx-1.0.4.tgz
$ tar -xvzf sphinx-1.0.4.tgz
$ cd sphinx-1.0.4/
$ phpize
$ aclocal
$ libtoolize --force
$ autoheader
$ autoconf
$ ./configure
$ make
$ sudo make install

ensuite il faut activer l'extension dans la config php.

créer un fichier sphinx.ini et ajouter cette ligne :
extension=sphinx.so
créer le lien symbolique
$ sudo ln -s /etc/php/apache2-php5/ext/sphinx.ini /etc/php/apache2-php5/ext-active/sphinx.ini

le 3 août 2010 à 16:24:49

Publié par Axel Etcheverry

Voici comment installer l'extension sphinx pour php sur un systeme Mac OSX 1.6.x

il faut d'abord installer Sphinx via port.
shell sudo port install sphinx
Installation de la libsphinxclient
shell wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
shell tar -zxvf sphinx-0.9.8.1.tar.gz
shell cd sphinx-0.9.8.1/api/libsphinxclient
shell CXXCPP=\"gcc -E\" ./configure --prefix=/opt/sphinx
shell make
shell sudo make install
il faut maintenant installer l'extension php-sphinx
sudo pecl install sphinx
à un moment il vous demande d'indiquer le préfixe d'installation de libsphinxclient ajouter /opt/sphinx voir ci-dessous
downloading sphinx-1.0.4.tgz ...
Starting to download sphinx-1.0.4.tgz (12,280 bytes)
.....done: 12,280 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Please provide the installation prefix of libsphinxclient [autodetect] : /opt/sphinx
une fois la compilation finie il vous suffit d'ajouter l'extension dans le php.ini
[sphinx]
extension=sphinx.so

le 9 févr. 2010 à 22:24:54

Publié par Axel Etcheverry

Beaucoup de monde se pose la question comment télécharger les vidéos youtube via PHP sur son serveur, voilà une classe php qui permet de télécharger les vidéos youtube.

1 2