473,326 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

PHP FTP put function, 1024 byte issue

Building an app. that requres me to transfer files, using PHP's FTP put
function, from a holding dir on a SAN to another SAN dir. No matter
what I do the file copied to the new dir is 1024 bytes despite original
being much greater (its a pdf). I have to use PHP 4.3.4/Apache 1.3.19
and have seen various comments about put not working correctly with
this version of PHP, is this correct? Using command line FTP the
process works fine but a test using trimmed down PHP code just to FTP
one file using the equivalent commands results in the same problem.

Anyone with any ideas/solutions?

Cheers

Phil

Sep 27 '05 #1
1 1798
On 27 Sep 2005 04:55:59 -0700, Phil W wrote:
Building an app. that requres me to transfer files, using PHP's FTP put
function, from a holding dir on a SAN to another SAN dir. No matter
what I do the file copied to the new dir is 1024 bytes despite original
being much greater (its a pdf). I have to use PHP 4.3.4/Apache 1.3.19
and have seen various comments about put not working correctly with
this version of PHP, is this correct? Using command line FTP the
process works fine but a test using trimmed down PHP code just to FTP
one file using the equivalent commands results in the same problem.

Anyone with any ideas/solutions?


Have you tried file uploads via HTTP? - with the usual PHP file upload
functions?

Adam.
Sep 27 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
1
by: Davide | last post by:
Hi all, Please, can somebody help me to understand how calculate this number in php? I've got 4.7554844644e+06 and I need to have 4.7Mbits Is there a php function can helps me? Really...
6
by: brucoder | last post by:
Are there runtime settings that can be used to adjust the default 1024 byte stdin buffer limit or a buildtime setting in pyconfig.h? I have a need to pump this up to permit input of a large data...
2
by: Brian Mitchell | last post by:
Hello, I am using a MemoryStream to serialize a class but when I use the GetBuffer method it returns exactly 1024 bytes even though the stream is only 675 bytes. If I look at the...
2
by: Prince of Code | last post by:
Hey all, I am writing a function that converts given bytes into KB , MB or GB. This function will work as in Windows if the file size is too large in MB it will show as 2.34 MB instead 23400 KB(...
2
by: GTi | last post by:
Can this be done different in C# private ushort GetRQU(ushort regpos) { ushort pos; ushort tmp; ushort value = 0; string inBuff = "AA"; // EXAMPLE ONLY tmp = (ushort)inBuff;
9
by: samuraisam | last post by:
Quick file size formatting for all those seekers out there... import math def filesizeformat(bytes, precision=2): """Returns a humanized string for a given amount of bytes""" bytes =...
1
by: krishnasamy | last post by:
Hi, I am retrieving the image from DLL through vc++ dll. Actually Image is retrieving in Callback function of main function. When I writing that image file inside of the Callback function then...
1
by: DR | last post by:
mySqlBytes.buffer is getting converted to BigEndian even though both SQL server 2005 and the CLR function are on the same machine which shows BitConverter.IsLittleEndian == true in tsql: select...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.