Browsing All Posts filed under »PHP«

Algorithm for string similarity – better than php Levenshtein and similar_text

March 25, 2011

6

In a current pedagogical project, the students are supposed to answer questions/solving tasks using a drag-and-drop interface. This interface has to be general and loadable with different kind of pedagogical stuff. Examples could sorting things in order depending on let’s say weight, or sorting months in the right order onto a circular board with 12 […]

Php: interacting with Google spreadsheet using Zend Gdata

February 5, 2011

7

Here’s a quick post describing how to interact with a Google spreadsheet using Zend Gdata libraries. Download the libraries from here, grab the Zend directory from the library folder and put it in the root of the script described below. Create a new Google spreadsheet, and grab the “key” part from the browser address bar […]

GWT: Developing in hosted mode with php, json and XAMPP – Part 2

November 22, 2010

2

Now we are up and running with a xampp served frontend. Let’s go for a connection to php backend. Php server script 1. The php server script could be created inside the current GWT project directory, or as a separate project outside. For simplicity, we here create a server folder inside the GwtPhp project, and […]

GWT: Developing in hosted mode with php, json and XAMPP – Part 1

November 22, 2010

3

When developing using Eclipse GWT plugin and hosted mode, the html files (and java server resources) are served via the plugin jetty server. This makes it really quick and easy to get going with developing java server solutions, but it doesn’t play with php out of the box. Thw GWT startup pages suggests deploying the […]

Getting started with PHP Cairo graphics extension on XP

November 6, 2010

2

The Cairo graphics library (http://cairographics.org/) is a widely used solution for rendering graphics to different devices – bitmaps, pdf, svg etc. It’s used by Mozilla, Inkscape, Gimp etc. Some time ago, I realized that Cairo is available as a native php extension: http://php.net/manual/en/book.cairo.php. Great! To get it running on XP, I did the following: Download […]

Simple encrypt/decrypt in AS3 and Php – Base64 blues

August 24, 2010

10

Needed the possibility to handle simple string encryption/decryption the other day — handling the same data in both php and As3. Just a little bit of key salting, and some Base64 encryption. No problem except for the Base64 part. When trying this out, only one of my Base64 libraries gave the same result as the […]

RESTful PUT/DELETE with AS3 using X-HTTP-Method-Override

August 10, 2010

1

Flash/Flex doesn’t support PUT or DELETE requests, because the browsers don’t — due to limitations in the NPAPI. This is a source of frustration. Workarounds using sockets or prioxies are messy, don’t work with binary data or some other problem… But fortunately, there seems to be a good (enough) solution! Keenan, at Automata Studios, blogs […]