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

allowing client to download swf file

shane3341436
Hello,
I have problems when allowing the client to download the swf file. When clients donwloads the file an empty swf file is downloaded. I used readfile() function for this purpose
Nov 1 '07 #1
2 1643
hello friends has anybody have idea about this problem?
Nov 2 '07 #2
why dont you just allow a direct download? you can just write something like
[PHP]
<?php

$movie = somefilename.swf;

echo '<object width="550" height="400">
<param name="movie" value="$movie">
<embed src="$movie" width="550" height="400">
</embed>
</object>';

echo '<a href="$movie">Download this Clip</a>';

?>[/PHP]

Or else give us your started code to work with cause i have no idea how you have setup your functions and vars.
Nov 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Pedro Fonseca | last post by:
Greetings! In my PHP website I'm trying to raise a File Download dialog directly in a WindowsCE IE client with the following code: header( "Content-Type: application/octet-stream\n" );...
0
by: staleb | last post by:
Hi We have a application solution set up like this. A Web-server,db-server and a document server. The web-server comunicates with the two other servers. When the user uses our application he...
0
by: JR | last post by:
Hello, Although I consider myself a proficient C++ programmer (and am getting better everyday at C# :-) I am new to and having a little trouble with some of the concepts behind ASP and ASP.NET....
2
by: mhadi | last post by:
Hello Please Help me!! The big bossman is screaming in my ear, I am only devloper of dotnet in my software house and know only to develop widows based application !! My boss wan't me to...
2
by: Sleepy | last post by:
I am wanting to allow a client to download a file from a web server and save it on their local PC. The only way that I have found to do this is to use HTTP headers. I am using the code shown below...
3
by: Gibby | last post by:
A few weeks back, a message was posted regarding how to force a file download to a client. The code for this technique is shown at the end of this message. A question I have about this...
8
by: DanB | last post by:
This is probably soooo simple but I can't seem to get it. I have a text file that I want users to download via a web page. I want the file to be saved to a default folder (or one that they...
3
by: Jiro Hidaka | last post by:
Hello my manager has a question in regards to being able to give access to a file to a computer only. This file will be either sent to or downloaded from the client computer. For example we are a...
3
by: mpar612 | last post by:
I am trying to create an area where a user can come to a page that queries a database and displays links to files. Here is the code for the link: <td><a...
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
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,...
0
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...
0
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...
0
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...

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.