Hello,
I am building a small page to copy files from our server(s) to our users
local machines. It's very simple...
(below, "f" is a mapped network drive)
<?php
$source_file = 'f:\somefile.wh atever';
$destination_pa th = (I want to move it to the USERS
C:\somedirector y\somefile);
copy($source_fi le, $destination_pa th);
?>
How can I accomplish this? Thanks for any help!! 4 4253
Somedude wrote: Hello,
I am building a small page to copy files from our server(s) to our
users local machines. It's very simple... (below, "f" is a mapped network drive)
<?php
$source_file = 'f:\somefile.wh atever'; $destination_pa th = (I want to move it to the USERS C:\somedirector y\somefile);
copy($source_fi le, $destination_pa th);
?>
How can I accomplish this? Thanks for any help!!
You can't accomplish this using PHP. Remember PHP runs on the SERVER,
which I assume is a different machine than the user's local machine.
The best you could do would be to copy it to a networked directory that
is accessible by both the webserver process and each user.
You might be able to create a Javascript script via PHP and an HTML
source file that invokes it, then switch control to that file to do the
copy.
Ken
"Ken Robinson" <ke******@rbnsn .com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Somedude wrote: Hello,
I am building a small page to copy files from our server(s) to our users local machines. It's very simple... (below, "f" is a mapped network drive)
<?php
$source_file = 'f:\somefile.wh atever'; $destination_pa th = (I want to move it to the USERS C:\somedirector y\somefile);
copy($source_fi le, $destination_pa th);
?>
How can I accomplish this? Thanks for any help!!
You can't accomplish this using PHP. Remember PHP runs on the SERVER, which I assume is a different machine than the user's local machine. The best you could do would be to copy it to a networked directory that is accessible by both the webserver process and each user.
You might be able to create a Javascript script via PHP and an HTML source file that invokes it, then switch control to that file to do the copy.
Ken
Thanks Ken. I do have local FTP available on the network. Would I be able
to accomplish this task now?
> Thanks Ken. I do have local FTP available on the network. Would I be
able to accomplish this task now?
Hi,
With FTP, no problem, you can do that easily..
Hav a look to " ftp_* php functions
bye
*** Somedude wrote/escribió (Mon, 9 May 2005 09:40:45 -0400): Thanks Ken. I do have local FTP available on the network. Would I be able to accomplish this task now?
If you can you use FTP at the server to upload files to user's computers,
you can do it with PHP. However, I doubt you have an FTP server installed
and running on every computer.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: oceanhai |
last post by:
We currently have a PPTP connection set up for our developers to
access our development SQL server through a VPN tunnel. When they
need to copy tables up to the dev SQL from their local machine they
simply do a DTS copy.
However, we are now moving to a thin client solution where they will
be working on a terminal server. They will have access to the
development SQL servers and SQL tools such as EM and QA. However,
they will not have...
|
by: len |
last post by:
I am in a situation where I need to get a copy of test database that is
on production server running MSSQL 2000 Standard to my local machine
running MSSQL 2000 personel. I tried to use the copy wizard where it
appears I get connected to the source server OK but when I try to
indicate the destination server which is my local machine I get errors
poping up about cannot connect to (local) etc.
I am NOT a DBA just a programmer trying to get...
|
by: POnfri |
last post by:
Hi,
I have a problem in a peace of code were i'm doing a file copy using
File.Copy. The Source is local and the target is a remote machine.
Example: File.Copy(C:\temp\hi.txt, \\myremote\c$\temp\hi.txt, true);
This API is run from a web service that exposes it. The problem is as follows:
1) I request a page (On the web service machine) from my web server (Note
|
by: Kristijan Marin |
last post by:
Hi,
Does anyone know how to copy files inside network from mashine one to
mashine2
if the mashine2 requires user/pass authentication ??
I need this for Windows platform.
Anyone did that ?
Thaks.
|
by: Johnny |
last post by:
Hi,
I have created an ASP.NET application (let's call it FooBar) with VS.NET on
my local machine, residing in http://localhost/FooBar. Deploying it to
another folder on my machine works well with FrontPage Server Extensions,
but I don't manage to deploy the application to my web provider http root
folder.
When I run Copy Project, I get an error message just saying 'Unable to
create Web project 'myname'. Not found.'.
| |
by: Steve Franks |
last post by:
The Copy Web tool provided with VS.NET 2005 is very convenient. However
every once in a while it seems to think the files on the remote server have
changed, which they have not. Then when I use the Copy Web Site feature of
Copy Web to just copy the entire web site over, it thinks it has to
re-upload the entire site which takes a very long time - when in fact those
files on the remote have not changed.
Does anyone know why this occurs...
|
by: ll |
last post by:
Hi,
I have copied a MS SQL database to my local machine and am testing it
with ASP pages, locally, on IIS. I have a db connect page that keeps
the current connections for the live database. My question is, as the
local db is named 'local,' is there another name I need to give it and
thus call from the connection page?
Also, when copying a db, are the permissions (username and pass)
copied over with it?
Thanks,
|
by: ll |
last post by:
Hi,
I have copied a MS SQL database to my local machine and am testing it
with ASP pages, locally, on IIS. I have a db connect page that keeps
the current connections for the live database. My question is, as the
local db is named 'local,' is there another name I need to give it and
thus call from the connection page?
Also, when copying a db, are the permissions (username and pass)
copied over with it?
Thanks,
|
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= |
last post by:
Hello!
I'm trying to copy a file from another computer on the network that I do not
have permission with my current logon details to access.
If I open the folder using the Windows file manager with the path "\\
192.168.2.2\temp" (where temp is a shared directory on server \\192.168.2.2),
windows prompts for a User Name and password of a user who has permission on
that computer to access that directory. If I enter valid details, the...
|
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: 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,...
| |
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: 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: 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...
|
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...
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |