473,387 Members | 1,529 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,387 software developers and data experts.

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 1597
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*@WINDOZEdigiserv.net> wrote in message
news:pa****************************@bubbleboy.digi serv.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
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...
4
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. ...
0
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...
3
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...
2
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...
8
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). ...
1
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...
3
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...
15
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
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.