I apply the following code
test.php
$upload =ftp_put($conn_ id,"test.jpg"," $dat",FTP-BINARY);
where $dat is a local filename which I like to move via FTP. "test.jpg" ist
the filename on the Web-Server. I start this php-code from HTML with
<FORM ENCTYPE="multip art/form-data" ACTION="test.ph p" METHOD=POST >
.....
When I reload test.jpg from the webserver the file has always the size of 1
KB and it is not possible to view it again.
What can I do? Thanks for your effort in advance!
Udo Pecher aus HOF a.d. Saale / Germany
I 2 2631
On Sun, 4 Jul 2004 22:11:31 +0200, "Udo Pecher" <ba*********@ t-online.de>
wrote: test.php $upload =ftp_put($conn_ id,"test.jpg"," $dat",FTP-BINARY);
Is that really waht you have (in which case "FTP minus BINARY" probably isn't
the same as FTP_BINARY , or is that a typo in posting it here (in which case
always cut and paste your code to avoid introducing more confusion).
--
Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
"Andy Hassall" <an**@andyh.co. uk> > test.php $upload =ftp_put($conn_ id,"test.jpg"," $dat",FTP-BINARY); Is that really waht you have (in which case "FTP minus BINARY" probably
isn't the same as FTP_BINARY , or is that a typo in posting it here (in which
case always cut and paste your code to avoid introducing more confusion).
This hits the point. Now it works correctly!
Udo Pecher This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: avihaimar |
last post by:
hello
i have the code below:
<html>
<body>
<table>
<div id="div1" style="display :none">
<tr>
<td>
uuu
</td>
|
by: Kerem Gümrükcü |
last post by:
Hi,
i am about to burst!!! how can i make my string break inside a textbox?
i mean with a control charater like "\n", but it does not work!
i have a string and i must set the wrap manuall, not controled by the
wordwrap property of the textbox. as i alread said: "\n" does not work!
Language s C#
|
by: nsh |
last post by:
mailing.database.mysql, comp.lang.php
subject: does "LOAD DATA" EVER work?!? I've tried EVERYTHING!
version info:
my isp is running my web page on a linux box with php ver. 4.4.1
according to phpinfo, the "mysql api client is ver. 4.0.25" - I have no
idea how this relates, if at all, to the mysql engine's version.
background:
|
by: mkaushik |
last post by:
Hi everyone,
Im just starting out with C++, and am curious to know how "delete
<pointer>", knows about the number of memory locations to free.
I read somewhere that delete frees up space assigned to <pointerby
"new". Does "new" create a list of pointer names and the size of the
memory array they point to? I also read that some compilers may store
the number of consec mem locations a pointer points to, just before the
first data...
|
by: Jeff |
last post by:
hey
asp.net 2.0 (C'#)
In the code behind file I have this method:
public String AddBR(Object param) {
String text = (String) param;
return text;
}
| |
by: DougFAI |
last post by:
Hello there.
Today, I was developing a college work software and then I saw thoe 2 types of while. My teacher asked me how does the "while(ifs)" (considering my ifstream was ifs) (that was the one I was using) should work, I didn't know what to answer.
Both of em works to check the enf of the file in, right? Whats the advantage in using while(ifs)? How does the "ifs" works.
Thanks in the advance. :)
|
by: Faizmysore |
last post by:
This code works good in IE,
function multiuser() {
document.frmOpenInteraction1.Create.disabled=true;
document.frmOpenInteraction1.hidmultiuser.value="Yes";
var r = showModalDialog('popup.htm','NEW',
'dialogWidth:400px;dialogHeight:155px;dialogLeft:200px;center:1;help: no; resizable: no; status: no; scroll: no;');
window.document.frmOpenInteraction1.ticket.checked=false;...
|
by: phpfreak2007 |
last post by:
Hello all,
I am Using textboxes inside Panel Control.. But it does allow me to Copy data using Cntl+c and not even allow Paste using Cntrl+V.. Rather i can Copy paste using popup menu displayed by right clicking on the textbox. Does any property is remaining to set...
|
by: lander |
last post by:
I've read the page life cycle thing in msdn, still, i'm getting a bit
confused of thinking how all the things are going under the hood...
I know that when page loading, that the controls' properties is
populated and when page unloading, the resources are cleared.
What I want to know is what's happening behind it, that is, from the
perspective of the asp.net implementor.....I'm not sure whether i've
stated clearly, hope you get it.
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |