English 中文(简体)
SPSS and PHP/MySQL Integration
原标题:

I apologize up front for the broadness of this question, but I m wondering if anyone has any suggestions/pointers.

A friend s company uses SPSS for statistical data, surveys, etc. They d like to be able to slice and dice the info via a web interface. I have no knowledge of SPSS, so there may be a simple web front end, but being a PHP/MySQL guy, I wondered if SPSS data can be exported in a way that MySQL can import or PHP can parse. Then I could build an AJAX front end to return queries in real time.

The idea would be a results table that changes when you make selections like "Gender: Male", "Age: 20-25"... each change would update the results in the browser.

So...

1) Can SPSS accomplish this with some kind of front end?

2) Can the data be easily exported in a generic format?

I just want to know if I m on a fools errand before I talk to my friend s boss about ideas.

TIA. Don

UPDATE: I had a meeting at my friend s company to discuss more specifics. It sounds like the SPSS data is stored in MS SQL Server, so I m thinking that I could connect directly to the data if I can see some kind of schema logic and write my own web front end against it.

Alternatively, I may be able to do a scheduled data dump of the data into another format.

最佳回答

http://www.spss.com/smartscore/

In addition, it appears that SPSS has an available API to make the SPSS information available to other apps. Assuming you could get a connection to the SPSS system, it d be a matter of CURLing the information back and forth (a web service) Aside from the XML brain damage, this is one of the best ways to get two non-similar systems talking to each other.

问题回答

SPSS has ODBC capabilities, as does MS SQL. Using ODBC you should be able to import all the appropriate tables to your MySQL db and hack away. A generic file dump (SPSS can export to a variety of file formats) would also work, but just includes a few extra steps.

In SPSS the gui for data export will be different depending on the version. Here is an example setup: http://www.indiana.edu/~statmath/stat/all/odbc/4.html#4b





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签