---
title: "NF Downloads - Wrong location???"
url: "https://www.typo3.net/d/48383-nf-downloads-wrong-location"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2006-08-18"
last_reply: "2006-08-18"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# NF Downloads - Wrong location???

Extensions · 0 Antworten · gestartet 2006-08-18

## Eröffnungsbeitrag

**SeFo** · 2006-08-18 · [Beitrag #1](https://www.typo3.net/d/48383-nf-downloads-wrong-location/1)

Hallo,

ich hab mal wider ein kleines Problem: Und zwar versuche ich mit nf_downloads ein kleines Download-Archiv aufzubauen.
Er liest die Dateigrößen usw. korrekt aus - kann also auf die Files zugreifen. Jedoch sobald ich den Download Starten möchte kommt in einem Neuen Fenster (was an sich ja korrekt ist)

> Cannot find configuration. This file is probably executed from the wrong location.

Die "Die" Funktion die diese lautet wie Folgt:

```php
define("TYPO3_OS", stristr(PHP_OS,"win")&&!stristr(PHP_OS,"darwin")?"WIN":"");
define("TYPO3_MODE","FE");
define("PATH_thisScript",str_replace('/typo3conf/ext/nf_downloads/pi1/passdownload.php','',str_replace('//','/', str_replace('\\','/', php_sapi_name()=="cgi"||php_sapi_name()=="isapi" ? $HTTP_SERVER_VARS["PATH_TRANSLATED"]:$HTTP_SERVER_VARS["SCRIPT_FILENAME"]))));
define("PATH_site", PATH_thisScript."/");
define("PATH_t3lib", PATH_site."t3lib/");
define("PATH_tslib", PATH_site."tslib/");
define("PATH_typo3conf", PATH_site."typo3conf/");
define("TYPO3_mainDir", "typo3/"); 


if (!@is_dir(PATH_typo3conf))	die("Cannot find configuration. This file is probably executed from the wrong location.");
```

Nun, jetzt ist meine Frage: Von wo aus Sollte dieses Script den erwartungsgemäß ausgeführt werden - und wie Binde ich es dort ein?
Oder bin ich hier auf einem Total falschen Lösungspfad?
(bin noch neu unter den Typo3-Jüngern ;) )

Ich bedanke mich schon mal für jede Hilfe.

Gruß SeFo

---

Quelle: „NF Downloads - Wrong location???“, typo3.net, https://www.typo3.net/d/48383-nf-downloads-wrong-location
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
