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...
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...
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 =...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
I managed to solve my current problem by sticking STYLE="padding:0; margin:0" into the <TABLE> tags. It seems that simply setting CELLPADDING and CELLSPACING to 0 is not enough to eliminate all unwanted default padding.
My latest problem is that if I nest tables in a similar way to...
When I set padding in pixels in a cell in a table I get twice as much padding as I want. If I type STYLE="padding-left:50px" I get 100px of padding in IE4 on the mac, but the correct 50px in IE5 in Windows. I know there are bugs in these programs but that is a fairly major problem...
If I have a text file in the cgi-bin directory that I do not want to be readable or writable to anyone apart from myself via FTP when logged into my web space, or a script in the same cgi-bin directory, is this done with permissions?
I have never found a good explanation of what permissions are...
Having been able to set cookies using the Set-Cookie: command I would now like to be able to alter them by deleteing specific cookies, and deleting all cookies/the cookie file.
I'm pretty certain this must be possible, but as yet haven't been able to find out how.
Thanks.
After having spent a great deal of time and effort ensuring consistency between my page's appearence in both IE and NN for Windows I have discovered the inconsistencies between Internet Explorer 5 on my PC and IE4 running in a mac emulator.
The bulk of the page displays fine, I have already...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.