[PHP] PHP importing CVS data with field mapping

2010-11-06 Thread Don Wieland
Hi gang, I have a need to to allow users to import into my web app via PHP. Is there any functions or javascripts out there will allow user to pick a cvs file, bring up a file mapping UI, then process data based on mapping and insert into mySQL DB. Any help or resources would be appreciat

[PHP] Detect timeout of stream_socket_client using STREAM_CLIENT_ASYNC_CONNECT ?

2010-11-06 Thread Craig Mason
(apologies if this sends twice - email verification issues) Is it possible to detect the timeout of a stream created with stream_socket_client() using the flag 'STREAM_CLIENT_ASYNC_CONNECT' ? As soon as this flag is used, it seems there is no way to detect a timeout situation. tcp://192.168