473,757 Members | 6,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Save File Automatically

Jay
Hey there,
Is there a way to have php automatically save a file that is being
downloaded without having the annoying "Save As.." dialog box that
appears? I would like to be able to create a txt file on the server and
automatically have it save in a user's specified folder.
-Jay
(patel at cs dot utk dot edu)

Aug 11 '05 #1
3 2724
Jay wrote:
Hey there,
Is there a way to have php automatically save a file that is being
downloaded without having the annoying "Save As.." dialog box that
appears? I would like to be able to create a txt file on the server and
automatically have it save in a user's specified folder.
-Jay
(patel at cs dot utk dot edu)


no - PHP is serverside. Where / how the browser stores files is client side.

C.
Aug 11 '05 #2
Jay (pa***@cs.utk.e du) wrote:
: Hey there,
: Is there a way to have php automatically save a file that is being
: downloaded without having the annoying "Save As.." dialog box that
: appears? I would like to be able to create a txt file on the server and
: automatically have it save in a user's specified folder.
: -Jay
: (patel at cs dot utk dot edu)

Of course not. Otherwise every hacker/spammer/virus-producer would have
destroyed all our computers years ago.

You can suggest a name for a download file. You can send a zip file and
then unzipping it can save and restore paths (and sets of files), or
provide an install program that the user can run that does anything you
want (if they choose to run it). In a closed environment (i.e. the local
LAN in an office) you could use a plug-in that the users would have to
install that could allow this sort of thing (I have read of them but have
no names to suggest).

--

This space not for rent.
Aug 11 '05 #3
Jay wrote:
Hey there,
Is there a way to have php automatically save a file that is being
downloaded without having the annoying "Save As.." dialog box that
appears? I would like to be able to create a txt file on the server
and automatically have it save in a user's specified folder.

Why? People tend not to like that sort of thing.


Brian
Aug 11 '05 #4

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

Similar topics

1
1801
by: john | last post by:
All, I am writing a small application that allows users to create a new HTML file automatically, by entering just a few elements (page title, body text, etc). I can create the new page and everything, I just can't figure out how to save the new page on the server. I don't want the user to have to click File -> Save As on their browser and then save it. Is there any way to automatically save the newly created page on the server...and...
1
2050
by: Tommy | last post by:
Is it possible to write asp file which create some text file and then save in local drive automatically without human interaction? I haven't any idea. Thx.
3
4182
by: cathywigzell | last post by:
I have a web page which allows a user to download a file directly to their computer, using IE. I present a file name in a table and the user can then right click on the file name to get a popup menu with the option 'Save Target As...'. Selecting that option results in the Save As dialog. However, if the filename has a reconginsed extension, e.g. .doc, then the Save As dialog adds another extension, so the file name in the Save As dialog...
5
24204
by: Carl | last post by:
Please can anyone tell me how I can create a macro to save the results of a query as an excel file? The query is called Student List and I would like to save it to "My Documents". We have had some problems with our database crashing. We would therefore like another way to have access to basic student data and thought we automatically save the results of this query when we close Access. Any suggestions on how we could do this would be...
4
5561
by: Richard | last post by:
Hi I'm new to ASP/Web programming so any help would be appreciated... Situation: On my web page I would like to present a link {or button} that would allow the user to download a large file. When the user clicks to start the download I would like to display the "Save As" dialog, allow the user to name a place to save the file, and then show the download progress bar while the file downloads Question: How do I make a windows "Save...
6
1793
by: jake | last post by:
How do you get or save a file from/to a client (button on web page) once they are authenticated? The client could be Mac, Linux or Windows. Can I do it all with IIS and ASP.NET?
4
4514
by: sunilj20 | last post by:
Hello, I have a requirement wherein, a user clicks on a file name in an ASP.NET web application, and the file should automatically be downloaded (Without showing the "Open", "Save As") in the local machine at a pre defined path (path defined in the registry), and launch the file in its associated application. I think this can be done through ActiveX Controls, but i dont know how to create ActiveX controls in .NET??
4
2576
by: Matt | last post by:
Hi, I would like to save a file locally (on the client computer) in an ASP.net application. It is like the server would return some data that the user can save to a file on his local PC. The ASP page has a text field to type in the file path directly and a "Browse..." button, that shall display a "Save as..." dialog. I tried with the FileUpload control, but this does not work, since I do not want to upload an existing file, but I want to...
0
3024
by: blackjackkiller | last post by:
Hi Need help in automating the report.Let me give the explanation what i need that might help u in understanding it. 1 need excel macro to run a query to pull data from sql server for specific dates for e.g it should take inputs from 2 cells such as data from 12/10/2007 (b1cell)-12/11/2007(b2 cell). 2 then it should autmatically save the file in the specific location with specific name. 3 need to run this process automatically every...
0
9489
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
10072
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9906
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...
0
9737
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8737
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7286
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
6562
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();...
1
3829
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3399
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.