Autor Beitrag
Sebastian R.
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 72
Erhaltene Danke: 1



BeitragVerfasst: Do 30.03.06 15:44 
Hi Leute,
es gibt ja Anbieter wie z.B. megaupload.com, wo man Files hochladen kann. Der Download-Link ist dann beispielweise www.megaupload.com/?=xxxx

Welches Skript empfängt denn dann xxxx, denn es ist ja nichts angegeben. Läuft das mit php oder perl?

Vielen Dank im Voraus,

Sebastian R.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 30.03.06 15:49 
Na das wird die index(.php) sein.
Mit PHP ist es möglich, von Perl habe ich keine Ahnung.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Do 30.03.06 16:04 
es kommt auf die Einstellungen des Webservers an, welche Datei(en) in welcher Reihenfolge aufgerufen werden, wenn nichts angegeben ist ( Standard: index.html, index.php, ...)

_________________
Markus Kinzler.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 30.03.06 16:10 
man kann auch mit ein wenig HTACESS und PHP Kenntnis einen Webserver so umbiegen, dass er beliebige URLs mit einem PHP Script aufmacht.

Z.b. hier im Forum. Der Link zu einem Topic ist ja www.delphi-forum.de/...pdate+311_58050.html
Glaubst du wirklich, das das eine HTML Seite ist ? Das gibt es ein PHP Script, das Anfragen abfängt und dann einen entsprechenden Inhalt ausgibt.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Do 30.03.06 16:14 
Das kann alles mögliche sein.
Wenn man möchte kann man auch eine Datei, die auf .xyz endet durch php schicken.
Die Darstellung ist wahrscheinlich per mod_rewrite umgebogen. Und mit mod_rewrite kann man nunmal alles so umbiegen, daß die zugrundeliegende Datei nicht ersichtlich ist.

Nähere Infos gibts hier: httpd.apache.org/doc...sc/rewriteguide.html

Bis neulich ...
blackbirdXXX

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Do 30.03.06 16:23 
warum immer mod_rewrite und PHP? Man könnte glauben das Web besteht nur noch aus den Dingern.

ausblenden Quelltext
1:
2:
3:
def app(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/plain')])
    return ['Aktueller Pfad: /%s' % environ.get('PATH_INFO', '/')[1:]]


Das ist ein einfaches Python Beispiel, dass das komplette URL Handling selber übernimmt. Je nachdem ob man es jetzt unter localhost/test.php oder localhost/this/is/a/long/path/ aufruft spuckt es entweder /test.php oder /this/is/a/long/path/ aus.

Und das geht auch mit perl, ruby und anderen Sprachen problemlos. Und wenn man das CGI executable von PHP nimmt und es über FastCGI laufen lässt geht das sogar mit php.

_________________
Klein, schwarz und ärgert Techniker? Jumper!
Sebastian R. Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 72
Erhaltene Danke: 1



BeitragVerfasst: Do 30.03.06 17:19 
Danke für eure ganzen Antworten, ich werds mal testen!