473,803 Members | 3,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Downloadscript und Norton Firewall

Hallo,

ich habe aus der php-faq nachfolgendes Script an meine Bedürfnisse
angepasst, den Teil der für Speichern der Downloads zuständig ist habe
ich nicht geposted:

<?
// $download sei der Bezeichner für die zu ladende Datei
// etwa:
$download = $_GET['download'];
// Dieses Verzeichnis liegt außerhalb des Document Root und
// ist nicht per URL erreichbar.
$basedir = "/home/www/..../download";

// Übersetzung von Download-Bezeichner in Dateinamen.
$filelist = array(
"file1" => "datei1.pdf ",
"file2" => "datei2.pdf ",
"file3" => "datei3.pdf ",
"file4" => "datei4.pdf ",
"file5" => "datei5.pdf ",
"file6" => "datei6.pdf ",
"file7" => "datei7.pdf ",
"file8" => "datei8.pdf ",
"file9" => "datei9.pdf "
);
// Einbruchsversuc h abfangen.
if (!isset($fileli st[$download]))
die("Datei $download nicht vorhanden.");

// Vertrauenswürdi gen Dateinamen basteln.
$filename = sprintf("%s/%s", $basedir, $filelist[$download]);
#$filename=$fil elist[$download];
// Passenden Datentyp erzeugen.
if (preg_match('#O pera(/| )([0-9].[0-9]{1,2})#',
getenv('HTTP_US ER_AGENT')) or preg_match('#MS IE ([0-9].[0-9]{1,2})#',
getenv('HTTP_US ER_AGENT'))) {
header("Content-Type: application/octetstream");
} else {
header("Content-Type: application/octet-stream");
}
// Passenden Dateinamen im Download-Requester vorgeben,
// z. B. den Original-Dateinamen
$save_as_name = basename($filel ist[$download]);
header("Content-Disposition: attachment; filename=\"$sav e_as_name\"");
// Datei ausgeben.
readfile($filen ame);
?>
Alles klappt solange meine Firewall (Norton2005) nicht aktiv ist.
Sobald ich diese aktiviere werden die PDF's vom AcrobatReader als
"beschädigt " abgelehnt.

Hat jemand diese Erfahrung auch gemacht und eine Lösung gefunden?
Jul 17 '05 #1
1 1744
jo****@rittsche r.de (Jochen Rittscher) wrote in message news:<8f******* *************** ***@posting.goo gle.com>...
<google translation>

Hello,

I have from php faq the following Script to my needs
adapted, the part for memory of the Downloads is responsible has
I not geposted:
<snip>
Everything does not fold so long my Firewall (Norton2005) is active.
As soon as I these activate become the PDF's of the AcrobatReader as
"damages" rejected.

Did someone also make this experience and a solution did find?
</google translation>

IIRC, to load PDF in Acrobat Reader, it has to cache the content
first. Sounds like Norton Firewall is prohibiting to do so. You may
need to visit www.php.net/header and read some valuable usernotes.
Also, try to change your AV; my recommendation is PC-cillin. Also,
please try to use English in international groups.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

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

Similar topics

1
1842
by: SM | last post by:
Hi , I am using a window.open function to popup window in my C# code in this manner . Response.Write("<SCRIPT language=\"javascript\">"); Response.Write(String.Format("window.open(\"{0} \",\"_blank\",\"toolbar=no\",\"menubar=no\");",url)); Response.Write("</SCRIPT>");
0
1201
by: Tim Hopkins | last post by:
Hi. Can anyone tell me what aspect of Norton System works is required for login to Hotmail and Messenger? I am getting "page cannot be diplayed" when attempting to log in to these sites only. Recently I disabled Norton Systemworks and other components of Nortons (such as the Firewall Service) so I can save on system resources and use manually as needed. I turn them off, I cannot access Hotmail or Messenger. I turn the services back on...
11
1803
by: TC | last post by:
Hello All, I have recently had the pleasure of installing Norton Internet Security 2005 and finding that I can no longer create or open a web-based application in Visual Studio .Net. The IDE just freezes. I tried fiddling with the configuration settings of the Norton Firewall but was not successful. I tried launching IIS from the Control Panel and it would not launch. I saw one article in Groups.Google from a previous post that the...
2
1627
by: Philip Townsend | last post by:
I recently installed Norton Internet Security on my development machine. I have used similar firewall products in the past without difficulties. This product, however, rendered my IIS useless. I was unable to access development projects on my localhost. Furthermore, I was unable to access the IIS console. It gets better. After research and attempts to work with the firewall settings, I was unable to access the Internet altogether. The only...
1
1839
by: Al Cadalzo | last post by:
I have a web page that allows a user to download data by clicking on a link button. I then use Aspose.Excel (v1.0.3705) to generate the file for download and then I call the "Save" method on the Aspose.Excel object to send it to the Response object. One of our users has Norton Firewall installed and when he tries to download a large amount of data he gets a message ""0 bytes downloaded". It works OK with smaller files. When he disables...
10
1794
by: Ammar | last post by:
Hi! I am running IIS 5 on windowsXP proffesional with norton internet security proffesional 2004. I have been trying to make an ASP.NET page that sends a report as an e mail to the webmaster of the site when a user subscribes in the site. The page runs well, but the e mail is never delivered! After long hours of search i found that turning norton Internet securty off solves the whole probelm! But then of course, i dont want to run my IIS...
1
2425
by: Edu | last post by:
Hi, If you use Norton Internet Security, you might be having the same problem I'm having when developing on Visual Studio .net. Before, when using vb6, I had only once to set a rule on the firewall to permit VB6.exe to access the internet and I could run any project without getting the "Program Control" pop-up window. Now, with visual studio .net, every time I run/debug a project, that annoying "Program Control" window pops up and I...
11
2175
by: gregory_may | last post by:
I am developing an application that I would like to distribute on CD. Norton blows it up very badly. Is there some API I can talk to let Norton know I am ok?
0
10546
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
10310
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...
1
10292
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,...
0
9121
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...
0
6841
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();...
0
5498
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...
0
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.