Results 1 to 2 of 2
  1. #1
    Full Member c4's Avatar
    Join Date
    January 17th, 2005
    Me and my beginner CGI questions again [img]/infopop/emoticons/icon_smile.gif[/img]

    1) I have a file named (I'm starting to bore myself) "file.txt" and I don't want it to become largaer than let's say 20kb.

    If it reaches 20kb the content of this file should be deleted so the file is empty again.

    How do I do this in CGI?

    2) How do I make redirection in CGI? I tried this:

    $JUMP_TO = ';
    print "Location: $JUMP_TO\n\n";

    but get a "302" ERROR (Even the server log sais nothing else than 302 error).

    Where am I going wrong?


    [ 03-14-2002: Message edited by: c4 ]

  2. #2
    ABW Ambassador
    Join Date
    January 17th, 2005
    Are you able to run a cron job on your server. If so, you could have this thing delete on any given day at any give time. You wouldn't be able to do it based on size, but if it takes 1 month for your file to get that big, you could cron it to delete on the 1st of everymonth, etc.

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Domain issue since server change - cgi-sys/defaultwebpage.cgi
    By mobilebadboy in forum Domains & Hosting
    Replies: 6
    Last Post: July 31st, 2011, 09:47 PM
  2. Getting large file from remote server
    By mobilebadboy in forum Programming / Datafeeds / Tools
    Replies: 7
    Last Post: September 29th, 2007, 11:55 PM
  3. Cop Movie [large file inside]
    By Geno Prussakov in forum Virtual Family and Off-Topic
    Replies: 1
    Last Post: July 25th, 2007, 05:44 PM
  4. cgi-world/cgiwrap/domain/cgi-bin/
    By KariBon in forum Scripts
    Replies: 1
    Last Post: February 10th, 2003, 12:54 PM
  5. Anybody could with CGI and smartsearch.cgi??
    By natedog in forum Programming / Datafeeds / Tools
    Replies: 39
    Last Post: January 16th, 2002, 06:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts