Author |
Message |
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sun Oct 20, 2002 5:49 pm (21 years, 6 months ago) |
|
I'm sorry, but I can't seem to get anywhere with this.
Try asking in the 34SP Forums, or ask imknight in the chat room (irc.hashnet.org, #34SP). |
________________________________
|
|
|
|
precious
WebHelper
Joined: 06 Apr 2002
Posts: 65
|
Posted:
Sun Oct 20, 2002 6:22 pm (21 years, 6 months ago) |
|
Not sure how to use IRC, can you let imknight know about this post?
Perhaps, it will be good to try this script and see whether you can get it working at your end. I'm using it at 34SP, so the environment is the same. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sun Oct 20, 2002 6:31 pm (21 years, 6 months ago) |
|
Apparently the unlink() command is not needed, as move_uploaded_file gets rid of the original file when it moves it. So just delete both of the unlink() lines and it should work.
/me crosses his fingers |
________________________________
|
|
|
|
precious
WebHelper
Joined: 06 Apr 2002
Posts: 65
|
Posted:
Sun Oct 20, 2002 6:53 pm (21 years, 6 months ago) |
|
Hey, your finger crossed works! - removed the 2 unlink()commands
But now I got 2 files in my upload directory:
XXX.gif and the redundant XXX.gif.new
How come I get this additional redundant similar file? |
|
|
|
|
precious
WebHelper
Joined: 06 Apr 2002
Posts: 65
|
Posted:
Sun Oct 20, 2002 7:38 pm (21 years, 6 months ago) |
|
I think there is a hiccup....
Now I am not able to upload any more files to the upload folder, though I received no error msg. Strange.... |
|
|
|
|
precious
WebHelper
Joined: 06 Apr 2002
Posts: 65
|
Posted:
Sun Oct 20, 2002 7:42 pm (21 years, 6 months ago) |
|
It works now...not sure why there is such a long delay before I can see the files uploaded into the upload folder on my ftp client. |
|
|
|
|
jayant
Team Member
Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India
|
Posted:
Mon Oct 21, 2002 10:26 am (21 years, 6 months ago) |
|
precious wrote: | It works now...not sure why there is such a long delay before I can see the files uploaded into the upload folder on my ftp client. | This can happen if 34SP caches data for faster accessing, and rebuilds the cache after about 5 min, then you may get about 5 minute delay.
There can be no other reason for the delay (from those I know)
btw, still getting the redundant file? |
________________________________ Jayant Kumar
Member of the 4WebHelp Team
Nibble Guru - Computing Queries Demystified
GZip/ Page Compression Test |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Mon Oct 21, 2002 4:01 pm (21 years, 6 months ago) |
|
Maybe you're not refreshing the file list?
As far as I know, 34SP don't use any cache. |
________________________________
|
|
|
|
precious
WebHelper
Joined: 06 Apr 2002
Posts: 65
|
Posted:
Tue Oct 22, 2002 4:48 am (21 years, 6 months ago) |
|
jayant, Yes, about 5-10 min delay when I tested the script the other day.
Daniel. I did refresh the remote list on my ftp client then. Couldn't have got the script to work without your prompt follow through replies. Excellent step-by-step troubleshootings! *3 Cheers* |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Oct 22, 2002 4:18 pm (21 years, 6 months ago) |
|
But you're still getting two files? If so, is one of them empty? |
________________________________
|
|
|
|
precious
WebHelper
Joined: 06 Apr 2002
Posts: 65
|
Posted:
Thu Oct 24, 2002 2:29 pm (21 years, 6 months ago) |
|
I just tested uploading a file. Seems the 5 to 10 min delay has gone away, and I do not have any more duplicate file with the .new extension. Not sure why I saw it the other day and I have to manually delete it via ftp; strange. The script works fine now. I couldn't have done it all without you |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Thu Oct 24, 2002 2:30 pm (21 years, 6 months ago) |
|
Maybe you submitted the form twice? The script will name the second file with a .new suffix if the file already exists. |
________________________________
|
|
|
|
precious
WebHelper
Joined: 06 Apr 2002
Posts: 65
|
Posted:
Thu Oct 24, 2002 2:43 pm (21 years, 6 months ago) |
|
Your "new" logic makes sense, I might have submitted the same file twice the other day. Otherwise, I would have still face this problem when I tested just now. |
|
|
|
|
precious
WebHelper
Joined: 06 Apr 2002
Posts: 65
|
Posted:
Fri Nov 01, 2002 4:34 am (21 years, 6 months ago) |
|
Tested and your "new" logic is verified correct.
How do I set local time for this formmail script? I see that the server time is reflected in the email when users use the form. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Nov 01, 2002 8:40 am (21 years, 6 months ago) |
|
I can't find any reference to time in the actual script, so it sounds to me like the only "time" which you could be seeing would be the one you see next to the subject in your mail client... |
________________________________
|
|
|
|
|