Results 1 to 2 of 2
March 14th, 2002, 12:14 PM #1
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 = 'http://www.domain.com;
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 ]
March 14th, 2002, 05:31 PM #2
- Join Date
- January 18th, 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.
By mobilebadboy in forum Domains & HostingReplies: 6Last Post: July 31st, 2011, 10:47 PM
By mobilebadboy in forum Programming / Datafeeds / ToolsReplies: 7Last Post: September 30th, 2007, 12:55 AM
By Geno Prussakov in forum Virtual Family and Off-TopicReplies: 1Last Post: July 25th, 2007, 06:44 PM
By KariBon in forum Cusimano.com ScriptsReplies: 1Last Post: February 10th, 2003, 01:54 PM
By natedog in forum Programming / Datafeeds / ToolsReplies: 39Last Post: January 16th, 2002, 07:22 PM