in reply to Re^3: perl program for importing files on local system
in thread perl program for importing files on local system

Hi Marto, thanks for replies ,actually i think mistake is mine i am probably not clear in description of requirements ,let me try once again , users are accessing server thr browser only ,supppose we are USING that CMS,now some one wants to IMPORT a file which is on HIS LOCAL SYSTEM inside the CMS ,there is no UPLOAD required here as per my unstding of that CMS,we just need to import the file through a perl/SCRIPT which will be launched when we click a button inside the CMS ,i have developed that button but when i am not able to write the perl/CGI script which wll execute when the user hits a button and "something" will happen through which user will select files on local system and import it within server i am not sure i am still clear or not but still thanks for ur earlier replies regards, rahul
  • Comment on Re^4: perl program for importing files on local system

Replies are listed 'Best First'.
Re^5: perl program for importing files on local system
by marto (Cardinal) on Jan 28, 2009 at 14:21 UTC

    Hi rahulgsp83,

    I think that this explanation is much clearer, did you look at the code in the link I provided in my previous post? You could set this up as an example on your server to see how it prompts users to for a file to upload from their local machine to a server.

    Once you are happy with how that is working you could either integrate the functionality with the existing CMS code, or maintain this as a separate script.

    Hope this helps,

    Martin

Re^5: perl program for importing files on local system
by Zen (Deacon) on Jan 28, 2009 at 14:30 UTC
    Your understanding of the word 'import' is incorrect.

    I import when *I* take a file from somewhere and (usually) load it to some environment. A network connection is not implied. Example usage: I imported a log file into my spreadsheet program.
    I download when *I* transfer a file from somewhere to a local file system over a network connection. Example usage: I downloaded the perl module from CPAN.

    I'm not trying to be the language police, but your use of caps lock on words that don't fit, combined with gradually explaining the problem post by post instead of up top where it belongs, doesn't help. As it stands now, all your users are importing local files into a local cms system on their local server, because there is no upload (and as such, no download) taking place.