Forums

PHP

This topic is locked

Upload Extension

Posted 06 Jun 2002 13:12:15
1
has voted
06 Jun 2002 13:12:15 Jonathan Manning posted:
Hello,

I am using the php upload extension made by Tim(rawveg) its great... I have one small question, I want to specify that the file uploads .zip files so I have chosen custom in the Valid Mime types, but I am unsure what to place in there is it simple zip, .zip or application/zip, anyone shed some light on this for me <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Cheers

Replies

Replied 06 Jun 2002 14:19:23
06 Jun 2002 14:19:23 Jonathan Manning replied:
Yep I'm thick, the option was always there <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

I really must get some sleep and read the options more carefully

On a side note, I do keep getting this error, but you only see if for a split second before it redirects to my succesful upload page:

Warning: stat failed for reload.zip (errno=2 - No such file or directory) in /home/4564/ccvn/www.ccvn.co.uk/public_html/admin_area/add_downloads.php on line 51

anyone?


Edited by - Black-Artist on 06 Jun 2002 16:37:46
Replied 06 Jun 2002 19:48:19
06 Jun 2002 19:48:19 Tim Green replied:
Stat errors are quite common amongst certain PHP configurations. The issue lies with your error_reporting setting in your PHP.ini, as it is set too high.

To resolve this, change your error_reporting to E_ALL & E_NOTICE, so as to hide any warnings. The message you are receiving is just a warning, rather than an error, and you wouldn't want them to show on your pages anyway.

I hope this helps.


Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 07 Jun 2002 00:01:12
07 Jun 2002 00:01:12 Jonathan Manning replied:
Thanks very much rawveg, I have a friendly chat with my hosting provider <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>, incidentally why does the error show up when everything works fine <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 07 Jun 2002 19:19:30
07 Jun 2002 19:19:30 Tim Green replied:
Well, in truth it is a warning, not an error. Warnings are a different kind of message in PHP and are usually brought into play when a function will either be deprecated, or that there are elements of the function that could produce an error message when used.

Other times, warnings are used internally by PHP to bring into play other processes. In your case, PHP could not find the relevant file or directory. This warning then acts as a flag to tell PHP to create the file or folder as necessary.

It's for this reason, that error_reporting should be set to a level where warnings aren't produced (in a production environment), but they can be useful during the debug process during development.

I hope this helps.

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic