Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Tyger

  1. Tyger

    how can I get a list of a directory's subdirectories?

    If you are after the contents of a directory, and the contents of the directories within it, and the contents within the directories within that etc... You are talking about recursion. This script is more complicated than those above but will do exactly as I have described, basically displaying...
  2. Tyger

    File upload, RFC1867, multipart/form-data

    Thanks, that's pointed me in the right direction.
  3. Tyger

    File upload, RFC1867, multipart/form-data

    This is a bit of an HTML/Webserver/cgi question: For a while now I've been struggling with a way of allowing website visitors to upload files. I am not so bothered about the script which receives the data as I know how to do this but I have noticed problems if the user decided to upload a big...
  4. Tyger

    Visibility of REQUIREd files in other REQUIREd files

    Hi, I have been programming Perl for years and should probably know this but it is one of those things I have never seen in black and white: If I have a script like this: ... require "subs.pm"; require "moresubs.pm"; $valueA = &somethingInSubs; $valueB =...
  5. Tyger

    File handle causes caching

    I have written the following simple script to control delivery of a file to a user's browser through Perl. When loading this up the user will be prompted with a "Save as..." dialog box and once they have selected a destination the file will be downloaded to their computer...
  6. Tyger

    File caching before sending

    I am trying to write a software download area in Perl which checks that a user is logged in before delivering a file to them. It is not enough to produce a page with a link on it since this link could be copied and posted on another website as a 'back door' to a supposedly protected file. My...
  7. Tyger

    pattern matching with passed variable

    Hi, I believe your problem lies the leading and trailing "/". This charcater is actually part of the match operation not part of the pattern to be matched. If you remove the "/" from the beginning and end of your regular expression and place them either side in your...
  8. Tyger

    Problem incorporating JavaScript in Perl

    Hi, I don't know a lot about JavaScript, but I believe that your problem is caused by the delete() function you have created. I think 'delete' is a JavaScript command (certainly trying "delete(hello);" appears to work) and Java thinks you are trying to use this command rather than...
  9. Tyger

    how can i put scroll bar to tbody

    I'm not sure you can do this without using something like java. Scrollbars are a function of the browser rather than the html document itself. If I have understood your requirements correctly I would use framesets rather than tables to approach this problem. Frames, like tables, can have...
  10. Tyger

    Exclusive file access and flock on Windows and UNIX

    That's exactly what I was hoping. thanks.
  11. Tyger

    Difference between STDOUT on Windows and Linux

    I have written a script which opens a file handle and then prints the file to the browser with appropriate headers so that the user must download the file, rather than seeing it displayed: print "content-disposition: attachment; filename=\"thefile.bin\"\n"; print...
  12. Tyger

    Exclusive file access and flock on Windows and UNIX

    I frequently find myself writing scripts which access text files as a form of basic database. My understanding is that the file should be locked to grant a script instance exclusive file access and prevent problems if two script instances try to access the same file simultaneously: open(TXT...
  13. Tyger

    Delayed Cookie Updates

    I have used Set-cookie etc. The problem is that if I try to read the new value from the cookie, within the same script which has just set it (Or within a subroutine called from the same script) the cookie contains the previous value, not the new value I have just set. Your reply implies that...
  14. Tyger

    Delayed Cookie Updates

    If I write new data to a cookie and then use $ENV{'HTTP_COOKIE'} to display the cookie's content I always get the PREVIOUS cookie value, not the value I have just written. Even if the "write cookie" and the "read and display cookie" routines are stored in separate scripts it...
  15. Tyger

    Delayed cookie update time

    I find that if I create a cookie or update an existing one it takes a little while for the information to be updated. That is: if I have one program which stores a value in an existing cookie, and then another program is run automatically which reads the cookie information, it will read the old...

Part and Inventory Search

Back
Top