I managed to implement xlsx importation (If you are interested let me know) but I have another issue.
My needs require to import large files and the process can be very long. I would like to display something (a progress bar or just a text to begin with...) while data are stored in order to inform the user that it is working..
I tried to add some echo inside importable::import() but it displays my text at the end of the process.. not very usefull.
Actually, even an echo inside import.php displays at the end of the process...
Well I am not the best php developper so I guess there is something I missed.
It is not easy : In fact, you must interrupt import process to return a reply indicating the progress status, then automatically (in background) call the import phase. This means you must be able to get bacj to import and restart where you stopped (not from beginning).
It is not an easy process to implement.
It is not easy : In fact, you must interrupt import process to return a reply indicating the progress status, then automatically (in background) call the import phase. This means you must be able to get bacj to import and restart where you stopped (not from beginning).
It is not an easy process to implement.
That is what I have seen some times on the net...
Things like :
<?php
if (function_exists('register_shutdown_function'))
{
register_shutdown_function('ta_fonction');
}
else
{
ta_fonction();
}
// On affiche un pixel transparent
header('Content-length: 85');
header('Content-type: image/gif');
print base64_decode(
'R0lGODlhAQABALMAAAAAAIAAAACAA'.
'ICAAAAAgIAAgACAgMDAwICAgP8AAA'.
'D/AP//AAAA//8A/wD//wBiZCH5BAE'.
'AAA8ALAAAAAABAAEAAAQC8EUAOw=='
);
flush();
exit;
?>
Is this applicable ?
Not my priority for the moment, but I'll get back to it.
Or can't import() call a script or something that would update a display somewhere ?
Maybe it's due to the way script is called.
In Project'Or RIA, most calls are Ajax based.
Maybe a standard way would work better... This would involve the use of an iFRame as target.
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Cookies settings
×
Functional Cookies
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Please login to see yours activities!
Other cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.