Upload testing via local machine

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-06-2003
Tory
 
Posts: n/a
Default Upload testing via local machine

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
  #2 (permalink)  
Old 11-06-2003
Purl Gurl
 
Posts: n/a
Default Re: Upload testing via local machine

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
  #3 (permalink)  
Old 11-06-2003
Tory
 
Posts: n/a
Default Re: Upload testing via local machine

Thanks for the advice. I will look into this:


> 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.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0