Building firebird extension for #php 5.3.x on windows

Short notes on how to compile Firebird extension (called interbase) on Windows 32 bit (the same ideas can be used for 64 bit too)
I have used Visual Studio c++ compiler 2008 (aka Vsc 9)
ps:
By default php developers on windows don’t have the firebird extension enabled in php 5.3.0 and the required dll (fbclient)
we try to fix that the vodoo spell is to kill one compile firebird stable with vsc9 and send them the instructions how to do the kill compiling but we have the recipe for that too and maybe we can kill compete with microsoft sql server on windows too if they let us

IBDeveloper magazines now on-line

From Firebird Surgeon blog:

As you know, IBSurgeon was a publisher of “The InterBase and Firebird Developer Magazine” (or shortly IBDeveloper) in 2005 and 2006. There were 4 issues which attracted a lot of interest (up to 20000 of readers) but at that time there was no way to monetize it, so IBSurgeon decided to close the magazine as a redundant line of business.

Now we’ve put all issues of IBDeveloper to Scribd for easy reading and full text search indexing. You know, there are still “all times greatest hits” articles and materials (like one regarding locking in Firebird by Ann W. Harrison in Issue 2).

Read full post and check the magazines here.

Cast Date to Integer, like Delphi does.

Today I needed to convert a Delphi/Pascal code to Firebird PSQL. Part of the code used the integer value of a date to do some calcs. First, I tried to use Firebird CAST to convert a Date to Integer, but FB can’t do this type of cast (anyway, I’m not sure if the result would be the same as Delphi, since I don’t know what starting date Firebird uses for internal storage). So, the solution was to create a workaround and subtract the date from 30-December-1899 (Dublin Julian Day), ie:

my_int_var = current_date – cast(‘30.12.1899’ as date);

The above line will return the integer value of the today date, as Delphi/Pascal would do. In other words, it is the number of days since 30-Dec-1899.

New article: Graphs in the database, SQL meets social networks

Lorenzo wrote another impressive sql article :This morning a new article of yours truly has been published on theĀ TechPortal. The title is Graph in the database: SQL meets social networks, and it’s a natural sequel to my talk aboutTrees in the database.
You will learn how to retrieve linked nodes, and how to answer some of the queries typical of social networks like LinkedIn, Facebook, or recommendation systems (“You might also know/like”, “How you are connected to XY”, …).

1 34 35 36 37 38 78