473,545 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

transfer a directory

I've looked, and not sure how to do this.

I need to transfer a file from the local client machine to the web server.
this would-be a whole a directory of files. I looked at ftp_put, but I don't
think this will work with client to server.. or will it?

can someone point me to the documentation on how to do this, if its
possible?
Jul 17 '05 #1
2 1602
On Fri, 16 Jul 2004 15:45:49 -0700, Anthony Reeves wrote:
I've looked, and not sure how to do this.

Hmm.. where? not php.net I'm guessing ;)

I need to transfer a file from the local client machine to the web server.
this would-be a whole a directory of files. I looked at ftp_put, but I don't
think this will work with client to server.. or will it?

That's the general ideal of FTP =)

can someone point me to the documentation on how to do this, if its
possible?

<http://uk.php.net/manual/en/function.ftp-put.php>
You'll need to loop through the dir to upload all the files.. see the user
contributions to help in that part =)

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #2
Yes php.net is where I looked first. Also several sites on php.

perhaps my understanding of php is wrong. I assumed that php was resolved
and run at the server, not the client. So when the ftp command is run its
running on the server that interrupts the php and ftp command and attempts
to find the file on the server to transfer (not on the client).

is this incorrect? your saying that the php server interrupts the code and
starts a process on the client side to upload the file?

"Ian.H" <ia*@WINDOZEdig iserv.net> wrote in message
news:pa******** *************** *****@bubbleboy .digiserv.net.. .
On Fri, 16 Jul 2004 15:45:49 -0700, Anthony Reeves wrote:
I've looked, and not sure how to do this.

Hmm.. where? not php.net I'm guessing ;)

I need to transfer a file from the local client machine to the web server. this would-be a whole a directory of files. I looked at ftp_put, but I don't think this will work with client to server.. or will it?

That's the general ideal of FTP =)

can someone point me to the documentation on how to do this, if its
possible?

<http://uk.php.net/manual/en/function.ftp-put.php>
You'll need to loop through the dir to upload all the files.. see the user
contributions to help in that part =)

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #3

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

Similar topics

5
7078
by: Kevin Vogler | last post by:
I have a subdirectory with it's own images folder. All the image paths in the pages in the sub directory are "image/image.jpg" When I Response.Redirect to a page in the subdirectory the images are fine but when I use Server.Transfer all the links are broken. I'd prefer to use the relative paths. Is there a way around this in the...
4
5077
by: Sateesh | last post by:
Hello, Is there any way I can transfer a directory through FTP in my application? I see some windows API , but they support only file transfer. Is there any ..Net class that helps me doing it. Thanks in advance Sateesh.
0
1040
by: Rick Strahl [MVP] | last post by:
Hi all, Has anybody run into this scenario: From within a page I use a Server.Transfer() to run another ASPX page. The other ASPX page however is not in the current directory but a sub of the current app. For example, the current page is /myApp/Admin/somepage.aspx and the virtual root and the page i want to access is in...
3
4333
by: paul reed | last post by:
Hi , I have a few folders within my root directory on my web server where different app components live. One folder, "Reports", is where all the ASPX pages live that have reports embedded in them (Crystal). However, we also have very fine-grained application security that we implement. When a security violation is encountered, we send them...
2
3198
by: Mr Wizard | last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer occurs. I get invalid IsPostBack results which I believe can fixed using the patch in KB:821156. How do I get this patch? Another question in the...
8
3776
by: Cathie | last post by:
Hi guys, I want to do a Server.Transfer to get to a second page, so that I may retrieve variables I have set in the first page. I'm doing that with the usual Server.Transfer("pagename", true). My problems are as follows: 1. On the initial load everything seems to be referencing from the first page. For example, my style sheet I...
1
1282
by: Ryan | last post by:
Hello, I am having a really strange issue, I have folder containing an ASP.NET application. (The folder's name is Web) The root directory of the whole site I have an Index.aspx page that contains: <% Server.Transfer("Web\Default.aspx") %>
3
2793
by: Calvin KD | last post by:
Hi everyone, I don't know if there's anyone out there is having the same problem. My DotNet 1.1 version uses FormsAuthentication.RedirectFromLoginPage() method to take user from the Login page to the Welcome page. My folder structure is as follows: Root Dir bin images secure Welcome
15
1923
by: dee | last post by:
Hi, I'm curious why MS decided to have Transfer hide the target page's url invisible? Any guesses ? Thanks. Dee.
1
3531
by: Webmills | last post by:
Has anyone come across the problem that I am experiencing? I have a master page using four or five Hyperlink controls, each with an ImageUrl. The ImageUrl is specified using a virtual directory path, such as ImageUrl = "~/Images/Main.gif". I have a child page in a sub directory, images all appear to be correct. However, if I use a...
0
7486
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...
0
7676
Oralloy
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. ...
1
7442
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...
0
7776
tracyyun
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...
0
6001
agi2029
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...
1
5347
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...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
729
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.