it looks like something is up with your php setup.
the plogger error is based on the built-in php variable: $_FILES['userfile']['size']
in the php manual it says: If no file is selected for upload in your form, PHP will return $_FILES['userfile']['size'] as 0
and since plogger checks to make sure that $_FILES['userfile']['size'] is equal to 0 to produce that error the file is not being accepted by php for some reason.
i imagine this is a shared server? any ideas about upgrading to php5? or recompiling php 4?
you could try checking to make sure the following entries are in your php.ini file_uploads = On upload_tmp_dir = "/wherever/you/want"
and setup appropriate permissions on the upload temp directory
check out these few things and let me know what you did/what they're set to
It is shared hosting and not very good hosting at that www.supanames.co.uk
I've looked on my php settings and I can set the upload_tmp_dir to go to a tmp file within my hosting otherwise it suggests it goes to a central account.
I have posted the questions on the support desk of supanames and I'll let you know when/if they respond.
Many thanks for your support and the great (yet simple) script.
Finally I got an answer from my host although it is not what I was hoping for:
Thank you for your email.
You currently have not set the php variable upload_tmp_dir and session_save in your MyPANEL, netiher is there an upload folder /tmp in your filesapce. Could you follow the instructions below in what I would suggest to resolve this issue.
You will need to go into your MyPanel and go to 'Advanced Settings' and then 'PHP Settings' . Here you will need to add 'Upload_tmp_dir' and 'sessions_save_path' then access your filespace using FTP.
You then create a directory called 'tmp' and chmod the directory to 777, then after Apache has restarted on the server the error should be resolved. Please state the absolute paths as apose to the relative paths in your code.
Please see this link for further information: http://www.supanames.com/support/open_basedir.html
If you require any further assistance please let me know.
Regards, Mark Support Assistant Email: support1@supanames.com
I'm assuming what they are saying in a round about way is that because it is a shared server service that they cant make the changes I asked for becuase this would change the php.ini settings globally??
Is there anyway of adjusting the code in plogger to work in with there suggestion? I know very little about php so am guessing here. If my host can make the changes on my account without effecting others please tell me and I will press them further.
no it sounds like they told you exactly what you need to do... follow the instructions they gave you to enbale the temp directory uploads for php and everything will/should just work.
no this tmp folder is global for php so you did good putting it in your main directory. but it really doesn't matter you would just have to remember where the directory is if you program anything else on your site that involves uploading files or any other uses php might have for the tmp directory.