phpbar.de logo

Mailinglisten-Archive

[php] http-tranport einer datei

[php] http-tranport einer datei

hans stumhofer hans.stumhofer_(at)_addcom.de
Mon, 9 Oct 2000 10:36:57 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0448_01C031DC.D9A8FA30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

halli & hallo,
gibt es eine moeglichkeit in php3 eine
datei per http an den client zu transportieren
(ohne das diese durch den browser angegeben wird)?

in perl wuerde das (glaube ich) so aussehen:


<schnipsel>

#!/pfadzuperl/perl -w -T

$| =3D 1;

use CGI qw(:standard :html3 :param);

$bday=3Dparam("test");
$bday=3D"/tmp/ins/".$bday;
open (TMP,$bday);
_(at)_FILE =3D <TMP>;
close(TMP);

print qq(Content-Type: application\x-internet-signup\n\n);
print _(at)_FILE;

</schnipsel>


best gruss
    hans

------=_NextPart_000_0448_01C031DC.D9A8FA30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>halli &amp; hallo,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>gibt es eine moeglichkeit in php3 =
eine</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>datei per http an den client zu=20
transportieren</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(ohne das diese durch den browser =
angegeben=20
wird)?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>in perl wuerde das (glaube ich) so=20
aussehen:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;schnipsel&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#!/pfadzuperl/perl -w -T</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>$| =3D 1;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>use CGI qw(:standard :html3 =
:param);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>$bday=3Dparam("test");<BR>$bday=3D"/tmp/ins/".$bday;<BR>open=20
(TMP,$bday);<BR>_(at)_FILE =3D &lt;TMP&gt;;<BR>close(TMP);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>print qq(Content-Type:=20
application\x-internet-signup\n\n);<BR>print _(at)_FILE;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/schnipsel&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>best gruss</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
hans</FONT></DIV></BODY></HTML>

------=_NextPart_000_0448_01C031DC.D9A8FA30--



php::bar PHP Wiki   -   Listenarchive