473,811 Members | 3,687 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1815
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
4968
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 webserver runs that part of the script (see attached file, snippet.php), though, it doesn't go through. I don't get an error message or anything...it just returns a "1" (whereas it should return a "0") as far as I can tell. I have read the PHP...
1
1497
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 thanx Cheers
6
6780
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 block via stdin. Tim Jones
2
5192
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 MemoryStream.Length it shows 675 and even if I do a ? MemoryStream.GetBuffer in the command window it will will try to return 1024. I figgure I am doing something wrong here especially since this is my first time with the MemoryStream class. Can anyone give...
2
1439
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( for example ) I find still it can be optimized. Ideas welcome /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Function : byteConversion( $byte )
2
1181
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
7076
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 = int(bytes) if bytes is 0: return '0bytes' log = math.floor(math.log(bytes, 1024))
1
1507
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 no problem in retrieving. At the same I want to send the Imagedata to the another function and write the same which cause the error. Here I given that code,
1
1997
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 * from dbo.MY_CLR_FUNCTION(cast(1024 as binary(4))) public static int MY_CLR_FUNCTION(SqlBytes mySqlBytes) in debugger binaryData.buffer now shows bigendian!! 0 byte
0
9726
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10384
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10395
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6887
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5553
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.