[PHP] re[PHP] moving data from old users (session_set_save_handler ??)

2009-05-20 Thread pere roca
hi all, I need to remove data when user leaves my webapplication. I fire an unload event (that calls a php script) but sometimes fails, so I need a more secure option. I wonder if session_set_save_handler is what I need. I think so but not sure. So, EVEN if the user leaves my webapplication, wil

[PHP] re[PHP] moving data from old users (session_set_save_handler ??)

2009-05-13 Thread pere roca
mean that only 1% of the old sessions (and associated actions) are deleted each time? Some idea? thanks alot, Pere Roca -- View this message in context: http://www.nabble.com/removing-data-from-old-users-%28session_set_save_handler---%29-tp23522607p23522607.html Sent from the PHP - General mailing

Re: [PHP] download file from an ajax request

2008-06-20 Thread pere roca ristol
yes Iv, surely this is a more js/Ajax issue... this is the one who has to do something with php answer. sorry, Pere 2008/6/20 Iv Ray <[EMAIL PROTECTED]>: > Eric Butera wrote: > >> The only thing I can think of is using JS to create some sort of >> IFRAME, meta redirect, window.location,

[PHP] download file from an ajax request

2008-06-20 Thread pere roca
hi everybody! Hi! is there some way to allow downloading a PHP generated file from an ajax request? the simple code below generates the image but not prompts the "save or open file..." (it works if I call it directly, not from an HTML and using ajax...) thanks, Pere $layer=$_GET['params']; //

[PHP] an easy destroying session issue...

2008-04-02 Thread pere roca
for destroying the session without closing the browser it should work... http://www.nabble.com/an-easy-destroying-session-issue...-tp16447090p16447090.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] auto-populating multiple boxes... php and pg_fetch_array problem?

2007-12-05 Thread pere roca
hi everybody, there is a nice tool using jquery/php to populate multiple select boxes out there : http://remysharp.com/2007/09/18/auto-populate-multiple-select-boxes/ it must be a very stupid question but I’m trying to apply this tool to get data from postgreSQL, but I always get an empty [] valu

Re: [PHP] manipulating XML via php DOM

2007-11-21 Thread pere roca ristol
ontophaugs332 > > > > > > > > Regards > > Jonas > > On Tue, 2007-11-20 at 10:27 -0800, pere roca wrote: > > please, I need some help with php DOM, for me it's becoming a hell! > > > > After trying other methods (check message from 19

Re: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread pere roca ristol
Thanks for the answer, you are right, Jay, I don't want nor reload the page nor a new .php page (the one that works with the data I post) appears. It's difficult to believe that a so dummy thing is not working in php (without Ajax)! I found this URL explaining ajax/php for uploading files. h

[PHP] uploading files... necessary Ajax?

2007-11-21 Thread pere roca
Hi, a basic question: I want to send a CSV file and some other parameters. In my FORM I have method=POST input type="file" and action="http://php";; It sends it to the php file but I don't want the php to be visualized (in fact it just works with the data and inserts in database). I want to k

[PHP] manipulating XML via php DOM

2007-11-20 Thread pere roca
please, I need some help with php DOM, for me it's becoming a hell! After trying other methods (check message from 19th november, called "php DOM question"), I'm getting a little more success to manipulate XML. >From the code you can see below you generate this xml. Now I just want to keep only

[PHP] php DOM question

2007-11-19 Thread pere roca
hi everybody, I'm starting with the php DOM tools with some success. I want the user to dynamically alter the values of an xml tag () and incrustate this tag in a predefined XML. This original XML is like this: ... userID nom USUARI

Re: [PHP] manipulating CSV files

2007-10-03 Thread pere roca
o "$file_data written to $entry"; > flush(); > } > } > fclose($handle); > fclose($entry_file); > } > else > { die("Error opening $filename"); } > > / > > > pere roca <[EMAIL PROTECTED]> wrote: >> >> hi folks, >>

[PHP] manipulating CSV files

2007-10-01 Thread pere roca
hi folks, I have a CSV file. Data is separated by ','. For example: -94.86524,42.059444,A,B,X -96.86524,42.059444,A,B,Y1 -99.86524,42.059444,A,B,C1 I want to interactively insert the user_name (passed by a php variable) into the first "field" to insert then on my DataBase. Pet