Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Flash calling Php calling Perl
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="ccc31807, post: 4866479"] Why are you using PHP if all PHP does is act as an intermediary to accept input from Flash and emit output to Perl? Do you really need to have insert and select queries from a database? Seems to me you would have a cleaner and more stable app calling Perl directly and by- passing PHP and the DB entirely to the extent that you perform a write and read operation before you start creating your files. get_data($user_supplied_data); insert_data($connection_dbh, $user_supplied_data); create_documents($user_supplied_data); You implied that this would be suitable for a multi-threaded app but didn't directly say so. If you have multiple cores and multiple tasks, you might be able to decompose your tasks into different processes and queue them to pass to any processor that can run the process. If you have only one processor this probably wouldn't make much sense. I have a couple of tasks that process several thousand files at a time using data queried from a database, creating, printing, emailing, and then deleting each file. My main Perl script calls helper scripts each of which is designed to do exactly one thing. It's mostly a hack, but it works (which is the main thing) and I don't have to wait until the last file is handled to start using the earlier files. CC [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Flash calling Php calling Perl
Top