Showing posts with label php 5. Show all posts
Showing posts with label php 5. Show all posts

Monday, December 22, 2008

Hello world from firebird php on windows

download windows setup for firebird
in my case i test 2.0.5 rc2
http://www.firebirdsql.org/download/prerelease/win32/Firebird-2.0.5.13206_0_win32_RC2.exe
Download flamerobin
in my case 0.9.1.x
ttp://ovh.dl.sourceforge.net/sourceforge/flamerobin/flamerobin-snapshot-0.9.1.1822-setup.exe
download php zip or setup version from php.net
http://ar.php.net/distributions/php-5.2.8-Win32.zip
in my case i have unziped on d:\php5.2.x
rename the default ini to php.ini
uncomment the line with interbase.dll

extension=php_interbase.dll
run cmd.exe
Start->Run
cmd.exe
d:
cd php5.2.x
run
or php -m to see if interbase module is enabled

next create an test script
like this one

and run it like
php test.php from command line
next you need to install apache or nginx and enable them on windows
read the install.txt from php dir

http://gist.github.com/39050

Thursday, August 21, 2008

adding locale in debian and php

sudo apt-get install language-pack-ro-base or
sudo apt-get install language-pack-fr-base

sudo dpkg-reconfigure locales

locale -a
C
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_LU.utf8
en_US.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
POSIX
ro_RO.utf8


write an php test script locales.php

setlocale(LC_TIME, 'ro_RO.UTF8'); // note the charset info !
echo strftime("%B");


php locales.php
august

Thursday, June 26, 2008

In PHP 5 there are some new firebird functions if you migrate from php4. Here is the list of them:



Monday, June 16, 2008

php example for amazon webservice (soap getFunctions)


$wsdl_url =
"http://soap.amazon.com/schemas3/AmazonWebServices.wsdl";
$client = new SoapClient($wsdl_url);
var_dump($client->__getFunctions());

Monday, January 28, 2008

surprise in latest ubuntu hardy server

I have dist-upgraded my server from gutsy to hardy
I needed for php > 5.2.3

and the server says

Apache/2.2.6 (Ubuntu) PHP/5.2.4-2ubuntu4 with Suhosin-Patch