Click to See Complete Forum and Search --> : uploading files/ Temp directory
I am trying to upload files to a NT 4.0 system running php 4. Everything works fine until I try to upload a file which exceeds the maximum size allowed. I do get "none" for the filename created-> but there is a new filecreated in the temp dir, which is not deleted after the script is run...
What can i do? can I change the php.ini to fix this, or is this a bug?
stefan
You can edit the php.ini and set the upload_max_filesize var in order to upload bigger files.
thanx for the tip... the problem is that I assume, that if a couple thousand people would try to upload a file which is too big- a thousand template files would be created and never deleted...
I asked a friend of mine who is using linux... same problem-> so I am starting to assume this is more like a bug in the fileupload code
- any thoughts??
well the usual directory is /tmp so as you know most files in there should be deleted after a little period of time, one way to do this is just create a perl script and then add it to crontab, so you should not be really worried about files in /tmp directory.
While doing a search on Temp directories, I came across this recent discussion. I need to create more space in my Temp directory, but am not sure if it is safe to delete what's there. I don't recognize the terms, crontab and perl script.
Help
I can't really help you on that specific question, but maybe I can ******** cron
and perl...
cron as like an automated task, that gets called and executed once a week, a day or a minute etc. Picture it like this. You tell your operating system you want a particular program be run automatically. Cron then starts the execution of that program when the time is come
Using this funktionality (on linux machines)
you could write a perl script that deletes everythig in the temp directory.
Perl, is a "scripting language". Which runs on quite some platforms (Linux, Windows NT...) and is normally used to write cgi programs running on internet servers. You might check out "www.perl.com"...
Everything works as mentioned in the examples for file uploading except that when I check my temp directory I cannot see the file that I uploaded ... the temp directory is empty.
I am using PHP4 with APACHE on WINDOWS 95
Where has the file gone ?
Can anybody solve this mystery ??
Until Then.......
Neville.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.