Re: Quickform 3.1 file upload on windows

From: Date: Mon, 21 Jul 2003 07:28:16 +0000
Subject: Re: Quickform 3.1 file upload on windows
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6680@lists.php.net to get a copy of this message
Bertrand Mansion wrote:
<bryn@mrpath.com> wrote :
Hi, I'm trying to get quickform to work on windows xp pro using IIS (yeah yeah I know) In trying to use moveuploadedfile(), it tries to append a '/' to the end of my string. In quickform 3.1 release, the line of code that does this is file.php:198. In order to facilitate crossplatform-ness, I think this should have an or clause also checking for "\".
Make sure you use the HTML_QuickForm_file class moveUploadedFile method, the one in HTML_QuickForm is deprecated and will be removed in the next release. I'll fix that in the next release, thanks for your feedback. I don't use Windows so I have forgotten about this issue. I'll probably use DIRECTORY_SEPARATOR global.
Is that wise? I´ve done a lot of PHP development on Windows, and I never had to use a backslash. Normally, PHP should handle the transformation transparently. Regards, Markus

« previous php.pear.general (#6680) next »