This is a discussion on Upload testing via local machine within the Windows Web Servers forums, part of the Web Server and Related Forums category; Background: I have Apache configured on my local windows computer. This configuration is used only for development. I primarily am ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Background:
I have Apache configured on my local windows computer. This configuration is used only for development. I primarily am developing phpnuke sites using php and mysql which are also running on the local windows machine. Question: I found this problem a few years ago and it has once again surfaced. I have a form which will allow the user to upload images to the site. The problem occurs during the upload. Being on a local machine I cannot get the files to transfer or even be read by the code. If I upload the code to an remote server on a UNIX machine running apache it works fine. The file is uploaded via a "multipart/form-data" form. This problem makes development very difficult. I'm not getting any apache errors during this, but feel it's to do with operating via local machine. If anyone can help I would gladly appreciate it. At least tell me if they think it's a php issue, local machine issue or Apache one. Thanks in advance |
|
|||
|
Tory wrote:
(snipped) > running on the local windows machine. > The problem occurs during the upload. > If I upload the code to an remote server on a UNIX machine > running apache it works fine. Research and read about DOS versus UNIX line endings. Binmode your read file handle and binmode your write file handle when working with DOS. More simply, use binmode. Binmode is not needed for UNIX for most languages, unless you are using a Perl 5.8.x version. Purl Gurl -- Most Entertaining Android In Existence! http://www.purlgurl.net/~callgirl/roberta/roberta.cgi |
| Thread Tools | |
| Display Modes | |
|
|