Re: [PHP] CSV importer tool

2012-11-27 Thread Leandro Dardini
Thank you, but I was looking for a "cute" code... letting the user to swap columns, ignore others, set the number of rows to initially jump, preview data... Leandro 2012/11/27 Jim Lucas > php csv importer script

[PHP] CSV importer tool

2012-11-27 Thread Leandro Dardini
Hello, I am going to write a PHP page to allow the client to upload a CSV file and assign each column to one or more fields of a mysql table. Quite simple, but I feel like I am reinventing the wheel... is it possible there is no library to do it, maybe using AJAX or similar cute techniques? Leandr

[PHP] Segmentation fault while fetching BLOB data from mysql with ODBC

2012-04-26 Thread Leandro Dardini
Anyone has experienced segmentation fault while reading blob (longblog) data from mysql using ODBC? If not, can you provide me few rows of code to show me how you fetch it? I am using php 5.3.3 and this code segfaults: $conn=odbc_connect("db","",""); $sql="select * from table where id=1"; $res=o

[PHP] Websocket using php

2012-03-31 Thread Leandro Dardini
Hello, I have the need to use websockets for the server part of an application I am developing and I found with a big surprise no websocket class or procedure is available on the net. Have I missed looking in some place? Being really interested in using this protocol with PHP, I start from the clo